annotate mail-from-inf.el @ 39:f593eacb57b0

needed now
author Henry S Thompson <ht@inf.ed.ac.uk>
date Tue, 12 Dec 2023 10:28:33 +0000
parents
children eee08de75336
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 (setq my-mail-dir "/disk/scratch/mail"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 gnus-your-organization "HCRC, University of Edinburgh"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 gnus-default-directory "/afs/inf.ed.ac.uk/user/h/ht"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 nnmail-message-id-cache-file "/disk/scratch/gnus/.nnmail-cache"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 mail-sources
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 '((file :path "/disk/scratch/mail/ht_mbox"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 mail-source-crash-box "/tmp/crashbox" ; local disk
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 nndraft-directory "/disk/scratch/drafts/"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 message-auto-save-directory "/disk/scratch/drafts/"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 (setq white-subjects "\\b\\(phd\\|ilcc\\)\\b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
14 (setq w3c-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
15 '((list "w3c-xml-schema-\\([a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "xml-schema-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
16 (list "chairs\\(\\.w3\\.org\\)?" "w3c-chairs" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
17 (to "\\(w3c\\|public\\|member\\)-xml-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
18 "xml-\\2" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19 ;(list "w3t-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
20 ;(list "team-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "w3-team-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
21 ;(list "w3c-\\(xsl-wg\\|format\\|i18n-ig\\)\\(\\.w3\\.org\\)?" "w3c-xsl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
22 (list "w3c-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
23 (list "member-\\(ac-uk\\|access\\)" "w3-member-\\1");[-a-zA-Z]+\\)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
24 (to "public-xpointer-registry\\(-request\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
25 "xpointer-registry");[-a-zA-Z]+
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
26 (to "public-\\([-a-zA-Z]+\\)" "w3-public-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
27 (to "w3c-xml-schema-\\([a-zA-Z]+\\)" "xml-schema-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
28 (to "chairs" "w3c-chairs")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
29 (to "w3c-xml-\\([-a-zA-Z]+\\)" "xml-\\1" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
30 (to "www-xml-\\([-a-zA-Z]+\\)" "xml-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
31 ;(list "www-\\([-a-zA-Z]+\\)" "www-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
32 ;(to "w3c-\\(xsl-wg\\|format\\|i18n-ig\\)" "w3c-xsl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
33 ;(to "w3t-\\([-a-zA-Z]+\\)" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
34 ;(to "team-\\([-a-zA-Z]+\\)" "w3-team-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
35 ;(to "w3c-\\([-a-zA-Z]+\\)" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
36 ;(to "xml-\\([-a-zA-Z]+\\)" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
37 ;(to "member-\\([-a-zA-Z]+\\)" "w3-member-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
38 ;(to "ercim-\\([-a-zA-Z]+\\)" "ercim-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
39 ;(to "w3t" "w3t")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
40 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
41
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
42 (setq w3c-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
43 '((to "w3t-archive" "w3t-archive")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
44 (to "w3c-archive" "w3c-archive")))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
45
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
46 (setq xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
47 '(;(to "xml-uri" "nsuri")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
48 (to ".*editor.*" "xml-rec-comments")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
49 (to "xml-dev" "xml")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
50 (to "xsl-list" "xsl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
51 ;(to "[Xx]emacs[- ]beta" "xemacs")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
52 (to "xmlschema-dev" "schema-dev")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
53 (to "xproc-dev" "xproc-dev")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
54 ;(to "xml-sig" "xml-python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
55 ;(to "xml-plenary" "xml-plenary")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
56 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
57
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
58 (setq xml-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
59 '((list "ietf-xml-mime\\.imc\\.org" "xml-mime")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
60 (list "xml-mime\\.ietf\\.org" "xml-mime")))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
61
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
62 (setq misc-list1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
63 '(;(from "w3t-\\([a-zA-Z]+\\)-request" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
64 ;(from "w3c-\\([a-zA-Z]+\\)-request" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
65 ;(from "xml-\\([a-zA-Z]+\\)-request" "xml-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
66 ;(from "p.woolman" "nhs-xml")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
67 (from "Cron Daemon" "cron")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
68 (from ".*@mail.gumtree.com" "personal")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
69 (from ".*@postman.storyworth.com" "storyworth")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
70 ;(from "\\(Richard\\.Kirkham\\|rachel\\.johnson\\|maria\\.papadaki\\|marisol\\.leonen\\|sangeeta\\.tewar\\|abdullah\\.alshamsi\\|.*@buid\\.ac\\.ae\\)" "buid")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
71 (to "www-tag" "tag")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
72 ;(to "webarch@noreply.github.com" "tag")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
73 ;(to "dashboard-hackers" "beagle")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
74 ;(to "pellet-users" "pellet")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
75 (to "tkinter-discuss" "tkinter")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
76 ;(to "sdp-students" "sdp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
77 (to "fnlp-students" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
78 ;(from "fox@tardis\\.ed\\.ac\\.uk\\|s1505551" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
79 ;(to "anlp-students" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
80 ;(from "nbnotifications" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
81 ;(: split-on-whole-field "Subject" "Re: MSc Project 18.*" "msc18")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
82 ;(: split-on-whole-field "Subject" ".*\\(FNLP\\|100782021\\).*" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
83 ;(: split-on-whole-field "Subject" ".*SDP \\(MS .\\|final\\) evaluation" "sdpEval")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
84 ;(: split-on-whole-field "Subject" ".*[[]SDP[]] \\(Your evaluation\\|Evaluation deadline\\).*" "sdpEval")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
85 ;(: split-on-whole-field "Subject" ".*SDP.*" "sdp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
86 ;(: split-on-whole-field "Subject" ".*Welcome to ANLP, action needed.*" "anlp_github")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
87 (: split-on-whole-field "Subject" ".*\\(ANLP\\|Accelerated Natural Language Processing\\).*" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
88 (from "ANLP on Piazza" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
89 ;(from "FNLP on Piazza" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
90 (from "alopez\\|learn\\|scohen\\|eponti" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
91 (from "080202022-3SV1SEM2" "inf1-cg")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
92 (from "INFR111252023-4SV1SEM1" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
93 (from "no-reply@piazza.com" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
94 (: split-on-whole-field "Subject" ".*Personal Tutor.*" "tutees22")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
95 (: split-on-whole-field "Subject" ".*Course Selection.*" "tutees22")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
96 ;(: split-on-whole-field "Subject" ".*Sutton Trust.*" "inf-recruit")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
97 (: split-on-whole-field "Subject" "mycron .*" "cron")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
98 ;(: split-on-whole-field "Subject" "INF1-Cg experiment.*" "cgx_2013")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
99 (: split-on-whole-field "Subject" ".*[[]urn[]].*" "urn")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
100 (from "\\(106300.457@compuserve.com\\|elizdrummondyoung@gmail.com\\|jcdavey12@btinternet.com\\|andrewdolan@btinternet.com\\|wandbamoyes@btinternet.com\\)" "albertus")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
101 (to "corpus-admin" "corpora")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
102 (: split-on-whole-field "Subject" ".*Albertus.*" "albertus")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
103 (: split-on-whole-field "Subject" ".*\\[corpus-admin\\].*" "corpora")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
104 ;(to ".*@\\(hst\\|hthompson\\|henry\\.thompson\\)\\.name" "personal")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
105 (from "mikereape@.*" "mikereape")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
106 (from "\\(.*@mumble\\.net\\|jar@\\.csail\\.mit\\.edu\\)" "jar")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
107 (from ".*@coulters.io" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
108 (from ".*@umega.co.uk" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
109 (to ".*@umega.co.uk" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
110 (: split-on-whole-field "Subject" ".*belford.*" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
111 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
112
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
113 (setq quaker-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
114 '((to "quaker-\\(l\\|spectrum\\)" "quaker")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
115 ;(to "quaker-b" "quaker-b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
116 ;(to "QuakerBYM" "quaker-b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
117 ;(from "quaker-spectrum-approval" "quaker")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
118 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
119
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
120 (setq sms-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
121 '(;(from "s1513009@.*" "ug4_18");\\|s1536017\\(s1443062\\|s1679328
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
122 ;(from "Y.Chen-258@.*" "msc_19")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
123 ;(from "\\(s1795066\\|s1825415\\|A.M.Magalhaes\\|T.Makino\\|S.Li-93\\|M.Maggiolo\\|ashe\\|Y.Li-242\\|E.J.Martin\\|K.Lohse\\|D.Li-28\\|S.D.Martin-1\\|K.Chen-35\\|J.Norris-3\\|S.Li-80\\|Y.Liu-236\\|J.Chen-114\\|Q.Zeng-3\\|Y.Liu-244\\|P.Guo-1\\|s1582739\\|B.Lun\\|X.Li-143\\|F.Li-17\\|K.R.Lu\\|Z.Li-86\\)@.*" "tutees18")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
124 (from "\\(s1895309\\|s1765180\\|s1764494\\|s1645474\\|s1953043\\|s1651774\\|s1732316\\|s1742667\\)@.*" "tutees20")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
125 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
126
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
127 (defalias 'tut20 (read-kbd-macro
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
128 "C-x o C-s < RET C-s @ C-b C-x C-x M-w C-x b gnus SPC RET C-s \"tutees20 RET C-r \\\\) RET \\\\| C-y C-a ESC ESC : nil RET ESC C-x M-x ht- 3*<backspace> set- ht SPC RET C-x C-s C-x b RET C-x o"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
129
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
130 ;;; groups only, comes _after_ split to pers-... for to: ht...
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
131 (setq misc-list2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
132 '(;(to "cogsci.general" "junk")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
133 (from "anrdaemon@yandex.ru\\|gsenopu@gmail.com\\|pradeepan88@hotmail.com" "anr-doom")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
134 ;(to "bp-people" "bp-people")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
135 ;(to "ppelders" "ppelders")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
136 ;(to "7vtw" "7vtw")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
137 (to "\\(apps-review\\|uri-review\\|apps-discuss\\|discuss\\|architecture-discuss\\|appsdir\\|art\\)@[a-z.]*\\(ietf\\|iab\\).org" "ietf")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
138 (to "urn@ietf.org" "urn")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
139 (to "if-people" "if-people")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
140 (to "maptask" "maptask")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
141 ;(to "i18n-sig" "xml-python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
142 ;(to "spec-prod" "spec-prod")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
143 ;(to "markup" "markup")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
144 ;(to "system-notices" "w3c-sys-notes")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
145 (to "[cC]ygwin" "cygwin")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
146 ;(to "jde@sunsite.dk" "jde")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
147 ;(to "jdee-users@lists.sourceforge.net" "jde")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
148 (to "tagsoup-friends@yahoogroups.com" "tagsoup")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
149 (to "screen-users@gnu.org" "screen")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
150 (from "mailinglist@edinburghrc.co.uk" "erc")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
151 (to "selenium-users" "selenium")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
152 (to "python-list@python.org" "python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
153 ;(to "ding" "gnus")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
154 ;(to "dssslist" "dsssl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
155 ;(to "TEI-L" "tei")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
156 (to "\\(announcements\\|unicode\\)@.*[.]unicode[.]org" "unicode")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
157 ;(to "squid-users@lists.squid-cache.org\\|squid-users@squid-cache.org"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
158 ; "squid")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
159 (to "exist-open" "exist")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
160 (list "ilcc-\\([a-zA-Z]+\\)" "ilcc-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
161 (to "ilcc" "ilcc")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
162 (to ".*lecturers@inf.ed.ac.uk" "inf-teach")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
163 (to "\\(aisyllabus\\|acstaff\\)" "inf-teach")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
164 (to "\\(inf\\)?\\(pg\\|msc\\|teach\\|res\\|staff\\)\@inf\\(ormatics\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
165 "inf-\\2" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
166 ;(to "directors-of-studies" "inf-dos")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
167 (to "common-crawl@googlegroups.com" "ccrawl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
168 ;(list "inkscape-user\\|openbox\\|ffmpeg-user" "misc-list")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
169 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
170
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
171 (defconst ht-spam-res '("bfSPAM" "boSPAM" "edSPAM" "saSPAM" "slSPAM"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
172
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
173 (setq nnmail-split-fancy
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
174 '(|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
175 (to "ht\\+d@inf\\.ed\\.ac\\.uk" "_diary")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
176 (!
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
177 (lambda (sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
178 (cond
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
179 ((or (equal (car sres) "notSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
180 (white-spam t))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
181 ;; documentation is wrong, no recursion,
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
182 ;; so we do it ourselves :-(
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
183 (message "was %s, trying further" sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
184 (setq sres (nnmail-split-it ht-compiled-split))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
185 (log-good-sender sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
186 sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
187 ((member (car sres) ht-spam-res)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
188 sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
189 (t ; shouldn't happen!
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
190 (message "Shouldn't happen in nnmail-split-fancy %s" sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
191 sres))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
192 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
193 (| (: split-on-whole-field "Subject" ".*=\\?UTF-8\\(\\?B\\\?\\|.*=[A-F][0-9]=\\).*\\?=.*" "slSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
194 ("X-Bogosity" "Yes.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
195 (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
196 (From ".*@.*ed\.ac\.uk" "edSPAM") ; NB From not from
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
197 ("X-Spam-Score" "0" "boSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
198 "bfSPAM"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
199 (: split-on-whole-field "X-Spam-Level" "\\*\\*\\*\\*.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
200 "saSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
201 ("X-Spam-Status" "Yes.*" "saSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
202 "notSPAM"))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
203
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
204 (defun set-ht-compiled-split ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
205 "update the mail splitting rules"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
206 (interactive)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
207 (setq ht-compiled-split
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
208 (let* ((month
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
209 (format-time-string "%Y-%m" (current-time)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
210 (now-group (concat "group-" month))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
211 (now-pers (concat "pers-" month)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
212 `(|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
213 (: split-on-whole-field "Subject" "testing" "junk")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
214 (: ad-spam "adverts")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
215 ;;; ("Content-Type" content-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
216 ;;; ("Content-Transfer-Encoding" encoding-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
217 ;;; (: split-on-whole-subj 'subject-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
218 ;; Special to people who use Yahoo
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
219 ;;; ("X-YahooFilteredBulk" ".*" "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
220 ;;; (from author-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
221 ;; A subject with no letters is SPAM
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
222 ;;; (: split-on-whole-subj "^[^a-zA-Z]+$" "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
223 ;; It would be cool to check the
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
224 ;; date and toss it if it is "old"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
225 (to "\\(w3[ct]\\|www\\|team\\|member\\|public\\|ercim\\)[^ ]*@.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
226 (| ,@w3c-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
227 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
228 ,@w3c-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
229 (to "x.*@.*" (| ,@xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
230 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
231 ,@xml-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
232 ,now-group))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
233 (to "x.*@.*" (| ,@xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
234 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
235 ,@xml-lists2))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
236 ,@misc-list1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
237 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
238 (| (from ".*@sms.ed.ac.uk" (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
239 ,@sms-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
240 ,now-pers))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
241
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
242 ,now-pers))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
243 (to "quaker.*" (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
244 ,@quaker-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
245 ,now-group))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
246 ,@misc-list2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
247 ,now-group
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
248 ))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
249
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
250 (defun quaker-sig-maybe ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
251 (save-excursion
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
252 (goto-char (point-max))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
253 (search-backward "\n-- \n")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
254 (when (looking-at "\n-- \n Henry")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
255 (forward-char 5)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
256 (kill-entire-line 6)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
257 (insert-file "/afs/inf.ed.ac.uk/user/h/ht/.quaker-sig"))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
258
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
259 (defun straight-to-diary ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
260 (save-excursion
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
261 (gnus-group-jump-to-group "nnml+ht:_diary")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
262 (message "s1 %s" (get-text-property (point) 'gnus-group))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
263 (gnus-group-select-group)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
264 (while (gnus-summary-first-unread-article)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
265 (let ((sco (get-buffer "*Shell Command Output*")))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
266 (if sco
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
267 (kill-buffer sco)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
268 (gnus-edit-and-move-to-diary '(16 . t)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
269 (gnus-summary-exit)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
270 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
271 )