annotate mail-from-inf.el @ 67:a9b2a2335782 default tip

make setting advert whiten as well if needed, handle naked div in replying to html
author Henry S Thompson <ht@inf.ed.ac.uk>
date Sat, 21 Dec 2024 20:00:43 +0000
parents 963ac2f8e386
children
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"
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
3 gnus-home-directory "/disk/scratch/gnus"
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
4 gnus-default-directory "/disk/scratch"
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 nnmail-message-id-cache-file "/disk/scratch/gnus/.nnmail-cache"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 mail-sources
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 '((file :path "/disk/scratch/mail/ht_mbox"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 mail-source-crash-box "/tmp/crashbox" ; local disk
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 nndraft-directory "/disk/scratch/drafts/"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 message-auto-save-directory "/disk/scratch/drafts/"
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
11 mail-archive-file-name (concat "/disk/scratch/mail/cpy/general/"
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
12 (format-time-string
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
13 "%Y-%m" (current-time))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
14 ".mbox")
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
15 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
16
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
17 (setq rmail-dont-reply-to-names "hthompso*\\|h\\.thompso*\\|ht@*" )
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
18
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
19 (setq rmail-show-mime nil)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
20 (set-default 'ht-last-file (expand-file-name "/disk/scratch/mail/"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
21 (setq ht-diary-file-name "/disk/scratch/mail/diary.babyl")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
22 (setq user-mail-address "ht@inf.ed.ac.uk")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
23 (setq mail-append-host "inf.ed.ac.uk")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
24 (setq mail-host-address "inf.ed.ac.uk")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
25 (setq rmail-spool-directory (file-name-as-directory
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
26 (concat rmail-spool-directory
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
27 "ht-mail")))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
28 ;; don't know why this is necessary
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
29 (setq rmail-primary-inbox-list
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
30 (list (concat rmail-spool-directory "ht")))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
31
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
32 (setq white-subjects "\\b\\(phd\\|ilcc\\)\\b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
33
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
34 (setq white-domains (list))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
35
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
36 (setq ad-domains (list "planetx.co.uk"))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
37
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
38 (setq w3c-lists1
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
39 '((any "w3c-xml-schema-\\([a-zA-Z]+\\)\\(@\\.w3\\.org\\)?" "xml-schema-\\1")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
40 (any "chairs\\(@\\.w3\\.org\\)?" "w3c-chairs" )
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
41 (to "\\(w3c\\|public\\|member\\)-xml-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
42 "xml-\\2" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
43 ;(list "w3t-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
44 ;(list "team-\\([-a-zA-Z]+\\)\\(\\.w3\\.org\\)?" "w3-team-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
45 ;(list "w3c-\\(xsl-wg\\|format\\|i18n-ig\\)\\(\\.w3\\.org\\)?" "w3c-xsl")
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
46 (any "w3c-\\([-a-zA-Z]+\\)\\(@\\.w3\\.org\\)?" "w3c-\\1")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
47 (any "member-\\(ac-uk\\|access\\)" "w3-member-\\1");[-a-zA-Z]+\\)
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
48 (to "public-xpointer-registry\\(-request\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
49 "xpointer-registry");[-a-zA-Z]+
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
50 (to "public-\\([-a-zA-Z]+\\)" "w3-public-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
51 (to "w3c-xml-schema-\\([a-zA-Z]+\\)" "xml-schema-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
52 (to "chairs" "w3c-chairs")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
53 (to "w3c-xml-\\([-a-zA-Z]+\\)" "xml-\\1" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
54 (to "www-xml-\\([-a-zA-Z]+\\)" "xml-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
55 ;(list "www-\\([-a-zA-Z]+\\)" "www-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
56 ;(to "w3c-\\(xsl-wg\\|format\\|i18n-ig\\)" "w3c-xsl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
57 ;(to "w3t-\\([-a-zA-Z]+\\)" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
58 ;(to "team-\\([-a-zA-Z]+\\)" "w3-team-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
59 ;(to "w3c-\\([-a-zA-Z]+\\)" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
60 ;(to "xml-\\([-a-zA-Z]+\\)" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
61 ;(to "member-\\([-a-zA-Z]+\\)" "w3-member-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
62 ;(to "ercim-\\([-a-zA-Z]+\\)" "ercim-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
63 ;(to "w3t" "w3t")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
64 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
65
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
66 (setq w3c-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
67 '((to "w3t-archive" "w3t-archive")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
68 (to "w3c-archive" "w3c-archive")))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
69
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
70 (setq xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
71 '(;(to "xml-uri" "nsuri")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
72 (to ".*editor.*" "xml-rec-comments")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
73 (to "xml-dev" "xml")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
74 (to "xsl-list" "xsl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
75 ;(to "[Xx]emacs[- ]beta" "xemacs")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
76 (to "xmlschema-dev" "schema-dev")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
77 (to "xproc-dev" "xproc-dev")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
78 ;(to "xml-sig" "xml-python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
79 ;(to "xml-plenary" "xml-plenary")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
80 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
81
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
82 (setq xml-lists2
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
83 '((any "ietf-xml-mime\\.imc\\.org" "xml-mime")
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
84 (any "xml-mime\\.ietf\\.org" "xml-mime")))
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
85
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
86 (setq misc-list1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
87 '(;(from "w3t-\\([a-zA-Z]+\\)-request" "w3t-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
88 ;(from "w3c-\\([a-zA-Z]+\\)-request" "w3c-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
89 ;(from "xml-\\([a-zA-Z]+\\)-request" "xml-\\1")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
90 ;(from "p.woolman" "nhs-xml")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
91 (from "Cron Daemon" "cron")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
92 (from ".*@mail.gumtree.com" "personal")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
93 (from ".*@postman.storyworth.com" "storyworth")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
94 ;(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
95 (to "www-tag" "tag")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
96 ;(to "webarch@noreply.github.com" "tag")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
97 ;(to "dashboard-hackers" "beagle")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
98 ;(to "pellet-users" "pellet")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
99 (to "tkinter-discuss" "tkinter")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
100 ;(to "sdp-students" "sdp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
101 (to "fnlp-students" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
102 ;(from "fox@tardis\\.ed\\.ac\\.uk\\|s1505551" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
103 ;(to "anlp-students" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
104 ;(from "nbnotifications" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
105 ;(: split-on-whole-field "Subject" "Re: MSc Project 18.*" "msc18")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
106 ;(: split-on-whole-field "Subject" ".*\\(FNLP\\|100782021\\).*" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
107 ;(: split-on-whole-field "Subject" ".*SDP \\(MS .\\|final\\) evaluation" "sdpEval")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
108 ;(: 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
109 ;(: split-on-whole-field "Subject" ".*SDP.*" "sdp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
110 ;(: 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
111 (: 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
112 (from "ANLP on Piazza" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
113 ;(from "FNLP on Piazza" "fnlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
114 (from "alopez\\|learn\\|scohen\\|eponti" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
115 (from "080202022-3SV1SEM2" "inf1-cg")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
116 (from "INFR111252023-4SV1SEM1" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
117 (from "no-reply@piazza.com" "anlp")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
118 (: split-on-whole-field "Subject" ".*Personal Tutor.*" "tutees22")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
119 (: split-on-whole-field "Subject" ".*Course Selection.*" "tutees22")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
120 ;(: split-on-whole-field "Subject" ".*Sutton Trust.*" "inf-recruit")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
121 (: split-on-whole-field "Subject" "mycron .*" "cron")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
122 ;(: split-on-whole-field "Subject" "INF1-Cg experiment.*" "cgx_2013")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
123 (: split-on-whole-field "Subject" ".*[[]urn[]].*" "urn")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
124 (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
125 (to "corpus-admin" "corpora")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
126 (: split-on-whole-field "Subject" ".*Albertus.*" "albertus")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
127 (: split-on-whole-field "Subject" ".*\\[corpus-admin\\].*" "corpora")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
128 ;(to ".*@\\(hst\\|hthompson\\|henry\\.thompson\\)\\.name" "personal")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
129 (from "mikereape@.*" "mikereape")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
130 (from "\\(.*@mumble\\.net\\|jar@\\.csail\\.mit\\.edu\\)" "jar")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
131 (from ".*@coulters.io" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
132 (from ".*@umega.co.uk" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
133 (to ".*@umega.co.uk" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
134 (: split-on-whole-field "Subject" ".*belford.*" "belford")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
135 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
136
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
137 (setq quaker-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
138 '((to "quaker-\\(l\\|spectrum\\)" "quaker")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
139 ;(to "quaker-b" "quaker-b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
140 ;(to "QuakerBYM" "quaker-b")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
141 ;(from "quaker-spectrum-approval" "quaker")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
142 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
143
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
144 (setq sms-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
145 '(;(from "s1513009@.*" "ug4_18");\\|s1536017\\(s1443062\\|s1679328
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
146 ;(from "Y.Chen-258@.*" "msc_19")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
147 ;(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
148 (from "\\(s1895309\\|s1765180\\|s1764494\\|s1645474\\|s1953043\\|s1651774\\|s1732316\\|s1742667\\)@.*" "tutees20")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
149 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
150
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
151 (defalias 'tut20 (read-kbd-macro
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
152 "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
153
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
154 ;;; groups only, comes _after_ split to pers-... for to: ht...
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
155 (setq misc-list2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
156 '(;(to "cogsci.general" "junk")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
157 (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
158 ;(to "bp-people" "bp-people")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
159 ;(to "ppelders" "ppelders")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
160 ;(to "7vtw" "7vtw")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
161 (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
162 (to "urn@ietf.org" "urn")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
163 (to "if-people" "if-people")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
164 (to "maptask" "maptask")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
165 ;(to "i18n-sig" "xml-python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
166 ;(to "spec-prod" "spec-prod")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
167 ;(to "markup" "markup")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
168 ;(to "system-notices" "w3c-sys-notes")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
169 (to "[cC]ygwin" "cygwin")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
170 ;(to "jde@sunsite.dk" "jde")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
171 ;(to "jdee-users@lists.sourceforge.net" "jde")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
172 (to "tagsoup-friends@yahoogroups.com" "tagsoup")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
173 (to "screen-users@gnu.org" "screen")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
174 (from "mailinglist@edinburghrc.co.uk" "erc")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
175 (to "selenium-users" "selenium")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
176 (to "python-list@python.org" "python")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
177 ;(to "ding" "gnus")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
178 ;(to "dssslist" "dsssl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
179 ;(to "TEI-L" "tei")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
180 (to "\\(announcements\\|unicode\\)@.*[.]unicode[.]org" "unicode")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
181 ;(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
182 ; "squid")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
183 (to "exist-open" "exist")
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
184 (any "ilcc-\\([a-zA-Z]+\\)" "ilcc-\\1")
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
185 (to "ilcc" "ilcc")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
186 (to ".*lecturers@inf.ed.ac.uk" "inf-teach")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
187 (to "\\(aisyllabus\\|acstaff\\)" "inf-teach")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
188 (to "\\(inf\\)?\\(pg\\|msc\\|teach\\|res\\|staff\\)\@inf\\(ormatics\\)?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
189 "inf-\\2" )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
190 ;(to "directors-of-studies" "inf-dos")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
191 (to "common-crawl@googlegroups.com" "ccrawl")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
192 ;(list "inkscape-user\\|openbox\\|ffmpeg-user" "misc-list")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
193 ))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
194
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
195 (defconst ht-spam-res '("bfSPAM" "boSPAM" "edSPAM" "saSPAM" "slSPAM"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
196
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
197 (defun log-good-sender (sres)
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
198 (message "good sender %s with result %s" (get-from-gnus-addr) sres))
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
199
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
200 (setq nnmail-split-fancy
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
201 '(|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
202 (to "ht\\+d@inf\\.ed\\.ac\\.uk" "_diary")
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 (lambda (sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
205 (cond
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
206 ((or (equal (car sres) "notSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
207 (white-spam t))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
208 ;; documentation is wrong, no recursion,
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
209 ;; so we do it ourselves :-(
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
210 (message "was %s, trying further" sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
211 (setq sres (nnmail-split-it ht-compiled-split))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
212 (log-good-sender sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
213 sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
214 ((member (car sres) ht-spam-res)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
215 sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
216 (t ; shouldn't happen!
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
217 (message "Shouldn't happen in nnmail-split-fancy %s" sres)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
218 sres))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
219 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
220 (| (: 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
221 ("X-Bogosity" "Yes.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
222 (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
223 (From ".*@.*ed\.ac\.uk" "edSPAM") ; NB From not from
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
224 ("X-Spam-Score" "0" "boSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
225 "bfSPAM"))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
226 (: split-on-whole-field "X-Spam-Level" "\\*\\*\\*\\*.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
227 "saSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
228 ("X-Spam-Status" "Yes.*" "saSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
229 "notSPAM"))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
230
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
231 (defun set-ht-compiled-split ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
232 "update the mail splitting rules"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
233 (interactive)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
234 (setq ht-compiled-split
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
235 (let* ((month
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
236 (format-time-string "%Y-%m" (current-time)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
237 (now-group (concat "group-" month))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
238 (now-pers (concat "pers-" month)))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
239 `(|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
240 (: split-on-whole-field "Subject" "testing" "junk")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
241 (: ad-spam "adverts")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
242 ;;; ("Content-Type" content-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
243 ;;; ("Content-Transfer-Encoding" encoding-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
244 ;;; (: split-on-whole-subj 'subject-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
245 ;; Special to people who use Yahoo
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
246 ;;; ("X-YahooFilteredBulk" ".*" "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
247 ;;; (from author-spam "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
248 ;; A subject with no letters is SPAM
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
249 ;;; (: split-on-whole-subj "^[^a-zA-Z]+$" "gnSPAM")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
250 ;; It would be cool to check the
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
251 ;; date and toss it if it is "old"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
252 (to "\\(w3[ct]\\|www\\|team\\|member\\|public\\|ercim\\)[^ ]*@.*"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
253 (| ,@w3c-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
254 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
255 ,@w3c-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
256 (to "x.*@.*" (| ,@xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
257 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
258 ,@xml-lists2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
259 ,now-group))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
260 (to "x.*@.*" (| ,@xml-lists1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
261 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?" ,now-pers)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
262 ,@xml-lists2))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
263 ,@misc-list1
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
264 (to "ht\\|henry\\|\\(h\\.?\\)?thompson?"
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
265 (| (from ".*@sms.ed.ac.uk" (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
266 ,@sms-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
267 ,now-pers))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
268
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
269 ,now-pers))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
270 (to "quaker.*" (|
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
271 ,@quaker-list
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
272 ,now-group))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
273 ,@misc-list2
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
274 ,now-group
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
275 ))))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
276
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
277 (defun quaker-sig-maybe ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
278 (save-excursion
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
279 (goto-char (point-max))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
280 (search-backward "\n-- \n")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
281 (when (looking-at "\n-- \n Henry")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
282 (forward-char 5)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
283 (kill-entire-line 6)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
284 (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
285
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
286 (defun straight-to-diary ()
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
287 (save-excursion
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
288 (gnus-group-jump-to-group "nnml+ht:_diary")
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
289 (message "s1 %s" (get-text-property (point) 'gnus-group))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
290 (gnus-group-select-group)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
291 (while (gnus-summary-first-unread-article)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
292 (let ((sco (get-buffer "*Shell Command Output*")))
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
293 (if sco
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
294 (kill-buffer sco)))
61
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
295 (gnus-edit-and-move-to-diary_1 nil t))
39
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
296 (gnus-summary-exit)
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
297 )
f593eacb57b0 needed now
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
298 )
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
299
61
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
300 (add-hook 'gnus-after-getting-new-news-hook
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
301 (lambda ()
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
302 (if (member "_diary" ht-gnus-just-read)
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
303 (straight-to-diary))))
963ac2f8e386 old local
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 43
diff changeset
304
43
eee08de75336 try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 39
diff changeset
305 (provide 'mail-from-inf)