From 05d4f8015b5da9be04da4c76909fdfd7575b4f35 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 20 Apr 2022 05:51:49 +1200 Subject: [PATCH 1/1] Add 7z handling to container-extractor --- .config/mutt/container-extractor | 1 + .config/mutt/mailcap.containers | 1 + 2 files changed, 2 insertions(+) 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 -- 2.39.5