* .emacs.d/lisp/bandali-gnus.el: Tweak gnus-posting-styles.
[~bandali/configs] / .emacs.d / lisp / bandali-gnus.el
index e09fa30..fa05a00 100644 (file)
        '(list . "list-id\\|list-post\\|x-mailing-list\\|x-beenthere\\|x-loop")
        t)))
 
+  (setq gnus-user-agent '(emacs gnus type))
+
   ;; (require 'gnus-registry)
   ;; (setq gnus-registry-max-entries 2500)
   ;; (setq gnus-registry-ignored-groups
   (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")
       ("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"))
+     ((header "to" "amin\\.bandali@canonical\\.com")
+      (address "amin.bandali@canonical.com"))
+     ((header "cc" "amin\\.bandali@canonical\\.com")
+      (address "amin.bandali@canonical.com"))
+     ((header "list-id" ".*\\.lists.ubuntu.com")
+      (address "bandali@ubuntu.com")
+      ("X-Message-SMTP-Method" "smtp mail.kelar.org 587"))
      ("nnimap\\+csc:.*"
       (address "bandali@csclub.uwaterloo.ca")
       ("X-Message-SMTP-Method" "smtp mail.csclub.uwaterloo.ca 587")
    '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"