From: martin f. krafft Date: Tue, 19 Apr 2022 17:51:49 +0000 (+1200) Subject: Add 7z handling to container-extractor X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/05d4f8015b5da9be04da4c76909fdfd7575b4f35?ds=inline Add 7z handling to container-extractor --- diff --git a/.config/mutt/container-extractor b/.config/mutt/container-extractor index e8dec52..5296b7d 100755 --- a/.config/mutt/container-extractor +++ b/.config/mutt/container-extractor @@ -27,6 +27,7 @@ cd "$TMPDIR" case "$1" in (application/ms-tnef) tnef;; (application/x-zip-compressed) unzip /dev/stdin;; + (application/x-7z-compressed) z7 e /dev/stdin;; (application/zip) unzip /dev/stdin;; esac diff --git a/.config/mutt/mailcap.containers b/.config/mutt/mailcap.containers index a53b092..80de383 100644 --- a/.config/mutt/mailcap.containers +++ b/.config/mutt/mailcap.containers @@ -4,4 +4,5 @@ application/ms-tnef; ~/.config/mutt/container-extractor '%t'; description=Microsoft NIH TNEF application/x-zip-compressed; ~/.config/mutt/container-extractor '%t'; description=Compressed ZIP files +application/x-7z-compressed; ~/.config/mutt/container-extractor '%t'; description=Compressed ZIP files application/zip; ~/.config/mutt/container-extractor '%t'; description=Compressed ZIP files