aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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