summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorAntonio Radici <antonio@dyne.org>2012-12-30 19:48:23 -0800
committerAntonio Radici <antonio@dyne.org>2012-12-30 19:48:23 -0800
commit32e88fe79e3c9b078a8c0ba7276f8c25325356db (patch)
treed4434cf98b41f1ebee5c0c374b175fcace5de512 /headers.c
parent6767279f073c1dbe2692a1f86eaa037d2ebe41ff (diff)
Ensure that the in-reply-to header field was actually present before deciding it was removed.
closes #3378
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c4
1 files changed, 2 insertions, 2 deletions
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);