summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-05-10 09:20:10 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-05-10 09:20:10 +0000
commit6f4390767f929403283afc6f197a9f79967f5476 (patch)
tree3981cbf313de56b903820bb7d9dbdd7f4cfa0a9e /headers.c
parent91409e034831b8132183dce5ab80233b821da23a (diff)
Fix header editing and references headers.
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c7
1 files changed, 2 insertions, 5 deletions
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);
}