From d14abb079450246e3904863e8f5c8d37962f8bc6 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 1 Sep 2021 15:31:31 +0300 Subject: [PATCH] More MIME types and their separation --- lighttpd/mime-archive.conf | 20 +++ lighttpd/mime-audio.conf | 18 +++ lighttpd/mime-crypto.conf | 15 +++ lighttpd/mime-doc.conf | 12 ++ lighttpd/mime-font.conf | 6 + lighttpd/mime-if.conf | 18 +++ lighttpd/mime-img.conf | 23 ++++ lighttpd/mime-mail.conf | 5 + lighttpd/mime-ms.conf | 14 +++ lighttpd/mime-od.conf | 18 +++ lighttpd/mime-playlist.conf | 5 + lighttpd/mime-sharing.conf | 6 + lighttpd/mime-subtitle.conf | 5 + lighttpd/mime-text.conf | 20 +++ lighttpd/mime-video.conf | 12 ++ lighttpd/mime-web.conf | 9 ++ lighttpd/mime-xml.conf | 8 ++ lighttpd/mime.conf | 245 +++--------------------------------- lynx/.mailcap | 7 ++ mutt/.mime.types | 7 ++ 20 files changed, 246 insertions(+), 227 deletions(-) create mode 100644 lighttpd/mime-archive.conf create mode 100644 lighttpd/mime-audio.conf create mode 100644 lighttpd/mime-crypto.conf create mode 100644 lighttpd/mime-doc.conf create mode 100644 lighttpd/mime-font.conf create mode 100644 lighttpd/mime-if.conf create mode 100644 lighttpd/mime-img.conf create mode 100644 lighttpd/mime-mail.conf create mode 100644 lighttpd/mime-ms.conf create mode 100644 lighttpd/mime-od.conf create mode 100644 lighttpd/mime-playlist.conf create mode 100644 lighttpd/mime-sharing.conf create mode 100644 lighttpd/mime-subtitle.conf create mode 100644 lighttpd/mime-text.conf create mode 100644 lighttpd/mime-video.conf create mode 100644 lighttpd/mime-web.conf create mode 100644 lighttpd/mime-xml.conf diff --git a/lighttpd/mime-archive.conf b/lighttpd/mime-archive.conf new file mode 100644 index 0000000..03f19be --- /dev/null +++ b/lighttpd/mime-archive.conf @@ -0,0 +1,20 @@ +mimetype.assign += ( + ".7z" => "application/x-7z-compressed", + ".bz2" => "application/x-bzip2", + ".cpio" => "application/x-cpio", + ".deb" => "application/vnd.debian.binary-package", + ".gz" => "application/gzip", + ".jar" => "application/x-java-archive", + ".lz" => "application/lzip", + ".par2" => "application/x-par2", + ".rar" => "application/vnd.rar", + ".rpm" => "application/x-rpm", + ".tbz" => "application/x-bzip2", + ".tgz" => "application/gzip", + ".txz" => "application/x-xz", + ".tzst" => "application/zstd", + ".warc" => "application/warc", + ".xz" => "application/x-xz", + ".zip" => "application/zip", + ".zst" => "application/zstd", +) diff --git a/lighttpd/mime-audio.conf b/lighttpd/mime-audio.conf new file mode 100644 index 0000000..023acc6 --- /dev/null +++ b/lighttpd/mime-audio.conf @@ -0,0 +1,18 @@ +mimetype.assign += ( + ".aac" => "audio/aac", + ".ac3" => "audio/ac3", + ".aif" => "audio/aiff", + ".aiff" => "audio/aiff", + ".flac" => "audio/flac", + ".m4a" => "audio/mp4", + ".mka" => "audio/x-matroska", + ".mp2" => "audio/mpeg", + ".mp3" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".spx" => "audio/ogg", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".wv" => "audio/x-wavpack", +) diff --git a/lighttpd/mime-crypto.conf b/lighttpd/mime-crypto.conf new file mode 100644 index 0000000..8918805 --- /dev/null +++ b/lighttpd/mime-crypto.conf @@ -0,0 +1,15 @@ +mimetype.assign += ( + ".cer" => "application/pkix-cert", + ".crl" => "application/pkix-crl", + ".gpg" => "application/pgp-encrypted", + ".p10" => "application/pkcs10", + ".p12" => "application/pkcs12", + ".p7c" => "application/pkcs7-mime", + ".p7m" => "application/pkcs7-mime", + ".p7s" => "application/pkcs7-signature", + ".p8" => "application/pkcs8", + ".p8e" => "application/pkcs8-encrypted", + ".pem" => "application/pem-certificate-chain", + ".pfx" => "application/pkcs12", + ".sig" => "application/pgp-signature", +) diff --git a/lighttpd/mime-doc.conf b/lighttpd/mime-doc.conf new file mode 100644 index 0000000..677bdfb --- /dev/null +++ b/lighttpd/mime-doc.conf @@ -0,0 +1,12 @@ +mimetype.assign += ( + ".cbr" => "application/vnd.comicbook+rar", + ".cbz" => "application/vnd.comicbook+zip", + ".chm" => "application/vnd.ms-htmlhelp", + ".djvu" => "image/vnd.djvu", + ".dvi" => "application/x-dvi", + ".eps" => "application/postscript", + ".epub" => "application/epub+zip", + ".fb2" => "application/x-fictionbook+xml", + ".pdf" => "application/pdf", + ".ps" => "application/postscript", +) diff --git a/lighttpd/mime-font.conf b/lighttpd/mime-font.conf new file mode 100644 index 0000000..7d9f75c --- /dev/null +++ b/lighttpd/mime-font.conf @@ -0,0 +1,6 @@ +mimetype.assign += ( + ".otf" => "font/otf", + ".ttf" => "font/ttf", + ".woff" => "font/woff", + ".woff2" => "font/woff2", +) diff --git a/lighttpd/mime-if.conf b/lighttpd/mime-if.conf new file mode 100644 index 0000000..85e08a6 --- /dev/null +++ b/lighttpd/mime-if.conf @@ -0,0 +1,18 @@ +mimetype.assign += ( + ".blb" => "application/x-blorb", + ".blorb" => "application/x-blorb", + ".gblorb" => "application/x-blorb", + ".glb" => "application/x-blorb", + ".ifm" => "text/plain", + ".ulx" => "application/x-glulx", + ".z1" => "application/x-zmachine", + ".z2" => "application/x-zmachine", + ".z3" => "application/x-zmachine", + ".z4" => "application/x-zmachine", + ".z5" => "application/x-zmachine", + ".z6" => "application/x-zmachine", + ".z7" => "application/x-zmachine", + ".z8" => "application/x-zmachine", + ".zblorb" => "application/x-blorb", + ".zlb" => "application/x-blorb", +) diff --git a/lighttpd/mime-img.conf b/lighttpd/mime-img.conf new file mode 100644 index 0000000..0df01e3 --- /dev/null +++ b/lighttpd/mime-img.conf @@ -0,0 +1,23 @@ +mimetype.assign += ( + ".apng" => "image/vnd.mozilla.apng", + ".avif" => "image/avif", + ".gif" => "image/gif", + ".heic" => "image/heic", + ".jp2" => "image/jp2", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".jxl" => "image/jxl", + ".mng" => "video/x-mng", + ".pam" => "image/x-portable-arbitrarymap", + ".pbm" => "image/x-portable-bitmap", + ".pfm" => "image/x-portable-floatmap", + ".pgm" => "image/x-portable-graymap", + ".png" => "image/png", + ".pnm" => "image/x-portable-anymap", + ".ppm" => "image/x-portable-pixmap", + ".svg" => "image/svg+xml", + ".tif" => "image/tiff", + ".tiff" => "image/tiff", + ".webp" => "image/webp", + ".xpm" => "image/x-xpixmap", +) diff --git a/lighttpd/mime-mail.conf b/lighttpd/mime-mail.conf new file mode 100644 index 0000000..2d5b14f --- /dev/null +++ b/lighttpd/mime-mail.conf @@ -0,0 +1,5 @@ +mimetype.assign += ( + ".eml" => "message/rfc822", + ".mbox" => "application/mbox", + ".mht" => "message/rfc822", +) diff --git a/lighttpd/mime-ms.conf b/lighttpd/mime-ms.conf new file mode 100644 index 0000000..ed0f58b --- /dev/null +++ b/lighttpd/mime-ms.conf @@ -0,0 +1,14 @@ +mimetype.assign += ( + ".doc" => "application/msword", + ".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + ".dotx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.template", + ".potx" => "application/vnd.openxmlformats-officedocument.presentationml.template", + ".ppsx" => "application/vnd.openxmlformats-officedocument.presentationml.slideshow", + ".ppt" => "application/vnd.ms-powerpoint", + ".pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation", + ".rtf" => "application/rtf", + ".sldx" => "application/vnd.openxmlformats-officedocument.presentationml.slide", + ".xls" => "application/vnd.ms-excel", + ".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + ".xltx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.template", +) diff --git a/lighttpd/mime-od.conf b/lighttpd/mime-od.conf new file mode 100644 index 0000000..ec03df2 --- /dev/null +++ b/lighttpd/mime-od.conf @@ -0,0 +1,18 @@ +mimetype.assign += ( + ".odb" => "application/vnd.oasis.opendocument.database", + ".odc" => "application/vnd.oasis.opendocument.chart", + ".odf" => "application/vnd.oasis.opendocument.formula", + ".odg" => "application/vnd.oasis.opendocument.graphics", + ".odi" => "application/vnd.oasis.opendocument.image", + ".odm" => "application/vnd.oasis.opendocument.text-master", + ".odp" => "application/vnd.oasis.opendocument.presentation", + ".ods" => "application/vnd.oasis.opendocument.spreadsheet", + ".odt" => "application/vnd.oasis.opendocument.text", + ".otc" => "application/vnd.oasis.opendocument.chart-template", + ".otg" => "application/vnd.oasis.opendocument.graphics-template", + ".oth" => "application/vnd.oasis.opendocument.text-web", + ".oti" => "application/vnd.oasis.opendocument.image-template", + ".otp" => "application/vnd.oasis.opendocument.presentation-template", + ".ots" => "application/vnd.oasis.opendocument.spreadsheet-template", + ".ott" => "application/vnd.oasis.opendocument.text-template", +) diff --git a/lighttpd/mime-playlist.conf b/lighttpd/mime-playlist.conf new file mode 100644 index 0000000..a0af89e --- /dev/null +++ b/lighttpd/mime-playlist.conf @@ -0,0 +1,5 @@ +mimetype.assign += ( + ".m3u" => "application/vnd.apple.mpegurl", + ".m3u8" => "application/vnd.apple.mpegurl", + ".xspf" => "application/xspf+xml", +) diff --git a/lighttpd/mime-sharing.conf b/lighttpd/mime-sharing.conf new file mode 100644 index 0000000..2f1d239 --- /dev/null +++ b/lighttpd/mime-sharing.conf @@ -0,0 +1,6 @@ +mimetype.assign += ( + ".iso" => "application/x-iso9660-image", + ".meta4" => "application/metalink4+xml", + ".metalink" => "application/metalink+xml", + ".torrent" => "application/x-bittorrent", +) diff --git a/lighttpd/mime-subtitle.conf b/lighttpd/mime-subtitle.conf new file mode 100644 index 0000000..047216d --- /dev/null +++ b/lighttpd/mime-subtitle.conf @@ -0,0 +1,5 @@ +mimetype.assign += ( + ".ass" => "text/x-ssa", + ".srt" => "application/x-subrip", + ".ssa" => "text/x-ssa", +) diff --git a/lighttpd/mime-text.conf b/lighttpd/mime-text.conf new file mode 100644 index 0000000..99ce9d1 --- /dev/null +++ b/lighttpd/mime-text.conf @@ -0,0 +1,20 @@ +mimetype.assign += ( + ".asc" => "text/plain", + ".csv" => "text/csv", + ".cue" => "text/plain", + ".gmi" => "text/gemini; charset=utf-8", + ".icf" => "text/calendar; charset=utf-8", + ".info" => "text/info; charset=utf-8", + ".json" => "application/json; charset=utf-8", + ".ldif" => "text/plain; charset=utf-8", + ".log" => "text/plain; charset=utf-8", + ".md" => "text/markdown; charset=utf-8", + ".rec" => "text/plain; charset=utf-8", + ".sql" => "text/plain; charset=utf-8", + ".txt" => "text/plain; charset=utf-8", + ".url" => "text/uri-list; charset=utf-8", + ".vcf" => "text/vcard; charset=utf-8", + ".zone" => "text/dns; charset=utf-8", + "ls-lR" => "text/plain; charset=utf-8", + "README" => "text/plain; charset=utf-8", +) diff --git a/lighttpd/mime-video.conf b/lighttpd/mime-video.conf new file mode 100644 index 0000000..8a69a54 --- /dev/null +++ b/lighttpd/mime-video.conf @@ -0,0 +1,12 @@ +mimetype.assign += ( + ".avi" => "video/x-msvideo", + ".m4v" => "video/mp4", + ".mj2" => "video/mj2", + ".mkv" => "video/x-matroska", + ".mov" => "video/quicktime", + ".mp4" => "video/mp4", + ".mpg" => "video/mpeg", + ".ogv" => "video/ogg", + ".ts" => "video/MP2T", + ".webm" => "video/webm", +) diff --git a/lighttpd/mime-web.conf b/lighttpd/mime-web.conf new file mode 100644 index 0000000..aa9fa11 --- /dev/null +++ b/lighttpd/mime-web.conf @@ -0,0 +1,9 @@ +mimetype.assign += ( + ".css" => "text/css; charset=utf-8", + ".dtd" => "application/xml-dtd", + ".htm" => "text/html", + ".html" => "text/html", + ".js" => "application/javascript; charset=utf-8", + ".wasm" => "application/wasm", + ".xhtml" => "application/xhtml+xml", +) diff --git a/lighttpd/mime-xml.conf b/lighttpd/mime-xml.conf new file mode 100644 index 0000000..59b970c --- /dev/null +++ b/lighttpd/mime-xml.conf @@ -0,0 +1,8 @@ +mimetype.assign += ( + ".atom" => "application/atom+xml", + ".dbk" => "application/docbook+xml", + ".opml" => "application/xml", + ".rss" => "application/rss+xml", + ".xbel" => "application/xml", + ".xml" => "application/xml", +) diff --git a/lighttpd/mime.conf b/lighttpd/mime.conf index db1a712..5e0191f 100644 --- a/lighttpd/mime.conf +++ b/lighttpd/mime.conf @@ -1,230 +1,21 @@ mimetype.assign = ( - # Archives - - ".7z" => "application/x-7z-compressed", - ".bz2" => "application/x-bzip2", - ".cpio" => "application/x-cpio", - ".deb" => "application/vnd.debian.binary-package", - ".gz" => "application/gzip", - ".jar" => "application/x-java-archive", - ".lz" => "application/lzip", - ".par2" => "application/x-par2", - ".rar" => "application/vnd.rar", - ".rpm" => "application/x-rpm", - ".tbz" => "application/x-bzip2", - ".tgz" => "application/gzip", - ".txz" => "application/x-xz", - ".tzst" => "application/zstd", - ".warc" => "application/warc", - ".xz" => "application/x-xz", - ".zip" => "application/zip", - ".zst" => "application/zstd", - - # Text files - - ".asc" => "text/plain", - ".csv" => "text/csv", - ".cue" => "text/plain", - ".icf" => "text/calendar; charset=utf-8", - ".info" => "text/info; charset=utf-8", - ".json" => "application/json; charset=utf-8", - ".ldif" => "text/plain; charset=utf-8", - ".log" => "text/plain; charset=utf-8", - ".md" => "text/markdown; charset=utf-8", - ".rec" => "text/plain; charset=utf-8", - ".sql" => "text/plain; charset=utf-8", - ".txt" => "text/plain; charset=utf-8", - ".url" => "text/uri-list; charset=utf-8", - ".vcf" => "text/vcard; charset=utf-8", - ".zone" => "text/dns; charset=utf-8", - "ls-lR" => "text/plain; charset=utf-8", - "README" => "text/plain; charset=utf-8", - - # XMLs - - ".atom" => "application/atom+xml", - ".dbk" => "application/docbook+xml", - ".opml" => "application/xml", - ".rss" => "application/rss+xml", - ".xbel" => "application/xml", - ".xml" => "application/xml", - - # Web - - ".css" => "text/css; charset=utf-8", - ".dtd" => "application/xml-dtd", - ".htm" => "text/html", - ".html" => "text/html", - ".js" => "application/javascript; charset=utf-8", - ".wasm" => "application/wasm", - ".xhtml" => "application/xhtml+xml", - - # Fonts - - ".otf" => "font/otf", - ".ttf" => "font/ttf", - ".woff" => "font/woff", - ".woff2" => "font/woff2", - - # Documents - - ".cbr" => "application/vnd.comicbook+rar", - ".cbz" => "application/vnd.comicbook+zip", - ".chm" => "application/vnd.ms-htmlhelp", - ".djvu" => "image/vnd.djvu", - ".dvi" => "application/x-dvi", - ".eps" => "application/postscript", - ".epub" => "application/epub+zip", - ".fb2" => "application/x-fictionbook+xml", - ".pdf" => "application/pdf", - ".ps" => "application/postscript", - - # OpenDocument - - ".odb" => "application/vnd.oasis.opendocument.database", - ".odc" => "application/vnd.oasis.opendocument.chart", - ".odf" => "application/vnd.oasis.opendocument.formula", - ".odg" => "application/vnd.oasis.opendocument.graphics", - ".odi" => "application/vnd.oasis.opendocument.image", - ".odm" => "application/vnd.oasis.opendocument.text-master", - ".odp" => "application/vnd.oasis.opendocument.presentation", - ".ods" => "application/vnd.oasis.opendocument.spreadsheet", - ".odt" => "application/vnd.oasis.opendocument.text", - ".otc" => "application/vnd.oasis.opendocument.chart-template", - ".otg" => "application/vnd.oasis.opendocument.graphics-template", - ".oth" => "application/vnd.oasis.opendocument.text-web", - ".oti" => "application/vnd.oasis.opendocument.image-template", - ".otp" => "application/vnd.oasis.opendocument.presentation-template", - ".ots" => "application/vnd.oasis.opendocument.spreadsheet-template", - ".ott" => "application/vnd.oasis.opendocument.text-template", - - # Microsoft formats - - ".doc" => "application/msword", - ".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - ".dotx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.template", - ".potx" => "application/vnd.openxmlformats-officedocument.presentationml.template", - ".ppsx" => "application/vnd.openxmlformats-officedocument.presentationml.slideshow", - ".ppt" => "application/vnd.ms-powerpoint", - ".pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation", - ".rtf" => "application/rtf", - ".sldx" => "application/vnd.openxmlformats-officedocument.presentationml.slide", - ".xls" => "application/vnd.ms-excel", - ".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", - ".xltx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.template", - - # Interactive fiction - - ".blb" => "application/x-blorb", - ".blorb" => "application/x-blorb", - ".gblorb" => "application/x-blorb", - ".glb" => "application/x-blorb", - ".ifm" => "text/plain", - ".ulx" => "application/x-glulx", - ".z1" => "application/x-zmachine", - ".z2" => "application/x-zmachine", - ".z3" => "application/x-zmachine", - ".z4" => "application/x-zmachine", - ".z5" => "application/x-zmachine", - ".z6" => "application/x-zmachine", - ".z7" => "application/x-zmachine", - ".z8" => "application/x-zmachine", - ".zblorb" => "application/x-blorb", - ".zlb" => "application/x-blorb", - - # Cryptography - - ".cer" => "application/pkix-cert", - ".crl" => "application/pkix-crl", - ".gpg" => "application/pgp-encrypted", - ".p10" => "application/pkcs10", - ".p12" => "application/pkcs12", - ".p7c" => "application/pkcs7-mime", - ".p7m" => "application/pkcs7-mime", - ".p7s" => "application/pkcs7-signature", - ".p8" => "application/pkcs8", - ".p8e" => "application/pkcs8-encrypted", - ".pem" => "application/pem-certificate-chain", - ".pfx" => "application/pkcs12", - ".sig" => "application/pgp-signature", - - # Images - - ".apng" => "image/vnd.mozilla.apng", - ".avif" => "image/avif", - ".gif" => "image/gif", - ".heic" => "image/heic", - ".jp2" => "image/jp2", - ".jpeg" => "image/jpeg", - ".jpg" => "image/jpeg", - ".jxl" => "image/jxl", - ".mng" => "video/x-mng", - ".pbm" => "image/x-portable-bitmap", - ".pgm" => "image/x-portable-graymap", - ".png" => "image/png", - ".pnm" => "image/x-portable-anymap", - ".ppm" => "image/x-portable-pixmap", - ".svg" => "image/svg+xml", - ".tif" => "image/tiff", - ".tiff" => "image/tiff", - ".webp" => "image/webp", - - # Audio - - ".aac" => "audio/aac", - ".ac3" => "audio/ac3", - ".aif" => "audio/aiff", - ".aiff" => "audio/aiff", - ".flac" => "audio/flac", - ".m4a" => "audio/mp4", - ".mka" => "audio/x-matroska", - ".mp2" => "audio/mpeg", - ".mp3" => "audio/mpeg", - ".oga" => "audio/ogg", - ".ogg" => "audio/ogg", - ".opus" => "audio/ogg", - ".spx" => "audio/ogg", - ".wav" => "audio/wav", - ".weba" => "audio/webm", - ".wv" => "audio/x-wavpack", - - # Video - - ".avi" => "video/x-msvideo", - ".m4v" => "video/mp4", - ".mj2" => "video/mj2", - ".mkv" => "video/x-matroska", - ".mov" => "video/quicktime", - ".mp4" => "video/mp4", - ".mpg" => "video/mpeg", - ".ogv" => "video/ogg", - ".ts" => "video/MP2T", - ".webm" => "video/webm", - - # Playlist - - ".m3u" => "application/vnd.apple.mpegurl", - ".m3u8" => "application/vnd.apple.mpegurl", - ".xspf" => "application/xspf+xml", - - # Subtitles - - ".ass" => "text/x-ssa", - ".srt" => "application/x-subrip", - ".ssa" => "text/x-ssa", - - # Mail - - ".eml" => "message/rfc822", - ".mbox" => "application/mbox", - ".mht" => "message/rfc822", - - # File sharing - - ".iso" => "application/x-iso9660-image", - ".meta4" => "application/metalink4+xml", - ".metalink" => "application/metalink+xml", - ".torrent" => "application/x-bittorrent", - "" => "application/octet-stream" ) + +include "mime-archive.conf" +include "mime-text.conf" +include "mime-xml.conf" +include "mime-web.conf" +include "mime-font.conf" +include "mime-doc.conf" +include "mime-od.conf" +include "mime-ms.conf" +include "mime-if.conf" +include "mime-crypto.conf" +include "mime-img.conf" +include "mime-audio.conf" +include "mime-video.conf" +include "mime-playlist.conf" +include "mime-subtitle.conf" +include "mime-mail.conf" +include "mime-sharing.conf" diff --git a/lynx/.mailcap b/lynx/.mailcap index 10062b0..a5e9784 100644 --- a/lynx/.mailcap +++ b/lynx/.mailcap @@ -6,6 +6,13 @@ image/jxl; sxiv '%s'; test=test -n "$DISPLAY" image/png; sxiv '%s'; test=test -n "$DISPLAY" image/webp; sxiv '%s'; test=test -n "$DISPLAY" image/x-djvu; zat '%s'; test=test -n "$DISPLAY" +image/x-portable-anymap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-portable-arbitrarymap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-portable-bitmap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-portable-floatmap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-portable-graymap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-portable-pixmap; sxiv '%s'; test=test -n "$DISPLAY" +image/x-xpixmap; sxiv '%s'; test=test -n "$DISPLAY" text/html; lynx -noreferer -partial -assume_charset=%{charset} -dump %s; copiousoutput; nametemplate=%s.html text/info; info '%s'; needsterminal text/plain; less '%s'; needsterminal diff --git a/mutt/.mime.types b/mutt/.mime.types index 16a5c48..71080a3 100644 --- a/mutt/.mime.types +++ b/mutt/.mime.types @@ -6,5 +6,12 @@ image/jxl jxl image/png png image/webp webp image/x-djvu djvu +image/x-portable-anymap pnm +image/x-portable-arbitrarymap pam +image/x-portable-bitmap pbm +image/x-portable-floatmap pfm +image/x-portable-graymap pgm +image/x-portable-pixmap ppm +image/x-xpixmap xpm text/info info text/plain txt -- 2.44.0