summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-12-25 19:52:53 -0800
committerKevin McCarthy <kevin@8t8.us>2018-12-29 14:12:07 -0800
commit2817372ffb68c46f68d14d844b913204f9c7dccc (patch)
tree96a8ba192a51f0aae3966bc531ebdeea4e4fc506 /headers.c
parent7f603dd66a28d0c02c09bbd6636fc659e69b480d (diff)
Change x-label editing flag to be in the envelope.
Handle like In-Reply-To and References editing. Change the flag setting to be inside mutt_copy_header(). The resetting of the changed flag occurs explicitly in the imap and maildir/mh sync_mailbox code. It occurs for mbox in the mx_update_tables() call in mx_sync_mailbox().
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/headers.c b/headers.c
index 9b60023c..e1a15d7f 100644
--- a/headers.c
+++ b/headers.c
@@ -267,7 +267,9 @@ static int label_message(CONTEXT *ctx, HEADER *hdr, char *new)
if (hdr->env->x_label != NULL)
label_ref_inc(ctx, hdr->env->x_label);
- return hdr->changed = hdr->xlabel_changed = 1;
+ hdr->changed = 1;
+ hdr->env->changed |= MUTT_ENV_CHANGED_XLABEL;
+ return 1;
}
int mutt_label_message(HEADER *hdr)