summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2005-05-21 14:13:00 +0000
committerEli Zaretskii <eliz@gnu.org>2005-05-21 14:13:00 +0000
commitd184e18226617d2356d764966cfbf847e47e8ada (patch)
tree1cdefc00c953d747dd8fe5fe5f6907c3cef1d4e6 /lisp/mail
parent1de7674c945b797d6efe7b5ecb952ece8b18ee99 (diff)
downloademacs-d184e18226617d2356d764966cfbf847e47e8ada.tar.gz
(rmail-reply): Filter the list in reply-to through rmail-dont-reply-to.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index c68bb80d80f..591ebad2b68 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -3444,7 +3444,11 @@ use \\[mail-yank-original] to yank the original message into it."
;; I don't know whether there are other mailers that still
;; need the names to be stripped.
;;; (mail-strip-quoted-names reply-to)
- reply-to
+ ;; Remove unwanted names from reply-to, since Mail-Followup-To
+ ;; header causes all the names in it to wind up in reply-to, not
+ ;; in cc. But if what's left is an empty list, use the original.
+ (let* ((reply-to-list (rmail-dont-reply-to reply-to)))
+ (if (string= reply-to-list "") reply-to reply-to-list))
subject
(rmail-make-in-reply-to-field from date message-id)
(if just-sender