annotate gnus-init.el @ 24:0e5b39d2f8bb

trying to clean up Paul vs. Maritain for Cirrus
author ht
date Sat, 07 Oct 2023 10:44:21 +0100
parents 5738cc494f7f
children cb9b76219c55
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
1 ;; Last edited: Fri Aug 20 14:49:23 1999
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
2 ;; gnus customisation
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
3
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
4 (setq gnus-novice-user nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
5
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
6 (setq gnus-message-archive-group
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
7 '((concat "general." (format-time-string
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
8 "%Y-%m" (current-time)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
9
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
10
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
11 (site-caseq (maritain (require 'mail-from-m)))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
12
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
13 (setq
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
14 ; gnus-article-sort-functions '(gnus-article-sort-by-subject
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
15 ; see secondary-select-methods in my-news gnus-article-sort-by-number)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
16 gnus-auto-select-next 'quietly
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
17 gnus-buttonized-mime-types '("multipart/signed")
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
18 gnus-inhibit-mime-unbuttonizing nil
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
19 gnus-ignored-headers "^Errors-To:\\|^Precedence:\\|^UNIX-From:"
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
20 gnus-mime-display-multipart-related-as-mixed t
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
21 gnus-posting-styles `((".*"
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
22 (signature-file ,mail-signature-file))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
23 ("quaker-2023"
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
24 (signature-file "/home/ht/.quaker-sig")
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
25 (address "ht@rsof.hst.name"))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
26 ("mhmcc-2023"
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
27 (signature-file "/home/ht/.mhmcc-sig")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
28 ("Reply-to" "sesam.emh.management@gmail.com")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
29 (name "HST as Convenor SESAM MHMC")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
30 (address "mhmcc@rsof.hst.name")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
31 ("Bcc" "sesam.emh.management@gmail.com")))
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
32 gnus-simplify-subject-regexp "^\\(re[:;.]\\| \\|fwd:\\)*"
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
33 gnus-summary-display-arrow nil
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
34 gnus-summary-gather-subject-limit nil
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
35 gnus-summary-line-format "%U%R%5N%I%(%[%4L: %-12,12A%]%) %s\n"
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
36 gnus-summary-make-false-root 'none
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
37 gnus-thread-sort-functions '(gnus-thread-sort-by-number
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
38 gnus-thread-sort-by-simpl-subject)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
39 mm-discouraged-alternatives '("text/html")
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
40 gnus-summary-ignore-duplicates t
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
41 gnus-use-scoring nil ; not used yet
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
42 )
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
43
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
44 (setq bbdb/news-auto-create-p t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
45
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
46 (setq nnmail-crosspost nil)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
47 (setq nnmail-split-methods 'nnmail-split-fancy)
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
48 (defun set-nnmail-split-fancy ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
49 (setq nnmail-split-fancy
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
50 (let ((month (format-time-string "%Y-%m" (current-time))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
51 (cons '|
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
52 (append '(("Subject" "testing" "jjunk")
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
53 (to "quaker-\\(l\\|spectrum\\)" "quaker-2022")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
54 (to "quaker-b" "quaker-b")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
55 (to "[cC]ygwin" "cygwin")
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
56 (from "noreply@mrooms.net" "nayler")
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
57 (to "ht@rsof.hst.name" "quaker-2023")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
58 (to "Wardenship@lists.quaker.eu.org" "wardens")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
59 (to "mhmcc@rsof.hst.name" "mhmcc-2023")
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
60 ("Envelope-to" "mhmcc@rsof.hst.name"
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
61 (| (from "mhmcc@rsof.hst.name" junk)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
62 "mhmcc-2023"))
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
63 (to "mfw@rsof.hst.name" "7vt")
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
64 (to "zphdaily" (concat "pers-" month))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
65 (to "inf\\(pg\\|msc\\|teach\\|res\\|staff\\)" "inf-\\1" )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
66 )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
67 (list (list 'to
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
68 "ht\\|h\\.?thompson?"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
69 (concat "pers-" month))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
70 (concat "group-"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
71 (format-time-string
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
72 "%Y-%m" (current-time))
24
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
73 "")))))))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
74
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
75 (set-nnmail-split-fancy)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
76
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
77 (defun set-ht-compiled-split ()
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
78 (interactive)
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
79 (set-nnmail-split-fancy))
0e5b39d2f8bb trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 23
diff changeset
80
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
81 (setq gnus-show-mime t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
82
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
83 (defun ht-gnus-summary-delete-forward ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
84 "REAL delete for nnmail gnus"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
85 (interactive)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
86 (gnus-summary-delete-article)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
87 (gnus-summary-next-unread-article))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
88
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
89 (require 'my-news)
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
90 (open-quaker)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
91
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
92 (add-hook 'kill-emacs-hook
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
93 (lambda ()
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
94 ; (if (database-live-p whitelist-db)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
95 ; (close-database whitelist-db))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
96 (if (database-live-p quaker-db)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
97 (close-database quaker-db))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
98 ; (if (database-live-p adlist-db)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
99 ; (close-database adlist-db))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
100 ))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
101
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
102 (add-hook 'bbdb-complete-name-hooks 'quaker-sig-if-quaker)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
103 ;(add-hook 'gnus-message-setup-hook 'quaker-sig-if-to-quaker)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
104
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
105 (custom-set-variables
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
106 '(gnus-treat-display-picons nil))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
107 (custom-set-faces)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
108
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
109 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
110
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
111 (add-hook 'gnus-summary-mode-hook 'gnus-summary-mode-fun1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
112
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
113 (add-hook 'message-mode-hook 'message-mode-fun1)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
114
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
115 ;; run the first time we make a summary window
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
116 (defun gnus-summary-mode-fun1 ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
117 "install ht's mods"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
118 (define-key gnus-summary-mode-map "D" 'ht-gnus-summary-delete-forward)
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
119 (define-key gnus-summary-mode-map "\M-h" 'showMPAhtml)
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
120 (remove-hook 'gnus-summary-mode-hook 'gnus-summary-mode-fun1))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
121
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
122 (defun message-mode-fun1 ()
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
123 (define-key message-mode-map [(control meta q)] 'add-quaker)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
124 (remove-hook 'message-mode-hook 'message-mode-fun1))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
125
6
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
126 (defun ht-gnus-pers-refresh (n)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
127 (interactive "p")
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
128 (let ((gn (concat "nnml+ht:pers-"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
129 (format-time-string "%Y-%m" (current-time)))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
130 (gnus-group-goto-group gn)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
131 (gnus-group-get-new-news-this-group n)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
132 (gnus-group-goto-group gn)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
133 (gnus-group-read-group))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
134 )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
135
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
136 (add-hook 'gnus-group-mode-hook 'gnus-group-mode-fun1)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
137
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
138 ;; run the first time we make a group window
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
139 (defun gnus-group-mode-fun1 ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
140 "install ht's mods"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
141 (define-key gnus-group-mode-map "\M-\C-g" 'ht-gnus-pers-refresh)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
142 (remove-hook 'gnus-group-mode-hook 'gnus-group-mode-fun1))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
143
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
144 (defun gnus-regen-group ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
145 (nnml-generate-nov-databases-1 (concat
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
146 (expand-file-name nnml-directory)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
147 "/"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
148 (substring (gnus-group-group-name) 8))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
149 nil t)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
150 )
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
151
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
152
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
153 (defun gnus-user-format-function-t (header)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
154 "display the to field (for archive messages)"
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
155 (let ((n (mail-header-number header)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
156 (with-current-buffer nntp-server-buffer
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
157 (save-excursion
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
158 (save-restriction
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
159 (let ((inhibit-point-motion-hooks t))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
160 (goto-char (point-min))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
161 (let ((beg (search-forward (format " %d Article retrieved." n)))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
162 (end (search-forward "\n.\n")))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
163 (narrow-to-region beg end)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
164 (goto-char beg)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
165 (message-fetch-field "To"))))))))
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
166
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
167 (make-variable-buffer-local 'gnus-extra-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
168 (make-variable-buffer-local 'nnmail-extra-headers)
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
169 (add-hook 'gnus-parse-headers-hook
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
170 '(lambda ()
dccf9e53f179 *** empty log message ***
ht
parents:
diff changeset
171 (gnus-summary-set-local-parameters gnus-newsgroup-name)))
21
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
172
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
173 (add-hook 'gnus-get-new-news-hook (lambda () (setq ht-gnus-just-read nil)))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
174
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
175 (add-hook 'gnus-after-getting-new-news-hook
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
176 (lambda () (message "%s" ht-gnus-just-read)))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
177
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
178 (defvar ht-gnus-just-read nil)
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
179
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
180 (defun ht-gnus-note-save-to-group ()
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
181 (let ((g (caar group-art)))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
182 (if (not (member g ht-gnus-just-read))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
183 (setq ht-gnus-just-read (cons g ht-gnus-just-read)))))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
184
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
185 (add-hook 'nnml-prepare-save-mail-hook (function ht-gnus-note-save-to-group))
7b2c4ed36302 for new maritain
ht
parents: 13
diff changeset
186
23
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
187 (require 'gnus-art)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
188
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
189 (nconc gnus-treatment-function-alist
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
190 '((gnus-treat-strip-uoe-warning gnus-article-strip-uoe-warning)))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
191
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
192 (defun gnus-article-strip-uoe-warning (&optional interactive &rest args)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
193 "redirect for stripping"
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
194 (interactive (list t))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
195 (save-excursion
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
196 (set-buffer gnus-article-buffer)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
197 (if interactive
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
198 (call-interactively 'article-strip-uoe-warning)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
199 (apply 'article-strip-uoe-warning args))))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
200
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
201 (defun article-strip-uoe-warning ()
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
202 "strip the stupid uoe warning"
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
203 (interactive)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
204 (save-excursion
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
205 (article-goto-body)
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
206 (let ((case-fold-search t))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
207 (when
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
208 (looking-at "This email was sent to you by someone outside the University.")
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
209 (gnus-delete-line))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
210 (when
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
211 (looking-at "You should only click on links or attachments if you are certain that the email is genuine and the content is safe.")
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
212 (gnus-delete-line))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
213 )))
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
214
5738cc494f7f trying to clean up Paul vs. Maritain for Cirrus
ht
parents: 21
diff changeset
215 (setq gnus-treat-strip-uoe-warning t)