unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 13321@debbugs.gnu.org
Subject: bug#13321: 24.3.0.50; Gmail error when replying from Gnus to github
Date: Fri, 22 Feb 2013 08:33:52 +0100	[thread overview]
Message-ID: <877gm0iyzj.fsf@gmail.com> (raw)
In-Reply-To: <b4m4nh4lsyh.fsf@jpl.org> (Katsumi Yamaoka's message of "Fri, 22 Feb 2013 16:15:50 +0900")

Hi Katsumi,

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> Thierry Volpiatto wrote:
>> Here the commit that introduce this bug:
>> 2559724 *
>>| Author: Katsumi Yamaoka <yamaoka@jpl.org>
>>| Date:   Mon Nov 19 06:24:03 2012 +0000
>>|
>>|     message.el (message-get-reply-headers): Make sure the reply goes to the author if it is a wide reply
>
> This log message suggested that the author (i.e., the From: address)
> of a mail didn't appear in a message header when starting composing
> a wide reply.  I mean, if you perform a wide reply using the `F' or
> the `S W' command to a mail like the following:
>
> From: the-author@example.com.invalid
> To: the-mailing-list@example.com.invalid
> Cc: foo@example.com.invalid
> Reply-To: the-mailing-list@example.com.invalid
>
> The old one will compose a draft as follows:
>
> To: the-mailing-list@example.com.invalid
> Cc: foo@example.com.invalid
>
> But the present one does:
>
> To: the-author@example.com.invalid
> Cc: the-mailing-list@example.com.invalid, foo@example.com.invalid
>
> This is much better for a wide reply, isn't it?  The root cause of
> this difference is due to the Reply-To header, that some mailing
> list servers are likely to add (it may be because many mail clients
> compose a draft to send to only the author, I guess).
>
> Is your problem that the From address is invalid?
Yes.

> If so, if there is a valid Reply-To header, you can use R rather than
> F.

Anyway even when hitting "F" this shouldn't happen.

> Otherwise, feel free to forward an example mail to me.
Will (re)send in next post.

Here a patch that fix the problem, please review, I am not familiar with
all these mails headers.
Note that the second when clause is not needed when setting author
before, and don't corrupt further the "to" header when wide is not used.

Also my english is not very good, but I don't understand your comments,
please fix it (I leave long lines to see better).

Thanks.


diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 808e1ed..8b9df3c 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6720,17 +6720,17 @@ The function is called with one parameter, a cons cell ..."
 			       ", "))
 	    mct (message-fetch-field "mail-copies-to")
 	    author (or (message-fetch-field "mail-reply-to")
-		       (message-fetch-field "reply-to"))
+		       (message-fetch-field "reply-to")
+                       (message-fetch-field "from")
+                       "")
 	    mft (and message-use-mail-followup-to
 		     (message-fetch-field "mail-followup-to")))
       ;; Make sure this message goes to the author if this is a wide
-      ;; reply, since Reply-To address may be a list address a mailing
-      ;; list server added.
+      ;; reply, FIXME: please fix the commented line following, it seem the second one is good and the first one wrong.
+      ;; since Reply-To address may be a list address a mailing list server added.
+      ;; since Reply-to adress may be a mailing list address with server added.
       (when (and wide author)
-	(setq cc (concat author ", " cc)))
-      (when (or wide (not author))
-	(setq author (or (message-fetch-field "from") ""))))
-
+	(setq cc (concat author ", " cc))))
     ;; Handle special values of Mail-Copies-To.
     (when mct
       (cond ((or (equal (downcase mct) "never")

-- 
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





  reply	other threads:[~2013-02-22  7:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-31 17:40 bug#13321: 24.3.0.50; Gmail error when replying from Gnus to github Thierry Volpiatto
2012-12-31 20:26 ` Andreas Schwab
2013-01-02 20:13 ` Lars Magne Ingebrigtsen
2013-01-02 21:14   ` Thierry Volpiatto
2013-01-02 22:50     ` Lars Magne Ingebrigtsen
2013-01-03  5:34       ` Thierry Volpiatto
2013-01-03  6:10         ` Lars Magne Ingebrigtsen
2013-01-03  6:41           ` Thierry Volpiatto
2013-01-08  6:35             ` Thierry Volpiatto
2013-02-14  6:35               ` Thierry Volpiatto
2013-02-21 16:22               ` Thierry Volpiatto
2013-02-21 16:53                 ` Thierry Volpiatto
2013-02-21 19:40                   ` Thierry Volpiatto
2013-02-22  7:15                     ` Katsumi Yamaoka
2013-02-22  7:33                       ` Thierry Volpiatto [this message]
2013-02-22  9:34                         ` Katsumi Yamaoka
2013-02-22 10:06                           ` Thierry Volpiatto
2013-02-22 11:17                             ` Katsumi Yamaoka
2013-02-22 14:09                               ` Thierry Volpiatto
2013-02-23  6:56                               ` Thierry Volpiatto
2013-02-23  8:18                               ` Thierry Volpiatto
2013-02-23 10:06                                 ` Thierry Volpiatto
2013-02-23 10:34                               ` Thierry Volpiatto
2013-02-24  6:49                               ` Thierry Volpiatto
2013-02-25  6:59                                 ` Katsumi Yamaoka
2013-02-25  7:08                                   ` Katsumi Yamaoka
2013-02-25  7:15                                   ` Thierry Volpiatto
2013-02-25  7:33                                     ` Katsumi Yamaoka
2013-02-25  9:17                                       ` Thierry Volpiatto
2013-02-25 11:29                                         ` Katsumi Yamaoka
2013-02-22  7:43                       ` Thierry Volpiatto
2013-02-22  7:51                       ` Thierry Volpiatto
2013-02-22  7:53                       ` Thierry Volpiatto

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=877gm0iyzj.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=13321@debbugs.gnu.org \
    --cc=yamaoka@jpl.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).