]> granicus.if.org Git - neomutt/commitdiff
Ensure that the in-reply-to header field was actually present before deciding it...
authorAntonio Radici <antonio@dyne.org>
Mon, 31 Dec 2012 03:48:23 +0000 (19:48 -0800)
committerAntonio Radici <antonio@dyne.org>
Mon, 31 Dec 2012 03:48:23 +0000 (19:48 -0800)
closes #3378

headers.c

index 902eb9b8f0c6a84101ac342b884616e82cd1af42..578b33d8c9d8b49e1cb11961c4c97d8b1aad659b 100644 (file)
--- 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);