X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/978e5f43a4bd2296ef0deb65eb8019da00824fdd..3c40e4528968844b262be2a212b23205c0646e26:/dot/gnus-local.el.distorted diff --git a/dot/gnus-local.el.distorted b/dot/gnus-local.el.distorted index 925646d..4f6e014 100644 --- a/dot/gnus-local.el.distorted +++ b/dot/gnus-local.el.distorted @@ -25,6 +25,10 @@ '((nnimap "distorted" (nnimap-address "mail.distorted.org.uk") (nnimap-stream tls) + (nnimap-authinfo-file "~/.gnus.authinfo")) + (nnimap "google" + (nnimap-address "imap.gmail.com") + (nnimap-stream tls) (nnimap-authinfo-file "~/.gnus.authinfo")))) ;; Send sent mail back to me. @@ -38,14 +42,27 @@ ;; 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 + (concat "^" + "\\(" "\\(mdw\\|markw\\|postmaster\\)" + "\\([-+][^@]*\\|\\)" + "@\\(distorted\\.org\\.uk\\|escorted\\.org\\.uk\\|odin\\.gg\\)" + "\\|" "distorted\\.mdw@g\\(oogle\\|\\)mail\\.com" + "\\)$") + 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,24 +73,39 @@ ("From" mdw-from-address)))) ;; The actual splitting rules. -(setq nnimap-split-fancy - '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t) - (to "\\