summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-05-19 18:57:17 +0000
committerKarl Heuer <kwzh@gnu.org>1995-05-19 18:57:17 +0000
commit7955ceb5b5f97ee7ded4e31b0610a956e13dca94 (patch)
tree15a2b2b1b931a24d48d7a4a7d9bd2d66dfac266d /lisp/mail
parentb5b76ec9d83bb842f402c705fdbb177a491cb1a4 (diff)
downloademacs-7955ceb5b5f97ee7ded4e31b0610a956e13dca94.tar.gz
(expand-mail-aliases): Expand aliases in
From and Reply-to headers as well, plus the Resent- variants.
Diffstat (limited to 'lisp/mail')
-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 @@
;; only if some mail aliases are defined.
(defun expand-mail-aliases (beg end &optional exclude)
"Expand all mail aliases in suitable header fields found between BEG and END.
-Suitable header fields are `To', `Cc' and `Bcc' and their `Resent-' variants.
+Suitable header fields are `To', `From', `CC' and `BCC', `Reply-to', and
+their `Resent-' variants.
+
Optional second arg EXCLUDE may be a regular expression defining text to be
removed from alias expansions."
(sendmail-synch-aliases)
@@ -45,7 +47,7 @@ removed from alias expansions."
(setq end (set-marker (make-marker) end))
(let ((case-fold-search nil))
(while (let ((case-fold-search t))
- (re-search-forward "^\\(to\\|cc\\|bcc\\|resent-to\\|resent-cc\\|resent-bcc\\):" end t))
+ (re-search-forward "^\\(Resent-\\)?\\(To\\|From\\|CC\\|BCC\\|Reply-to\\):" end t))
(skip-chars-forward " \t")
(let ((beg1 (point))
end1 pos epos seplen