# HG changeset patch # User Karl Heuer # Date 800909837 0 # Node ID abf2dbc46f7de2381eec31bbe50251f8d85c19eb # Parent b951b7cc955e2d2fbe8dbc2bcd92beb6e140c811 (expand-mail-aliases): Expand aliases in From and Reply-to headers as well, plus the Resent- variants. diff -r b951b7cc955e -r abf2dbc46f7d lisp/mail/mailalias.el --- a/lisp/mail/mailalias.el Fri May 19 03:53:38 1995 +0000 +++ b/lisp/mail/mailalias.el Fri May 19 18:57:17 1995 +0000 @@ -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 @@ (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