X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/05d1c1ac3b62f9b991f5fc11369715c52311d9f1..7598435441b039065b9384cab29f8c3cae308ae8:/.emacs.d/lisp/bandali-gnus.el diff --git a/.emacs.d/lisp/bandali-gnus.el b/.emacs.d/lisp/bandali-gnus.el index 2ca03e4..63c7c00 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) @@ -274,6 +257,8 @@ (setq gnus-thread-sort-functions '(gnus-thread-sort-by-number gnus-thread-sort-by-subject gnus-thread-sort-by-date)) + (with-eval-after-load 'message + (setq gnus-ignored-from-addresses message-dont-reply-to-names)) ;; local key bindings (define-key gnus-summary-mode-map (kbd "M-L") #'org-store-link) ;; (define-key gnus-summary-mode-map (kbd "r") @@ -328,7 +313,7 @@ ("X-Message-SMTP-Method" "smtp mail.shemshak.org 587") (gcc "nnimap+shemshak:Sent")) ("nnimap\\+canonical:.*" - (address "amin.bandali@canonical.com") + (address "bandali@canonical.com") ("X-Message-SMTP-Method" "smtp smtp.canonical.com 587") (signature nil) (gcc "nnimap+canonical:Sent")) @@ -360,7 +345,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)) @@ -384,6 +368,9 @@ 'mm-archive-decoders '("application/gzip" nil "gunzip" "-S" ".zip" "-kd" "%f" "-r"))) +(with-eval-after-load 'gnus-start + (add-hook 'gnus-after-getting-new-news-hook #'gnus-notifications)) + (with-eval-after-load 'mm-decode (setq ;; mm-attachment-override-types `("text/x-diff" "text/x-patch"