Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile
[profile] / dot / gnus-local.el.distorted
index 02dea2e..64dced6 100644 (file)
           '(("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.
                (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\\+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.
          (from "\\(sealbot\\|cardbot\\)@ncipher\\.com" "nag.cardbot")
          (from "\\<mailman-owner@" "nag.mailman" t)
 
+         ;; Uninteresting mail.
+         (from "expiry@letsencrypt\\.org" "spam.letsencrypt" t)
+
          ;; Other splits I've not given a per-sender address.
          (from "@\\(.*\\.\\)?lovefilm\\.com" "spam.lovefilm" t)
          (from "@amazon\\." "spam.amazon" t)