Mercurial > hg > xemacs
annotate gnus-init.el @ 80:6dc30991613b default tip
some nugatory defaults
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 10 Dec 2025 19:11:28 +0000 |
| parents | 104736399f86 |
| children |
| 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 |
|
65
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
10 (message "1 %s %s" (and (boundp 'gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
11 gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
12 (and (boundp 'gnus-message-archive-method) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
13 gnus-message-archive-method)) |
|
58
32a75a4db17b
try to paramterise email handling a bit more
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
50
diff
changeset
|
14 (require 'mail-from-m) |
|
65
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
15 (message "2 %s %s" (and (boundp 'gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
16 gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
17 (and (boundp 'gnus-message-archive-method) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
18 gnus-message-archive-method)) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
19 (load-file (expand-file-name "~/.xemacs/gnus.el")) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
20 (message "3 %s %s" (and (boundp 'gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
21 gnus-server-alist) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
22 (and (boundp 'gnus-message-archive-method) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
23 gnus-message-archive-method))) |
|
59
29e0ef38765f
default empty provision for set-ht...
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
58
diff
changeset
|
24 (t |
| 80 | 25 ;; some nugatory defaults |
| 26 (defun set-ht-compiled-split ()) | |
| 27 (setq my-mail-dir "/home/bogus")) | |
| 50 | 28 ) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
29 |
|
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
|
30 ;; 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
|
31 ;; 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
|
32 |
|
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
|
33 (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
|
34 |
|
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
|
35 (setq |
|
47
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
36 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
|
37 (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
|
38 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
|
39 gnus-message-archive-method |
|
65
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
40 `(nnfolder "archive" |
|
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
|
41 ;; 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
|
42 ;; _may_ lie in gnus-setup-news... |
|
65
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
43 (nnfolder-directory ,(concat my-mail-dir "/cpy")) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
44 (nnfolder-active-file ,(concat my-mail-dir "/cpy/active")) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
45 (nnfolder-get-new-mail nil) |
|
104736399f86
move some local (maritain) stuff into .xemacs/gnus.el
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
59
diff
changeset
|
46 (nnfolder-inhibit-expiry t) |
|
47
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
47 ) |
|
06ccca1d4756
try to cope with major reshuffle on ecclerig
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
48 ) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
49 |
| 6 | 50 (setq gnus-novice-user nil) |
| 51 | |
| 52 (setq gnus-message-archive-group | |
| 53 '((concat "general." (format-time-string | |
| 54 "%Y-%m" (current-time))))) | |
| 55 | |
| 21 | 56 |
| 57 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
58 (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
|
59 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
|
60 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
|
61 " |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 ) |
| 6 | 80 |
| 81 (setq bbdb/news-auto-create-p t) | |
| 82 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
83 (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
|
84 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
85 ;;;(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
|
86 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
87 (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
|
88 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
89 (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
|
90 (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
|
91 (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
|
92 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
93 (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
|
94 (lambda () |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
95 (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
|
96 (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
|
97 (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
|
98 (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
|
99 (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
|
100 (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
|
101 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
102 (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
|
103 (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
|
104 |
| 6 | 105 (setq nnmail-crosspost nil) |
| 106 (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
|
107 |
|
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
|
108 (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
|
109 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
110 (setq white-domains (list)) |
| 24 | 111 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
112 (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
|
113 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
114 (defvar ht-compiled-split nil) |
| 24 | 115 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
116 (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
|
117 (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
|
118 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
|
119 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
|
120 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
121 (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
|
122 (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
|
123 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
124 (custom-set-faces) |
| 6 | 125 |
| 126 (defun ht-gnus-summary-delete-forward () | |
| 127 "REAL delete for nnmail gnus" | |
| 128 (interactive) | |
| 129 (gnus-summary-delete-article) | |
| 130 (gnus-summary-next-unread-article)) | |
| 131 | |
| 21 | 132 (add-hook 'kill-emacs-hook |
| 133 (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
|
134 (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
|
135 (close-database whitelist-db)) |
| 21 | 136 (if (database-live-p quaker-db) |
| 137 (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
|
138 (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
|
139 (close-database adlist-db)) |
| 21 | 140 )) |
| 141 | |
| 142 (add-hook 'bbdb-complete-name-hooks 'quaker-sig-if-quaker) | |
| 143 | |
| 6 | 144 (custom-set-variables |
| 145 '(gnus-treat-display-picons nil)) | |
| 146 (custom-set-faces) | |
| 147 | |
| 148 (add-hook 'gnus-group-mode-hook 'gnus-topic-mode) | |
| 149 | |
| 150 (add-hook 'gnus-summary-mode-hook 'gnus-summary-mode-fun1) | |
| 151 | |
| 21 | 152 (add-hook 'message-mode-hook 'message-mode-fun1) |
| 153 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
154 (add-hook 'message-sent-hook (function whiten-recip)) |
| 21 | 155 |
| 6 | 156 (add-hook 'gnus-group-mode-hook 'gnus-group-mode-fun1) |
| 157 | |
| 158 | |
| 159 (defun gnus-regen-group () | |
| 160 (nnml-generate-nov-databases-1 (concat | |
| 161 (expand-file-name nnml-directory) | |
| 162 "/" | |
| 163 (substring (gnus-group-group-name) 8)) | |
| 164 nil t) | |
| 165 ) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
166 (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
|
167 (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
|
168 (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
|
169 (add-hook 'news-reply-mode-hook 'mc-install-write-mode) |
| 6 | 170 |
| 171 (defun gnus-user-format-function-t (header) | |
| 172 "display the to field (for archive messages)" | |
| 173 (let ((n (mail-header-number header))) | |
| 174 (with-current-buffer nntp-server-buffer | |
| 175 (save-excursion | |
| 176 (save-restriction | |
| 177 (let ((inhibit-point-motion-hooks t)) | |
| 178 (goto-char (point-min)) | |
| 179 (let ((beg (search-forward (format " %d Article retrieved." n))) | |
| 180 (end (search-forward "\n.\n"))) | |
| 181 (narrow-to-region beg end) | |
| 182 (goto-char beg) | |
| 183 (message-fetch-field "To")))))))) | |
| 184 | |
| 185 (make-variable-buffer-local 'gnus-extra-headers) | |
| 186 (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
|
187 |
| 6 | 188 (add-hook 'gnus-parse-headers-hook |
| 189 '(lambda () | |
| 190 (gnus-summary-set-local-parameters gnus-newsgroup-name))) | |
| 21 | 191 |
|
46
40e245d3d1b3
try to improve use of ht-gnus-just-read
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
43
diff
changeset
|
192 (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
|
193 |
| 21 | 194 (add-hook 'gnus-get-new-news-hook (lambda () (setq ht-gnus-just-read nil))) |
| 195 | |
| 196 (add-hook 'gnus-after-getting-new-news-hook | |
| 197 (lambda () (message "%s" ht-gnus-just-read))) | |
| 198 | |
| 199 (defun ht-gnus-note-save-to-group () | |
| 200 (let ((g (caar group-art))) | |
| 201 (if (not (member g ht-gnus-just-read)) | |
| 202 (setq ht-gnus-just-read (cons g ht-gnus-just-read))))) | |
| 203 | |
| 204 (add-hook 'nnml-prepare-save-mail-hook (function ht-gnus-note-save-to-group)) | |
| 205 | |
| 23 | 206 (require 'gnus-art) |
| 207 | |
| 208 (nconc gnus-treatment-function-alist | |
| 209 '((gnus-treat-strip-uoe-warning gnus-article-strip-uoe-warning))) | |
| 210 | |
| 211 (defun gnus-article-strip-uoe-warning (&optional interactive &rest args) | |
| 212 "redirect for stripping" | |
| 213 (interactive (list t)) | |
| 214 (save-excursion | |
| 215 (set-buffer gnus-article-buffer) | |
| 216 (if interactive | |
| 217 (call-interactively 'article-strip-uoe-warning) | |
| 218 (apply 'article-strip-uoe-warning args)))) | |
| 219 | |
| 220 (defun article-strip-uoe-warning () | |
| 221 "strip the stupid uoe warning" | |
| 222 (interactive) | |
| 223 (save-excursion | |
| 224 (article-goto-body) | |
| 225 (let ((case-fold-search t)) | |
| 226 (when | |
| 227 (looking-at "This email was sent to you by someone outside the University.") | |
| 228 (gnus-delete-line)) | |
| 229 (when | |
| 230 (looking-at "You should only click on links or attachments if you are certain that the email is genuine and the content is safe.") | |
| 231 (gnus-delete-line)) | |
| 232 ))) | |
| 233 | |
| 234 (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
|
235 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
24
diff
changeset
|
236 (provide 'gnus-init) |
