X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/4b4884ba9a6d7e8588f216fdd12ad72442754032..a677bd3adcb56d3a31f52f0cbf9db05b590a2046:/dot/gnus-local.el.distorted diff --git a/dot/gnus-local.el.distorted b/dot/gnus-local.el.distorted index 21aafdc..b4b0037 100644 --- a/dot/gnus-local.el.distorted +++ b/dot/gnus-local.el.distorted @@ -25,6 +25,14 @@ '((nnimap "distorted" (nnimap-address "mail.distorted.org.uk") (nnimap-stream tls) + (nnimap-authinfo-file "~/.gnus.authinfo")) + (nnimap "markw-distorted" + (nnimap-address "mail.distorted.org.uk") + (nnimap-stream tls) + (nnimap-authinfo-file "~/.gnus.authinfo.markw")) + (nnimap "google" + (nnimap-address "imap.gmail.com") + (nnimap-stream tls) (nnimap-authinfo-file "~/.gnus.authinfo")))) ;; Send sent mail back to me. @@ -38,14 +46,21 @@ ;; General splitting configuration. (setq nnimap-split-inbox '("INBOX" "to.split") nnimap-split-rule 'nnimap-split-fancy - nnimap-split-crosspost t + nnimap-split-methods 'nnimap-split-fancy + nnmail-split-methods 'nnmail-split-fancy nnimap-split-predicate "UNDELETED" + nnimap-split-crosspost t + nnmail-split-crosspost t nnmail-split-fancy-match-partial-words nil) ;; Automatic expiry for particular groups. (setq gnus-auto-expirable-newsgroups "^nnimap\\+distorted:\\(crap\\|spam\\|admin\\|lists\\|nag\\)\\..*") +;; My various email addresses. +(setq message-alternative-emails bbdb-user-mail-names + message-dont-reply-to-names message-alternative-emails) + ;; Mail sent to `mdw-nospam-THING' should appear to come from this address. (setq gnus-posting-styles '(((and (string-match "^nnimap\\+distorted:crap\\.\\(.*\\)$" @@ -56,19 +71,40 @@ ("From" mdw-from-address)))) ;; The actual splitting rules. -(setq nnimap-split-fancy - '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t) - (to "\\