el/dot-emacs.el (mdw-fontify-rust): Also indent on `{'.
[profile] / dot / gnus-local.el.distorted
CommitLineData
5252f79a
MW
1;;; -*-emacs-lisp-*-
2;;;
3;;; Local GNUS configuration -- distorted.org.uk version
4;;;
5;;; (c) 2014 Mark Wooding
6;;;
7
8;;;--------------------------------------------------------------------------
789a48fe
MW
9;;; How to send mail.
10
11(and nil
12 (setq smtpmail-smtp-server "mail.distorted.org.uk"
13 smtpmail-sendto-domain "distorted.org.uk"
14 smtpmail-smtp-service 587
15 smtpmail-auth-credentials "~/.gnus.authinfo"
16 message-send-mail-function 'smtpmail-send-it
17 smtpmail-starttls-credentials
18 '(("mail.distorted.org.uk" 587 "" ""))))
19
20;;;--------------------------------------------------------------------------
5252f79a
MW
21;;; Where we get mail from.
22
23;; Read mail on the IMAP server.
24(setq gnus-secondary-select-methods
25 '((nnimap "distorted"
26 (nnimap-address "mail.distorted.org.uk")
27 (nnimap-stream tls)
9adf6847
MW
28 (nnimap-authinfo-file "~/.gnus.authinfo"))
29 (nnimap "google"
30 (nnimap-address "imap.gmail.com")
31 (nnimap-stream tls)
5252f79a
MW
32 (nnimap-authinfo-file "~/.gnus.authinfo"))))
33
34;; Send sent mail back to me.
35(setq gnus-message-archive-method "mail"
36 gnus-gcc-mark-as-read t
37 gnus-message-archive-group "nnimap+distorted:mail.sent")
38
39;;;--------------------------------------------------------------------------
40;;; Mail group configuration.
41
42;; General splitting configuration.
43(setq nnimap-split-inbox '("INBOX" "to.split")
44 nnimap-split-rule 'nnimap-split-fancy
45 nnimap-split-crosspost t
46 nnimap-split-predicate "UNDELETED"
47 nnmail-split-fancy-match-partial-words nil)
48
49;; Automatic expiry for particular groups.
50(setq gnus-auto-expirable-newsgroups
51 "^nnimap\\+distorted:\\(crap\\|spam\\|admin\\|lists\\|nag\\)\\..*")
52
277521fa
MW
53;; My various email addresses.
54(setq message-alternative-emails
55 (concat "^"
56 "\\(" "\\(mdw\\|markw\\|postmaster\\)"
57 "\\([-+][^@]*\\|\\)"
58 "@\\(distorted\\.org\\.uk\\|escorted\\.org\\.uk\\|odin\\.gg\\)"
59 "\\|" "distorted\\.mdw@g\\(oogle\\|\\)mail\\.com"
60 "\\)$")
61 message-dont-reply-to-names message-alternative-emails)
62
5252f79a
MW
63;; Mail sent to `mdw-nospam-THING' should appear to come from this address.
64(setq gnus-posting-styles
65 '(((and (string-match "^nnimap\\+distorted:crap\\.\\(.*\\)$"
66 gnus-newsgroup-name)
67 (setq mdw-from-address
68 (replace-match "mdw-nospam-\\1@distorted.org.uk"
69 nil nil gnus-newsgroup-name)))
70 ("From" mdw-from-address))))
71
72;; The actual splitting rules.
73(setq nnimap-split-fancy
74 '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t)
75 (to "\\<hostmaster@" "admin.dns" t)
76 (to "\\<postmaster@" "admin.mail" t)
77 (to "\\<\\(root\\|mirror\\|postgres\\|spamd\\)@" "admin.misc" t)
78 (to "python-list@python\\.org" "lists.python")
370bb0ff 79 (to "mdw-nospam-justgviing@" "crap.justgiving" t)
5252f79a 80 (to "mdw-nospam-\\([^@]+\\)@" "crap.\\1" t)
370bb0ff 81 (to "mdw-nopspam-\\([^@]+\\)@" "crap.\\1" t)
5252f79a
MW
82 (from "support@jump\\.net\\.uk" "keep.colo")
83 (from "\\(sealbot\\|cardbot\\)@ncipher\\.com" "nag.cardbot")
84 (from "\\<mailman-owner@" "nag.mailman" t)
85 (from "cron daemon" "admin.misc")
86 (from "uucp@distorted\\.org\\.uk" "admin.uucp")
87 (from "darchive@.*\\.distorted\\.org\\.uk" "admin.misc")
88 (from "@\\(.*\\.\\)?lovefilm\\.com" "spam.lovefilm" t)
89 (from "@amazon\\." "spam.amazon" t)
90 (from "@cineworldmail\\.com" "spam.cineworld" t)
91 (from "@picturehouses\\.co\\.uk" "spam.picturehouse" t)
92 (from "@nationwide" "spam.nationwide" t)
93 (from "@news\\.spotifymail\\.com" "spam.spotify" t)
94 (from "@action\\.openrightsgroup\\.org" "spam.org" t)
95 (from "unlimited@cineworld\\.com" "spam.cineworld" t)
96 (from "nationwide@securesuiteemail\\.com" "spam.nationwide" t)
a66127fb
MW
97 (from "@liberty-human-rights\\.org\\.uk" "spam.liberty" t)
98 (from "@libertymail\\.org\\.uk" "spam.liberty" t)
a66127fb 99 (from "@openrightsgroup\\.org" "spam.org" t)
5252f79a
MW
100 (from "@tshirthell\\.com" "spam.tshirt-hell" t)
101 "mail.misc"))
102
103;;;----- That's all, folks --------------------------------------------------