From 7f88c32134c8b978a258a880f299891b5b4ec59b Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 19 May 2019 11:18:10 -0400 Subject: [PATCH] emacs: gnus: add fancy mail splitting, tweak some posting-styles --- .emacs.d/init.el | 46 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index a1da362..a0b328e 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1529,7 +1529,42 @@ For disabling the behaviour for certain buffers and/or modes." (nnimap-address "127.0.0.1") (nnimap-server-port 143) (nnimap-authenticator plain) - (nnimap-user "bandali@gnu.local")) + (nnimap-user "bandali@gnu.local") + (nnimap-inbox "INBOX") + (nnimap-split-methods 'nnimap-split-fancy) + (nnimap-split-fancy (| + (: gnus-registry-split-fancy-with-parent) + ;; (: gnus-group-split-fancy "INBOX" t "INBOX") + ;; gnu + (list ".*emacs-devel.gnu.org" "l.gnu.emacs.devel") + (list ".*help-gnu-emacs.gnu.org" "l.gnu.emacs.help") + (list ".*info-gnu-emacs.gnu.org" "l.gnu.emacs.info") + (list ".*emacs-orgmode.gnu.org" "l.gnu.emacs.orgmode") + (list ".*emacsconf-discuss.gnu.org" "l.gnu.emacsconf.discuss") + (list ".*fencepost-users.gnu.org" "l.gnu.fencepost.users") + (list ".*gnunet-developers.gnu.org" "l.gnu.gnunet.developers") + (list ".*help-gnunet.gnu.org" "l.gnu.gnunet.help") + (list ".*bug-gnuzilla.gnu.org" "l.gnu.gnuzilla.bug") + (list ".*gnuzilla-dev.gnu.org" "l.gnu.gnuzilla.dev") + (list ".*guile-devel.gnu.org" "l.gnu.guile.devel") + (list ".*guix-devel.gnu.org" "l.gnu.guix.devel") + (list ".*info-guix.gnu.org" "l.gnu.guix.info") + (list ".*www-commits.gnu.org" "l.gnu.www.commits") + (list ".*www-discuss.gnu.org" "l.gnu.www.discuss") + ;; haskell + (list ".*haskell-art.we.lurk.org" "l.haskell.art") + (list ".*haskell-cafe.haskell.org" "l.haskell.cafe") + ;; other + (list ".*deepspec.lists.cs.princeton.edu" "l.deepspec") + (list ".*notmuch.notmuchmail.org" "l.notmuch") + (list ".*dev.lists.parabola.nu" "l.parabola.dev") + ;; *@lists.sr.ht + (list ".*~bandali/public-inbox@lists.sr.ht" "l.~bandali.public-inbox") + (list ".*~sircmpwn/sr.ht-admins@lists.sr.ht" "l.~sircmpwn.srht.admins") + (list ".*~sircmpwn/sr.ht-announce@lists.sr.ht" "l.~sircmpwn.srht.announce") + (list ".*~sircmpwn/sr.ht-dev@lists.sr.ht" "l.~sircmpwn.srht.dev") + (list ".*~sircmpwn/sr.ht-discuss@lists.sr.ht" "l.~sircmpwn.srht.discuss") + "INBOX"))) (nnimap "uw" (nnimap-stream plain) (nnimap-address "127.0.0.1") @@ -1548,9 +1583,6 @@ For disabling the behaviour for certain buffers and/or modes." (to-address . "deepspec@lists.cs.princeton.edu") (to-list . "deepspec@lists.cs.princeton.edu") (list-identifier . "\\[deepspec\\]")) - ("gnu\\.emacs-devel" - (to-address . "emacs-devel@gnu.org") - (to-list . "emacs-devel@gnu.org")) ("l\\.gnu\\.emacs\\.devel" (to-address . "emacs-devel@gnu.org") (to-list . "emacs-devel@gnu.org")) @@ -1655,6 +1687,8 @@ For disabling the behaviour for certain buffers and/or modes." (require 'ebdb-mua) (require 'ebdb-gnus) + (gnus-registry-initialize) + (with-eval-after-load 'recentf (add-to-list 'recentf-exclude gnus-home-directory))) @@ -1714,13 +1748,13 @@ https://csclub.uwaterloo.ca/~abandali/") (address "amin@bndl.org") (body "\nBest,\n") (eval (setq a/message-cite-say-hi t))) - ("gnu.*" + ("nnimap\\+gnu:.*" (address "bandali@gnu.org") (signature a/gnu-signature) (eval (set (make-local-variable 'message-user-fqdn) "fencepost.gnu.org"))) ((header "subject" "ThankCRM") (to "webmasters-comment@gnu.org") - (body "Added to 2019supporters.html.\n\nMoving to campaigns.\n\n-amin\n") + (body "Added to 2019supporters.html.\n\nMoving to campaigns.\n") (eval (setq a/message-cite-say-hi nil))) ("nnimap\\+uw:.*" (address "abandali@uwaterloo.ca") -- 2.20.1