X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/277521fa187f0774a5bb46016adf97e6afd3a6c2..bfdee8c36e31700e3c744c68489cc8de2c4e2c12:/dot/gnus-local.el.distorted diff --git a/dot/gnus-local.el.distorted b/dot/gnus-local.el.distorted index 3d8e1b8..64dced6 100644 --- a/dot/gnus-local.el.distorted +++ b/dot/gnus-local.el.distorted @@ -18,6 +18,16 @@ '(("mail.distorted.org.uk" 587 "" "")))) ;;;-------------------------------------------------------------------------- +;;; News via chiark. + +;; Currently we assume an SSH tunnel. This will be fixed later. +(setq gnus-select-method + '(nntp "chiark-ssh-kludge" + (nntp-open-connection-function nntp-open-authinfo-kludge) + (nntp-address "localhost:10119") + (nntp-authinfo-generic "md5cookie1way chiark"))) + +;;;-------------------------------------------------------------------------- ;;; Where we get mail from. ;; Read mail on the IMAP server. @@ -26,6 +36,10 @@ (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) @@ -42,8 +56,11 @@ ;; 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. @@ -51,13 +68,7 @@ "^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" - "\\)$") +(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. @@ -70,21 +81,43 @@ ("From" mdw-from-address)))) ;; The actual splitting rules. -(setq nnimap-split-fancy - '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t) - (to "\\