diff options
| author | Karl Heuer | 1995-12-13 02:19:05 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-12-13 02:19:05 +0000 |
| commit | 7e34da22f006fec1a9b6b4bec0bce4824349feb3 (patch) | |
| tree | aeb6659ce9504ccc801070e3b936b1626a6a0304 | |
| parent | fc67d5be864699aa78fee174bfa11f431f98b6ac (diff) | |
| download | emacs-7e34da22f006fec1a9b6b4bec0bce4824349feb3.tar.gz emacs-7e34da22f006fec1a9b6b4bec0bce4824349feb3.zip | |
(sendmail-send-it): Added support for Resent-CC and
Resent-BCC headers.
| -rw-r--r-- | lisp/mail/sendmail.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index a6dbc481ae5..f7b1d82e61a 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -493,7 +493,7 @@ the user from the mailer." | |||
| 493 | (replace-match "\n")) | 493 | (replace-match "\n")) |
| 494 | (let ((case-fold-search t)) | 494 | (let ((case-fold-search t)) |
| 495 | (goto-char (point-min)) | 495 | (goto-char (point-min)) |
| 496 | (while (re-search-forward "^Resent-to:" delimline t) | 496 | (while (re-search-forward "^Resent-\\(to\\|cc\\|bcc\\):" delimline t) |
| 497 | (setq resend-to-addresses | 497 | (setq resend-to-addresses |
| 498 | (save-restriction | 498 | (save-restriction |
| 499 | (narrow-to-region (point) | 499 | (narrow-to-region (point) |
| @@ -501,7 +501,12 @@ the user from the mailer." | |||
| 501 | (end-of-line) | 501 | (end-of-line) |
| 502 | (point))) | 502 | (point))) |
| 503 | (append (mail-parse-comma-list) | 503 | (append (mail-parse-comma-list) |
| 504 | resend-to-addresses)))) | 504 | resend-to-addresses))) |
| 505 | ;; Delete Resent-BCC ourselves | ||
| 506 | (if (save-excursion (beginning-of-line) | ||
| 507 | (looking-at "resent-bcc")) | ||
| 508 | (delete-region (save-excursion (beginning-of-line) (point)) | ||
| 509 | (save-excursion (end-of-line) (1+ (point)))))) | ||
| 505 | ;;; Apparently this causes a duplicate Sender. | 510 | ;;; Apparently this causes a duplicate Sender. |
| 506 | ;;; ;; If the From is different than current user, insert Sender. | 511 | ;;; ;; If the From is different than current user, insert Sender. |
| 507 | ;;; (goto-char (point-min)) | 512 | ;;; (goto-char (point-min)) |