X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/efa912ac6734b778b61fcb033bf0f603f2e2c2de..0603d31d2f1e4b760a7bf95df475ea9409eee38a:/.emacs.d/lisp/bandali-gnus.el?ds=sidebyside diff --git a/.emacs.d/lisp/bandali-gnus.el b/.emacs.d/lisp/bandali-gnus.el index 11d0de9..e09fa30 100644 --- a/.emacs.d/lisp/bandali-gnus.el +++ b/.emacs.d/lisp/bandali-gnus.el @@ -124,23 +124,6 @@ ;; ---------------------------------- ;; otherwise, leave mail in INBOX "INBOX"))) - (nnimap - "uwaterloo" - (nnimap-stream plain) - (nnimap-address "127.0.0.1") - (nnimap-server-port 143) - (nnimap-authenticator plain) - (nnimap-user "abandali@uwaterloo.local") - (nnimap-inbox "INBOX") - (nnimap-split-methods 'nnimap-split-fancy) - (nnimap-split-fancy - (| - ;; (: gnus-registry-split-fancy-with-parent) - ;; se212-f19 - ("subject" "SE\\s-?212" "course.se212-f19") - (from "SE\\s-?212" "course.se212-f19") - ;; catch-all - "INBOX"))) (nnimap "csc" (nnimap-stream plain) @@ -296,12 +279,6 @@ (defvar b/sfl-p nil) (with-eval-after-load 'gnus-msg (let ((bandali "Amin Bandali (https://kelar.org/~bandali)")) - (defvar b/canonical-signature - (mapconcat - #'identity - `(,bandali - "Software Engineer (Desktop), Canonical") - "\n")) (defvar b/csc-signature (mapconcat #'identity @@ -336,7 +313,7 @@ ("nnimap\\+canonical:.*" (address "amin.bandali@canonical.com") ("X-Message-SMTP-Method" "smtp smtp.canonical.com 587") - (signature b/canonical-signature) + (signature nil) (gcc "nnimap+canonical:Sent")) ("nnimap\\+csc:.*" (address "bandali@csclub.uwaterloo.ca") @@ -366,7 +343,6 @@ ,@(if (string= (system-name) "darya") '((("canonical" visible nil nil))) '((("csc" visible nil nil)) - (("uwaterloo" visible nil nil)) (("kelar" visible nil nil)) (("shemshak" visible nil nil)) (("gnu" visible nil nil)) @@ -385,13 +361,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)