Mercurial > hg > xemacs
annotate mail-from-m.el @ 43:eee08de75336
try to do better at where news/mail/init stuff is handled,
works on ecclerig, mostly, but may break maritain
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Sat, 16 Dec 2023 21:10:30 +0000 |
| parents | d9297098442b |
| children | 06ccca1d4756 |
| rev | line source |
|---|---|
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
1 ;;; Load to read and send mail from maritain |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
2 |
| 22 | 3 (setq mail-append-host "home.hst.name") |
| 4 (setq user-full-name "Henry S. Thompson") | |
| 5 (setq user-mail-address "ht@home.hst.name") | |
| 6 (setq mail-host-address "home.hst.name") | |
| 7 (setq mail-signature-file "/home/ht/.sig.pers") | |
| 8 (setq mail-signature t) | |
| 9 (setq message-signature-file "/home/ht/.sig.pers") | |
| 10 (setq message-signature t) | |
| 11 (defun system-name () "home.hst.name") | |
| 12 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
13 (setq gnus-default-directory "/home/ht" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
14 my-mail-dir "/home/ht/mail" |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
40
diff
changeset
|
15 mail-sources '((file :path "/var/spool/mail/ht")) |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
16 ) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
17 |
|
43
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
40
diff
changeset
|
18 (setq mail-archive-file-name (expand-file-name "~/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:
40
diff
changeset
|
19 |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
40
diff
changeset
|
20 |
|
eee08de75336
try to do better at where news/mail/init stuff is handled,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
40
diff
changeset
|
21 |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
22 (defun set-nnmail-split-fancy () |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
23 (setq nnmail-split-fancy |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
24 (let ((month (format-time-string "%Y-%m" (current-time)))) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
25 (cons '| |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
26 (append '(("Subject" "testing" "jjunk") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
27 (to "quaker-\\(l\\|spectrum\\)" "quaker-2022") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
28 (to "quaker-b" "quaker-b") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
29 (to "[cC]ygwin" "cygwin") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
30 (from "noreply@mrooms.net" "nayler") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
31 (to "ht@rsof.hst.name" "quaker-2023") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
32 (to "Wardenship@lists.quaker.eu.org" "wardens") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
33 (to "mhmcc@rsof.hst.name" "mhmcc-2023") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
34 ("Envelope-to" "mhmcc@rsof.hst.name" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
35 (| (from "mhmcc@rsof.hst.name" junk) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
36 "mhmcc-2023")) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
37 (to "mfw@rsof.hst.name" "7vt") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
38 (to "zphdaily" (concat "pers-" month)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
39 (to "inf\\(pg\\|msc\\|teach\\|res\\|staff\\)" "inf-\\1" ) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
40 ) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
41 (list (list 'to |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
42 "ht\\|h\\.?thompson?" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
43 (concat "pers-" month)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
44 (concat "group-" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
45 (format-time-string |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
46 "%Y-%m" (current-time)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
47 ""))))))) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
48 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
49 (setq gnus-posting-styles |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
50 `((".*" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
51 (signature-file ,mail-signature-file)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
52 ("quaker-2023" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
53 (signature-file "/home/ht/.quaker-sig") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
54 (address "ht@rsof.hst.name")) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
55 ("mhmcc-2023" |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
56 (signature-file "/home/ht/.mhmcc-sig") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
57 ("Reply-to" "sesam.emh.management@gmail.com") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
58 (name "HST as Convenor SESAM MHMC") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
59 (address "mhmcc@rsof.hst.name") |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
60 ("Bcc" "sesam.emh.management@gmail.com")))) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
61 |
| 22 | 62 ;; sending mail on the road |
| 63 ;(setq send-mail-function 'smtpmail-send-it) | |
| 64 ;(setq message-send-mail-function 'smtpmail-send-it) | |
| 65 ;(setq smtpmail-default-smtp-server "localhost") | |
| 66 ;(setq smtpmail-smtp-service "smtp") | |
| 67 ;(setq smtpmail-local-domain "home.hst.name") | |
| 68 (setq smtpmail-debug-info t) | |
| 69 (load "smtpmail" nil t) | |
| 70 (setq smtpmail-code-conv-from nil) | |
| 71 | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
72 |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
73 (defun quaker-sig-maybe () |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
74 (save-excursion |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
75 (goto-char (point-min)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
76 (cond ((to-quaker-p) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
77 (goto-char (point-min)) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
78 (cond ((search-forward "\nFrom: ht@home.hst.name" nil t) |
| 40 | 79 ;; will fail on mhmcc |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
80 (backward-char 13) |
|
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
81 (delete-char 4) |
| 40 | 82 (insert "rsof") |
| 83 (goto-char (point-max)) | |
| 84 (search-backward "\n-- \n") | |
| 85 (when (looking-at "\n-- \nHenry") | |
| 86 (forward-char 5) | |
| 87 (kill-entire-line 5) | |
| 88 (insert-file "~/.quaker-sig")))))))) | |
|
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
89 |
| 22 | 90 (provide 'mail-from-m) |
