Mercurial > hg > xemacs
annotate gnus-init.el @ 69:d43503e9e431
copy of ~/u/AppData/Roaming/Microsoft/Outlook/VbaProject.OTM rather than soft link
| author | Henry Thompson <ht@markup.co.uk> |
|---|---|
| date | Mon, 09 Jun 2025 13:21:04 +0100 |
| parents | 29e0ef38765f |
| children | 104736399f86 |
| rev | line source |
|---|---|
| 6 | 1 ;; gnus customisation |
| 2 | |
| 50 | 3 (eval-when-compile |
| 4 (setq my-mail-dir "/bogus") ; will be overwritten by the following | |
| 5 ) | |
| 6 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
7 (site-caseq (edin |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
8 (require 'mail-from-inf)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
9 (maritain |
|
58
32a75a4db17b
try to paramterise email handling a bit more
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
50
diff
changeset
|
10 (require 'mail-from-m) |
|
32a75a4db17b
try to paramterise email handling a bit more
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
50
diff
changeset
|
11 (load-file (expand-file-name "~/.xemacs/gnus.el"))) |
|
59
29e0ef38765f
default empty provision for set-ht...
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
58
diff
changeset
|
12 (t |
|
29e0ef38765f
default empty provision for set-ht...
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
58
diff
changeset
|
13 (defun set-ht-compiled-split ())) |
| 50 | 14 ) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
15 |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
16 ;; things based on my-mail-dir, or set-ht-compiled-split |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
17 ;; which are defined in one of the above |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
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:
32
diff
changeset
|
19 (set-ht-compiled-split) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
20 |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
21 (setq |
|
47
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
22 gnus-article-save-directory (expand-file-name |
|
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
23 (concat my-mail-dir "/Mail")) |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
24 nnml-directory (expand-file-name (concat my-mail-dir "/Mail")) |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
25 gnus-message-archive-method |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
26 '(nnfolder "archive" |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
27 ;; the following two are not taking effect, not sure why, answer |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
28 ;; _may_ lie in gnus-setup-news... |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
29 (nnfolder-directory (concat my-mail-dir "/cpy")) |
|
47
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
30 (nnfolder-active-file (concat my-mail-dir "/cpy/active")) |
|
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
31 ) |
|
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
32 ) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
33 |
| 6 | 34 (setq gnus-novice-user nil) |
| 35 | |
| 36 (setq gnus-message-archive-group | |
| 37 '((concat "general." (format-time-string | |
| 38 "%Y-%m" (current-time))))) | |
| 39 | |
| 21 | 40 |
| 41 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
42 (setq gnus-auto-select-next 'quietly |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
43 gnus-buttonized-mime-types '("multipart/signed") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
44 gnus-group-line-format "%M%S%p%P%5y:%uH%(%g%)%l %O |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
45 " |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
46 gnus-ignored-headers "^Errors-To:\\|^Precedence:\\|^UNIX-From:" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
47 gnus-inhibit-mime-unbuttonizing nil |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
48 gnus-mime-display-multipart-related-as-mixed t |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
49 gnus-show-mime t |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
50 gnus-simplify-subject-regexp "^\\(re[:;.]\\| \\|fwd:\\)*" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
51 gnus-summary-display-arrow nil |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
52 gnus-summary-gather-subject-limit nil |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
53 gnus-summary-ignore-duplicates t |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
54 gnus-summary-line-format "%U%R%5N%I%(%[%4L: %-12,12A%]%) %s\n" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
55 gnus-summary-make-false-root 'none |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
56 gnus-thread-sort-functions '(gnus-thread-sort-by-number |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
57 gnus-thread-sort-by-simpl-subject) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
58 gnus-use-scoring nil ; not used yet |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
59 message-from-style 'angles |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
60 mm-discouraged-alternatives '("text/html") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
61 nnmail-expiry-wait 28 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
62 no-select-groups '("nnml+ht:cygwin") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
63 ) |
| 6 | 64 |
| 65 (setq bbdb/news-auto-create-p t) | |
| 66 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
67 (setq wsp-cache nil) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
68 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
69 ;;;(setq blacklist-db (open-database "~/.blacklist")) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
70 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
71 (require 'my-news) ; defines db functions |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
72 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
73 (open-white) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
74 (open-ad) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
75 (open-quaker) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
76 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
77 (add-hook 'kill-emacs-hook |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
78 (lambda () |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
79 (if (database-live-p whitelist-db) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
80 (close-database whitelist-db)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
81 (if (database-live-p quaker-db) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
82 (close-database quaker-db)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
83 (if (database-live-p adlist-db) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
84 (close-database adlist-db)))) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
85 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
86 (add-hook 'bbdb-complete-name-hooks 'quaker-sig-if-quaker) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
87 (add-hook 'gnus-message-setup-hook 'quaker-sig-if-to-quaker) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
88 |
| 6 | 89 (setq nnmail-crosspost nil) |
| 90 (setq nnmail-split-methods 'nnmail-split-fancy) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
91 |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
92 (setq white-subjects "\\b\\(phd\\|ilcc\\)\\b") |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
32
diff
changeset
|
93 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
94 (setq white-domains (list)) |
| 24 | 95 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
96 (setq ad-domains (list "planetx.co.uk" "substack.com")) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
97 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
98 (defvar ht-compiled-split nil) |
| 24 | 99 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
100 (setq gnus-show-mime t) ; stale |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
101 (setq mml1991-use 'pgg |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
102 mml2015-use 'pgg |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
103 mm-verify-option 'always) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
104 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
105 (require 'mm-decode) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
106 (setq mm-automatic-display (remove "text/html" mm-automatic-display)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
107 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
108 (custom-set-faces) |
| 6 | 109 |
| 110 (defun ht-gnus-summary-delete-forward () | |
| 111 "REAL delete for nnmail gnus" | |
| 112 (interactive) | |
| 113 (gnus-summary-delete-article) | |
| 114 (gnus-summary-next-unread-article)) | |
| 115 | |
| 21 | 116 (add-hook 'kill-emacs-hook |
| 117 (lambda () | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
118 (if (database-live-p whitelist-db) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
119 (close-database whitelist-db)) |
| 21 | 120 (if (database-live-p quaker-db) |
| 121 (close-database quaker-db)) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
122 (if (database-live-p adlist-db) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
123 (close-database adlist-db)) |
| 21 | 124 )) |
| 125 | |
| 126 (add-hook 'bbdb-complete-name-hooks 'quaker-sig-if-quaker) | |
| 127 | |
| 6 | 128 (custom-set-variables |
| 129 '(gnus-treat-display-picons nil)) | |
| 130 (custom-set-faces) | |
| 131 | |
| 132 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) | |
| 133 | |
| 134 (add-hook 'gnus-summary-mode-hook 'gnus-summary-mode-fun1) | |
| 135 | |
| 21 | 136 (add-hook 'message-mode-hook 'message-mode-fun1) |
| 137 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
138 (add-hook 'message-sent-hook (function whiten-recip)) |
| 21 | 139 |
| 6 | 140 (add-hook 'gnus-group-mode-hook 'gnus-group-mode-fun1) |
| 141 | |
| 142 | |
| 143 (defun gnus-regen-group () | |
| 144 (nnml-generate-nov-databases-1 (concat | |
| 145 (expand-file-name nnml-directory) | |
| 146 "/" | |
| 147 (substring (gnus-group-group-name) 8)) | |
| 148 nil t) | |
| 149 ) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
150 (require 'mailcrypt) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
151 (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
152 (add-hook 'message-mode-hook 'mc-install-write-mode) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
153 (add-hook 'news-reply-mode-hook 'mc-install-write-mode) |
| 6 | 154 |
| 155 (defun gnus-user-format-function-t (header) | |
| 156 "display the to field (for archive messages)" | |
| 157 (let ((n (mail-header-number header))) | |
| 158 (with-current-buffer nntp-server-buffer | |
| 159 (save-excursion | |
| 160 (save-restriction | |
| 161 (let ((inhibit-point-motion-hooks t)) | |
| 162 (goto-char (point-min)) | |
| 163 (let ((beg (search-forward (format " %d Article retrieved." n))) | |
| 164 (end (search-forward "\n.\n"))) | |
| 165 (narrow-to-region beg end) | |
| 166 (goto-char beg) | |
| 167 (message-fetch-field "To")))))))) | |
| 168 | |
| 169 (make-variable-buffer-local 'gnus-extra-headers) | |
| 170 (make-variable-buffer-local 'nnmail-extra-headers) | |
|
46
40e245d3d1b3
try to improve use of ht-gnus-just-read
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
171 |
| 6 | 172 (add-hook 'gnus-parse-headers-hook |
| 173 '(lambda () | |
| 174 (gnus-summary-set-local-parameters gnus-newsgroup-name))) | |
| 21 | 175 |
|
46
40e245d3d1b3
try to improve use of ht-gnus-just-read
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
176 (defvar ht-gnus-just-read nil) |
|
40e245d3d1b3
try to improve use of ht-gnus-just-read
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
177 |
| 21 | 178 (add-hook 'gnus-get-new-news-hook (lambda () (setq ht-gnus-just-read nil))) |
| 179 | |
| 180 (add-hook 'gnus-after-getting-new-news-hook | |
| 181 (lambda () (message "%s" ht-gnus-just-read))) | |
| 182 | |
| 183 (defun ht-gnus-note-save-to-group () | |
| 184 (let ((g (caar group-art))) | |
| 185 (if (not (member g ht-gnus-just-read)) | |
| 186 (setq ht-gnus-just-read (cons g ht-gnus-just-read))))) | |
| 187 | |
| 188 (add-hook 'nnml-prepare-save-mail-hook (function ht-gnus-note-save-to-group)) | |
| 189 | |
| 23 | 190 (require 'gnus-art) |
| 191 | |
| 192 (nconc gnus-treatment-function-alist | |
| 193 '((gnus-treat-strip-uoe-warning gnus-article-strip-uoe-warning))) | |
| 194 | |
| 195 (defun gnus-article-strip-uoe-warning (&optional interactive &rest args) | |
| 196 "redirect for stripping" | |
| 197 (interactive (list t)) | |
| 198 (save-excursion | |
| 199 (set-buffer gnus-article-buffer) | |
| 200 (if interactive | |
| 201 (call-interactively 'article-strip-uoe-warning) | |
| 202 (apply 'article-strip-uoe-warning args)))) | |
| 203 | |
| 204 (defun article-strip-uoe-warning () | |
| 205 "strip the stupid uoe warning" | |
| 206 (interactive) | |
| 207 (save-excursion | |
| 208 (article-goto-body) | |
| 209 (let ((case-fold-search t)) | |
| 210 (when | |
| 211 (looking-at "This email was sent to you by someone outside the University.") | |
| 212 (gnus-delete-line)) | |
| 213 (when | |
| 214 (looking-at "You should only click on links or attachments if you are certain that the email is genuine and the content is safe.") | |
| 215 (gnus-delete-line)) | |
| 216 ))) | |
| 217 | |
| 218 (setq gnus-treat-strip-uoe-warning t) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
219 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
220 (provide 'gnus-init) |
