X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/370bb0ff091c2888901e55938b632a14835d9194..4d60a7ac95f814edd26bc558b486968a5a0728a0:/dot/gnus-local.el.distorted diff --git a/dot/gnus-local.el.distorted b/dot/gnus-local.el.distorted index e061cf3..02dea2e 100644 --- a/dot/gnus-local.el.distorted +++ b/dot/gnus-local.el.distorted @@ -42,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\\.\\(.*\\)$" @@ -60,21 +73,40 @@ ("From" mdw-from-address)))) ;; The actual splitting rules. -(setq nnimap-split-fancy - '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t) - (to "\\