}
res = mutt_copy_message (fpout, Context, cur, cmflags,
- (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) | CH_DECODE | CH_FROM | CH_DISPLAY);
+ (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0)
+ | CH_DECODE | CH_FROM | CH_DISPLAY | CH_VIRTUAL);
+
if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res < 0)
{
mutt_error (_("Could not copy message"));
CH_NOQFROM ignore ">From " line
CH_UPDATE_IRT update the In-Reply-To: header
CH_UPDATE_REFS update the References: header
+ CH_VIRTUAL write virtual header lines too
prefix
string to use if CH_PREFIX is set
}
#ifdef USE_NOTMUCH
- if (nm_header_get_tags(h))
+ if ((flags & CH_VIRTUAL) && nm_header_get_tags(h))
{
fputs ("Tags: ", out);
fputs (nm_header_get_tags(h), out);
#define CH_UPDATE_IRT (1<<16) /* update In-Reply-To: */
#define CH_UPDATE_REFS (1<<17) /* update References: */
#define CH_DISPLAY (1<<18) /* display result to user */
+#define CH_VIRTUAL (1<<19) /* write virtual header lines too */
int mutt_copy_hdr (FILE *, FILE *, LOFF_T, LOFF_T, int, const char *);