changeset: 6908:7a8ea1bb09f0
user:      Kevin McCarthy <[email protected]>
date:      Mon Jan 23 18:46:16 2017 -0800
link:      http://dev.mutt.org/hg/mutt/rev/7a8ea1bb09f0

Improve Reply-to vs From comparison when replying. (closes #3909)

Prior to this patch, if the Reply-to mailbox matched the From mailbox,
mutt would always use the From address.  This was probably done to
preserve the display name, as the Reply-to address is often missing one.

Unfortunately, there are circumstances where the Reply-to display-name
has significance, such as in ticket 3909.

Change mutt so that it only uses the From address if the Reply-To has
no display-name.

diffs (22 lines):

diff -r b57c695b7923 -r 7a8ea1bb09f0 send.c
--- a/send.c    Thu Jan 19 14:58:13 2017 -0800
+++ b/send.c    Mon Jan 23 18:46:16 2017 -0800
@@ -455,7 +455,8 @@
   }
   else if (env->reply_to)
   {
-    if ((mutt_addrcmp (env->from, env->reply_to) && !env->reply_to->next) || 
+    if ((mutt_addrcmp (env->from, env->reply_to) && !env->reply_to->next &&
+         !env->reply_to->personal) ||
        (option (OPTIGNORELISTREPLYTO) &&
        mutt_is_mail_list (env->reply_to) &&
        (mutt_addrsrc (env->reply_to, env->to) ||
@@ -466,7 +467,7 @@
        * 
        * We also take the from header if our correspondent has a reply-to
        * header which is identical to the electronic mail address given
-       * in his From header.
+       * in his From header, and the reply-to has no display-name.
        * 
        */
       rfc822_append (to, env->from, 0);

Reply via email to