Mercurial > emacs
comparison lisp/mail/smtpmail.el @ 15648:2feeabc94834
(smtpmail-deduce-address-list): Handle RESENT-* fields.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 12 Jul 1996 00:09:50 +0000 |
parents | 0d4a7f47f31d |
children | 46d74bda4351 |
comparison
equal
deleted
inserted
replaced
15647:f898a38206ab | 15648:2feeabc94834 |
---|---|
445 (require 'mail-utils) ;; pick up mail-strip-quoted-names | 445 (require 'mail-utils) ;; pick up mail-strip-quoted-names |
446 (let | 446 (let |
447 ((case-fold-search t) | 447 ((case-fold-search t) |
448 (simple-address-list "") | 448 (simple-address-list "") |
449 this-line | 449 this-line |
450 this-line-end) | 450 this-line-end |
451 addr-regexp) | |
451 | 452 |
452 (unwind-protect | 453 (unwind-protect |
453 (save-excursion | 454 (save-excursion |
454 ;; | 455 ;; |
455 (set-buffer smtpmail-address-buffer) (erase-buffer) | 456 (set-buffer smtpmail-address-buffer) (erase-buffer) |
456 (insert-buffer-substring smtpmail-text-buffer header-start header-end) | 457 (insert-buffer-substring smtpmail-text-buffer header-start header-end) |
457 (goto-char (point-min)) | 458 (goto-char (point-min)) |
458 (while (re-search-forward "^\\(TO:\\|CC:\\|BCC:\\)" header-end t) | 459 ;; RESENT-* fields should stop processing of regular fields. |
460 (save-excursion | |
461 (if (re-search-forward "^RESENT-TO:" header-end t) | |
462 (setq addr-regexp "^\\(RESENT-TO:\\|RESENT-CC:\\|RESENT-BCC:\\)") | |
463 (setq addr-regexp "^\\(TO:\\|CC:\\|BCC:\\)"))) | |
464 | |
465 (while (re-search-forward addr-regexp header-end t) | |
459 (replace-match "") | 466 (replace-match "") |
460 (setq this-line (match-beginning 0)) | 467 (setq this-line (match-beginning 0)) |
461 (forward-line 1) | 468 (forward-line 1) |
462 ;; get any continuation lines | 469 ;; get any continuation lines |
463 (while (and (looking-at "^[ \t]+") (< (point) header-end)) | 470 (while (and (looking-at "^[ \t]+") (< (point) header-end)) |