[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When replying, set From: to use the address where I received the ema
From: |
Bastien |
Subject: |
Re: When replying, set From: to use the address where I received the email |
Date: |
Thu, 27 Aug 2015 20:16:13 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Hi Rasmus,
Rasmus <rasmus@gmx.us> writes:
> Check: message-alternative-emails, message-dont-reply-to-names
> gnus-ignored-from-addresses.
Thanks -- I was already using this, but it does not work when replying
to mailing lists since ‘message-use-alternative-email-as-from’ is only
using the "To" "Cc" "From" headers (this is hardcoded).
With the attached patch, things seem fine now. But maybe there are
other headers to consider, or maybe using an option here would do?
Let me know,
diff --git a/lisp/message.el b/lisp/message.el
index d780e86..ac43d04 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -8319,7 +8319,8 @@ regexp VARSTR."
address in `message-alternative-emails', looking at To, Cc and
From headers in the original article."
(require 'mail-utils)
- (let* ((fields '("To" "Cc" "From"))
+ (let* ((fields '("To" "Cc" "From"
+ "X-Original-To" "Envelope-To" "Delivered-To"))
(emails
(split-string
(mail-strip-quoted-names
--
Bastien