Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Bastien <bzg@gnu.org>
To: Rasmus <rasmus@gmx.us>
Cc: info-gnus-english@gnu.org
Subject: Re: When replying, set From: to use the address where I received the email
Date: Thu, 27 Aug 2015 20:16:13 +0200	[thread overview]
Message-ID: <87bnds1tsi.fsf@gnu.org> (raw)
In-Reply-To: <878u8wve0f.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 27 Aug 2015 19:26:40 +0200")

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

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,


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: message.el.patch --]
[-- Type: text/x-diff, Size: 476 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien



  reply	other threads:[~2015-08-27 18:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 17:03 Bastien
2015-08-27 17:26 ` Rasmus
2015-08-27 18:16   ` Bastien [this message]
2015-08-28  6:22     ` Peter Münster
2015-08-28  9:06       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnds1tsi.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=info-gnus-english@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).