]> granicus.if.org Git - neomutt/commitdiff
Restore the xlabel_changed reset
authorKevin McCarthy <kevin@8t8.us>
Fri, 28 Dec 2018 00:24:27 +0000 (16:24 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 7 Jan 2019 15:09:41 +0000 (15:09 +0000)
The cherry pick accidentally obliterated the reset.  That flag is now
located in hdr->env->changed in the branch and is reset properly
elsewhere.  Keep it in place in the stable branch.

Co-authored-by: Richard Russon <rich@flatcap.org>
copy.c

diff --git a/copy.c b/copy.c
index 5109009f4b5b81a376d8882ad00eeb305f1512df..c9b0d248dfc987ff897df031ba975b86711bb267 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -504,6 +504,7 @@ int mutt_copy_header(FILE *in, struct Email *e, FILE *out, int flags, const char
 
   if ((flags & CH_UPDATE_LABEL) && e->env->x_label)
   {
+    e->xlabel_changed = 0;
     if (!(flags & CH_DECODE))
       rfc2047_encode(&e->env->x_label, NULL, sizeof("X-Label:"), SendCharset);
     if (mutt_write_one_header(out, "X-Label", e->env->x_label, flags & CH_PREFIX ? prefix : 0,