diff options
author | Amin Bandali <bandali@gnu.org> | 2022-12-25 00:53:27 -0500 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2022-12-25 00:57:13 -0500 |
commit | 05d1c1ac3b62f9b991f5fc11369715c52311d9f1 (patch) | |
tree | 0dea4e4023027d9802d2e3a7ae8415cec588905a | |
parent | 08a15504b4e831160d6fed6a56194af422956d53 (diff) | |
download | configs-05d1c1ac3b62f9b991f5fc11369715c52311d9f1.tar.gz configs-05d1c1ac3b62f9b991f5fc11369715c52311d9f1.tar.xz configs-05d1c1ac3b62f9b991f5fc11369715c52311d9f1.zip |
* .emacs.d/lisp/bandali-gnus.el: Decode application/gzip attachments.
-rw-r--r-- | .emacs.d/lisp/bandali-gnus.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.emacs.d/lisp/bandali-gnus.el b/.emacs.d/lisp/bandali-gnus.el index f4e44e6..2ca03e4 100644 --- a/.emacs.d/lisp/bandali-gnus.el +++ b/.emacs.d/lisp/bandali-gnus.el @@ -379,13 +379,22 @@ (with-eval-after-load 'gnus-dired (add-hook 'dired-mode-hook 'gnus-dired-mode)) +(with-eval-after-load 'mm-archive + (add-to-list + 'mm-archive-decoders + '("application/gzip" nil "gunzip" "-S" ".zip" "-kd" "%f" "-r"))) + (with-eval-after-load 'mm-decode (setq ;; mm-attachment-override-types `("text/x-diff" "text/x-patch" ;; ,@mm-attachment-override-types) mm-discouraged-alternatives '("text/html" "text/richtext") mm-decrypt-option 'known - mm-verify-option 'known)) + mm-verify-option 'known) + (add-to-list + 'mm-inline-media-tests + `("application/gzip" mm-archive-dissect-and-inline identity)) + (add-to-list 'mm-inlined-types "application/gzip" 'append)) (with-eval-after-load 'mm-uu (when (version< "27" emacs-version) |