diff options
| author | Richard M. Stallman | 1991-03-24 23:18:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1991-03-24 23:18:32 +0000 |
| commit | 6f8c78e1be778361276c79e1ea11d705b9dca580 (patch) | |
| tree | 061ffe0147e980dc4ddf1d67c90bfb3acb76e471 | |
| parent | 54d7f6504d777f9780827f680b22c3375a3aaaba (diff) | |
| download | emacs-6f8c78e1be778361276c79e1ea11d705b9dca580.tar.gz emacs-6f8c78e1be778361276c79e1ea11d705b9dca580.zip | |
*** empty log message ***
| -rw-r--r-- | lisp/mail/mailalias.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index 7fc41289a15..ef1baef4218 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -22,15 +22,16 @@ | |||
| 22 | ;; only if some mail aliases are defined. | 22 | ;; only if some mail aliases are defined. |
| 23 | (defun expand-mail-aliases (beg end &optional exclude) | 23 | (defun expand-mail-aliases (beg end &optional exclude) |
| 24 | "Expand all mail aliases in suitable header fields found between BEG and END. | 24 | "Expand all mail aliases in suitable header fields found between BEG and END. |
| 25 | Suitable header fields are To, Cc and Bcc. Optional 2nd arg EXCLUDE may be a | 25 | Suitable header fields are To, Cc and Bcc and their Resent- variants. |
| 26 | regular expression defining text to be removed from alias expansions." | 26 | Optional 2nd arg EXCLUDE may be a regular expression |
| 27 | defining text to be removed from alias expansions." | ||
| 27 | (if (eq mail-aliases t) | 28 | (if (eq mail-aliases t) |
| 28 | (progn (setq mail-aliases nil) (build-mail-aliases))) | 29 | (progn (setq mail-aliases nil) (build-mail-aliases))) |
| 29 | (goto-char beg) | 30 | (goto-char beg) |
| 30 | (setq end (set-marker (make-marker) end)) | 31 | (setq end (set-marker (make-marker) end)) |
| 31 | (let ((case-fold-search nil)) | 32 | (let ((case-fold-search nil)) |
| 32 | (while (let ((case-fold-search t)) | 33 | (while (let ((case-fold-search t)) |
| 33 | (re-search-forward "^\\(to\\|cc\\|bcc\\):" end t)) | 34 | (re-search-forward "^\\(to\\|cc\\|bcc\\|resent-to\\|resent-cc\\|resent-bcc\\):" end t)) |
| 34 | (skip-chars-forward " \t") | 35 | (skip-chars-forward " \t") |
| 35 | (let ((beg1 (point)) | 36 | (let ((beg1 (point)) |
| 36 | end1 pos epos seplen | 37 | end1 pos epos seplen |