From 6f4390767f929403283afc6f197a9f79967f5476 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 10 May 2001 09:20:10 +0000 Subject: Fix header editing and references headers. --- headers.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'headers.c') diff --git a/headers.c b/headers.c index adcdb4b9..0dab00ee 100644 --- a/headers.c +++ b/headers.c @@ -37,7 +37,6 @@ void mutt_edit_headers (const char *editor, char *p; FILE *ifp, *ofp; int i, keep; - int in_reply_to = 0; /* did we see the in-reply-to field ? */ ENVELOPE *n; time_t mtime; struct stat st; @@ -128,9 +127,7 @@ void mutt_edit_headers (const char *editor, * not, remove the references: field later so that we can generate a new * message based upon this one. */ - if (ascii_strncasecmp ("in-reply-to:", cur->data, 12) == 0) - in_reply_to = 1; - else if (fcc && ascii_strncasecmp ("fcc:", cur->data, 4) == 0) + if (fcc && ascii_strncasecmp ("fcc:", cur->data, 4) == 0) { p = cur->data + 4; SKIPWS (p); @@ -203,6 +200,6 @@ void mutt_edit_headers (const char *editor, } } - if (!in_reply_to) + if (!msg->env->in_reply_to) mutt_free_list (&msg->env->references); } -- cgit v1.2.3