Commit 917d5bd0 authored by Kevin J. McCarthy's avatar Kevin J. McCarthy

Fix the x-label update code check location.

The x-label comparison was outside the "beginning of header" block.

This meant that it could theoretically match a continuation line.
Additionally, the continuation lines of x-labels would not be
stripped, because the comparison was after the ignore variable was
reset.

Move the comparison inside the block and before the ignore reset.
parent 9ae62494
......@@ -108,13 +108,13 @@ mutt_copy_hdr (FILE *in, FILE *out, LOFF_T off_start, LOFF_T off_end, int flags,
if ((flags & CH_UPDATE_IRT) &&
ascii_strncasecmp ("In-Reply-To:", buf, 12) == 0)
continue;
if (flags & CH_UPDATE_LABEL &&
ascii_strncasecmp ("X-Label:", buf, 8) == 0)
continue;
ignore = 0;
}
if (flags & CH_UPDATE_LABEL &&
ascii_strncasecmp ("X-Label:", buf, 8) == 0)
continue;
if (!ignore && fputs (buf, out) == EOF)
return (-1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment