From: Mark Wooding Date: Mon, 27 Jan 2014 17:08:26 +0000 (+0000) Subject: dot/gnus-local.el.distorted: Ship local mail config. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/5252f79a7359a7957187e9c9f980d295512c482a?ds=sidebyside;hp=--cc dot/gnus-local.el.distorted: Ship local mail config. Don't install it. I'll have to add symlinks manually for hosts which want to use it. --- 5252f79a7359a7957187e9c9f980d295512c482a diff --git a/dot/gnus-local.el.distorted b/dot/gnus-local.el.distorted new file mode 100644 index 0000000..502fdc1 --- /dev/null +++ b/dot/gnus-local.el.distorted @@ -0,0 +1,76 @@ +;;; -*-emacs-lisp-*- +;;; +;;; Local GNUS configuration -- distorted.org.uk version +;;; +;;; (c) 2014 Mark Wooding +;;; + +;;;-------------------------------------------------------------------------- +;;; Where we get mail from. + +;; Read mail on the IMAP server. +(setq gnus-secondary-select-methods + '((nnimap "distorted" + (nnimap-address "mail.distorted.org.uk") + (nnimap-stream tls) + (nnimap-authinfo-file "~/.gnus.authinfo")))) + +;; Send sent mail back to me. +(setq gnus-message-archive-method "mail" + gnus-gcc-mark-as-read t + gnus-message-archive-group "nnimap+distorted:mail.sent") + +;;;-------------------------------------------------------------------------- +;;; Mail group configuration. + +;; General splitting configuration. +(setq nnimap-split-inbox '("INBOX" "to.split") + nnimap-split-rule 'nnimap-split-fancy + nnimap-split-crosspost t + nnimap-split-predicate "UNDELETED" + nnmail-split-fancy-match-partial-words nil) + +;; Automatic expiry for particular groups. +(setq gnus-auto-expirable-newsgroups + "^nnimap\\+distorted:\\(crap\\|spam\\|admin\\|lists\\|nag\\)\\..*") + +;; Mail sent to `mdw-nospam-THING' should appear to come from this address. +(setq gnus-posting-styles + '(((and (string-match "^nnimap\\+distorted:crap\\.\\(.*\\)$" + gnus-newsgroup-name) + (setq mdw-from-address + (replace-match "mdw-nospam-\\1@distorted.org.uk" + nil nil gnus-newsgroup-name))) + ("From" mdw-from-address)))) + +;; The actual splitting rules. +(setq nnimap-split-fancy + '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t) + (to "\\