aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-05-19 18:57:17 +0000
committerKarl Heuer1995-05-19 18:57:17 +0000
commit1abe848863b49c162f20a0d2aa6ba29f2ed9dbca (patch)
treeebae19697862f8122f80a32a0f59dcd68ad0788f
parent7355fc3395ed06629bc591f1f8ab7e26e113661c (diff)
downloademacs-1abe848863b49c162f20a0d2aa6ba29f2ed9dbca.tar.gz
emacs-1abe848863b49c162f20a0d2aa6ba29f2ed9dbca.zip
(expand-mail-aliases): Expand aliases in
From and Reply-to headers as well, plus the Resent- variants.
-rw-r--r--lisp/mail/mailalias.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el
index cedc40ab9a9..2f06c63e498 100644
--- a/lisp/mail/mailalias.el
+++ b/lisp/mail/mailalias.el
@@ -35,7 +35,9 @@
35;; only if some mail aliases are defined. 35;; only if some mail aliases are defined.
36(defun expand-mail-aliases (beg end &optional exclude) 36(defun expand-mail-aliases (beg end &optional exclude)
37 "Expand all mail aliases in suitable header fields found between BEG and END. 37 "Expand all mail aliases in suitable header fields found between BEG and END.
38Suitable header fields are `To', `Cc' and `Bcc' and their `Resent-' variants. 38Suitable header fields are `To', `From', `CC' and `BCC', `Reply-to', and
39their `Resent-' variants.
40
39Optional second arg EXCLUDE may be a regular expression defining text to be 41Optional second arg EXCLUDE may be a regular expression defining text to be
40removed from alias expansions." 42removed from alias expansions."
41 (sendmail-synch-aliases) 43 (sendmail-synch-aliases)
@@ -45,7 +47,7 @@ removed from alias expansions."
45 (setq end (set-marker (make-marker) end)) 47 (setq end (set-marker (make-marker) end))
46 (let ((case-fold-search nil)) 48 (let ((case-fold-search nil))
47 (while (let ((case-fold-search t)) 49 (while (let ((case-fold-search t))
48 (re-search-forward "^\\(to\\|cc\\|bcc\\|resent-to\\|resent-cc\\|resent-bcc\\):" end t)) 50 (re-search-forward "^\\(Resent-\\)?\\(To\\|From\\|CC\\|BCC\\|Reply-to\\):" end t))
49 (skip-chars-forward " \t") 51 (skip-chars-forward " \t")
50 (let ((beg1 (point)) 52 (let ((beg1 (point))
51 end1 pos epos seplen 53 end1 pos epos seplen