From: Antonio Radici Date: Mon, 31 Dec 2012 03:48:23 +0000 (-0800) Subject: Ensure that the in-reply-to header field was actually present before deciding it... X-Git-Tag: mutt-1-5-22-rel~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32e88fe79e3c9b078a8c0ba7276f8c25325356db;p=mutt Ensure that the in-reply-to header field was actually present before deciding it was removed. closes #3378 --- diff --git a/headers.c b/headers.c index 902eb9b8..578b33d8 100644 --- a/headers.c +++ b/headers.c @@ -114,8 +114,8 @@ void mutt_edit_headers (const char *editor, $edit_headers set, we remove References: as they're likely invalid; we can simply compare strings as we don't generate References for multiple Message-Ids in IRT anyways */ - if (!n->in_reply_to || (msg->env->in_reply_to && - mutt_strcmp (n->in_reply_to->data, + if (msg->env->in_reply_to && + (!n->in_reply_to || mutt_strcmp (n->in_reply_to->data, msg->env->in_reply_to->data) != 0)) mutt_free_list (&msg->env->references);