Mercurial > hg > xemacs
annotate mail-from-m.el @ 32:cb9b76219c55
attempt to merge mail read and send from all over
author | Henry S Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 08 Oct 2023 16:36:27 +0100 |
parents | 6097ab2da4ce |
children | d9297098442b |
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" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
15 ) |
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 (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
|
18 (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
|
19 (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
|
20 (cons '| |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
21 (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
|
22 (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
|
23 (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
|
24 (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
|
25 (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
|
26 (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
|
27 (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
|
28 (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
|
29 ("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
|
30 (| (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
|
31 "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
|
32 (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
|
33 (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
|
34 (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
|
35 ) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
36 (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
|
37 "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
|
38 (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 (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
|
40 (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
|
41 "%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
|
42 ""))))))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
43 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
44 (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
|
45 `((".*" |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
46 (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
|
47 ("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
|
48 (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
|
49 (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
|
50 ("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
|
51 (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
|
52 ("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
|
53 (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
|
54 (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
|
55 ("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
|
56 |
22 | 57 ;; sending mail on the road |
58 ;(setq send-mail-function 'smtpmail-send-it) | |
59 ;(setq message-send-mail-function 'smtpmail-send-it) | |
60 ;(setq smtpmail-default-smtp-server "localhost") | |
61 ;(setq smtpmail-smtp-service "smtp") | |
62 ;(setq smtpmail-local-domain "home.hst.name") | |
63 (setq smtpmail-debug-info t) | |
64 (load "smtpmail" nil t) | |
65 (setq smtpmail-code-conv-from nil) | |
66 | |
32
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
67 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
68 (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
|
69 (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
|
70 (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
|
71 (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
|
72 (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
|
73 (cond ((search-forward "\nFrom: ht@home.hst.name" nil t) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
74 (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
|
75 (delete-char 4) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
76 (insert "rsof"))))) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
77 |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
78 (goto-char (point-max)) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
79 (search-backward "\n-- \n") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
80 (when (looking-at "\n-- \nHenry") |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
81 (forward-char 5) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
82 (kill-entire-line 5) |
cb9b76219c55
attempt to merge mail read and send from all over
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
22
diff
changeset
|
83 (insert-file "~/.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
|
84 |
22 | 85 (provide 'mail-from-m) |