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.
}
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) ||
*
* 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);