;;; (c) 2014 Mark Wooding
;;;
-;;;--------------------------------------------------------------------------
-;;; Random configuration.
-
(setq auth-sources '("~/.gnus.authinfo"))
-(remove-hook 'gnus-mark-article-hook
- 'gnus-summary-mark-read-and-unread-as-read)
-(add-hook 'gnus-mark-article-hook 'gnus-summary-mark-unread-as-read)
-
-(setq gnus-level-unsubscribed 6)
-
;;;--------------------------------------------------------------------------
;;; How to send mail.
(setq gnus-auto-expirable-newsgroups
(concat "^"
"\\(nnimap\\+[^:]+\\|nnvirtual\\):"
- "\\(" "\\(admin\\|crap\\|lists\\|nag\\|spam\\)\\."
+ "\\(" "\\(admin\\|crap\\|lists\\|nag\\)\\."
"\\|" "spam\\.oubliette"
"\\)"))
(address "distorted.mdw@gmail.com")
("X-mdw-Send-Mail" "gmail-smtp"))))
+(require 'nnmail)
+(setq nnmail-split-abbrev-alist
+ (mdw-uniquify-alist
+ `((to . ,(concat "to\\|cc\\|apparently-to\\|envelope-to\\|"
+ "resent-to\\|resent-cc"))
+ (any . ,(concat "from\\|sender\\|resent-from\\|"
+ "to\\|cc\\|apparently-to\\|envelope-to\\|"
+ "resent-to\\|resent-cc"))
+ ,@nnmail-split-abbrev-alist)))
+
(defvar mdw-odin-parse-regexp
(concat "^"
"\\S-+" "\\s-+" ; time limit
(from "darchive@.*\\.distorted\\.org\\.uk" "admin.misc")
(from "support@aa\\.net\\.uk" "admin.aaisp")
(from "bugs@distorted\\.org\\.uk" "admin.bugs")
+ (from "darchive@distorted\\.org\\.uk" "admin.darchive")
- ;; Colo provider.
+ ;; Colo and network provider.
(from "\\(accounts\\|support\\)@jump\\.net\\.uk" "keep.colo")
+ (from "\\(accounts\\|support\\)@aa\\.net\\.uk" "keep.aaisp")
;; Mailing lists, not split out earlier.
(to "python-list@python\\.org" "lists.python")
- (to "\\(jump-\\(announce\\|discuss\\)\\)@\\(lists\\.\\)jump\\.net\\.uk"
- "lists.jump-\\1")
+ (to ,(concat "\\(jump-\\(announce\\|discuss\\)\\)@"
+ "\\(lists\\.\\|\\)" "jump\\.net\\.uk")
+ "lists.\\1")
+ (to "cambridgecryptowhiskyclub@gmail\\.com"
+ "lists.cambridge-crypto-whisky")
+ (from ,(concat "@" "\\(" "liberty-human-rights"
+ "\\|" "libertyhumanrights"
+ "\\|" "libertymail"
+ "\\)" "\\.org\\.uk" "\\>")
+ "lists.liberty" t)
+ (from "@openrightsgroup\\.org\\>" "lists.org" t)
+ (from "@warwick\\.ac\\.uk\\>" "lists.warwick-uni" t)
+ (to "chiark-\\(motd\\|announce\\)@chiark\\.greenend\\.org\\.uk"
+ "lists.chiark-announce")
+ (any "clive-cambridge-gamers@nsict\\.org" "lists.nsict-games")
;; Per-sender addresses.
(to "\\<mdw-nospam-justgviing@" "crap.justgiving" t)
(from "\\<mailman-owner@" "nag.mailman" t)
;; Uninteresting mail.
- (from "expiry@letsencrypt\\.org" "spam.letsencrypt")
+ (from "expiry@letsencrypt\\.org" "admin.letsencrypt")
;; Other splits I've not given a per-sender address.
- (from "@\\(.*\\.\\)?lovefilm\\.com\\>" "spam.lovefilm" t)
- (from "@\\(\\|.*\\.\\)amazon\\." "spam.amazon" t)
- (from "@cineworldmail\\.com\\>" "spam.cineworld" t)
- (from "@picturehouses\\.co\\.uk\\>" "spam.picturehouse" t)
- (from "@nationwide" "spam.nationwide" t)
- (from "@news\\.spotifymail\\.com\\>" "spam.spotify" t)
- (from "@action\\.openrightsgroup\\.org\\>" "spam.org" t)
- (from "unlimited@cineworld\\.com\\>" "spam.cineworld" t)
- (from "nationwide@securesuiteemail\\.com\\>" "spam.nationwide" t)
- (from "@liberty-human-rights\\.org\\.uk\\>" "spam.liberty" t)
- (from "@libertymail\\.org\\.uk\\>" "spam.liberty" t)
- (from "@openrightsgroup\\.org\\>" "spam.org" t)
- (from "@tshirthell\\.com\\>" "spam.tshirt-hell" t)
+ (from "@\\(.*\\.\\)?lovefilm\\.com\\>" "crap.lovefilm" t)
+ (from "@\\(\\|.*\\.\\)amazon\\." "crap.amazon" t)
+ (from "@cineworldmail\\.com\\>" "crap.cineworld" t)
+ (from "@picturehouses\\.co\\.uk\\>" "crap.picturehouse" t)
+ (from "@nationwide" "crap.nationwide" t)
+ (from "nationwide@securesuiteemail\\.com\\>" "crap.nationwide" t)
+ (from "@news\\.spotifymail\\.com\\>" "crap.spotify" t)
+ (from "@action\\.openrightsgroup\\.org\\>" "crap.org" t)
+ (from "unlimited@cineworld\\.com\\>" "crap.cineworld" t)
+ (from "@tshirthell\\.com\\>" "crap.tshirt-hell" t)
(from "campaigns@jolla\\.com\\>" "crap.jolla" t)
+ (from "@thomann\\.de\\>" "crap.thomann" t)
+ (from "@wikimedia\\.org\\>" "crap.wikimedia" t)
+ (from "@gandi\\.net\\>" "crap.gandi" t)
+ (from "@mythic-beasts\\.com\\>" "crap.mythic-beasts" t)
;; Default.
"mail.misc"))