1 Add resent header weeding, used by sendbox
3 Signed-off-by: Aron Griffis <agrif...@n01se.net>
5 diff -r bffd60d2ac16 -r 4119b2394228 copy.c
6 --- a/copy.c Tue Apr 28 11:17:28 2009 -0400
7 +++ b/copy.c Tue Apr 28 11:17:31 2009 -0400
12 - if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX | CH_WEED_DELIVERED)) == 0)
13 + if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX |
14 + CH_WEED_DELIVERED | CH_WEED_RESENT)) == 0)
16 /* Without these flags to complicate things
17 * we can do a more efficient line to line copying
19 if ((flags & CH_WEED_DELIVERED) &&
20 ascii_strncasecmp ("Delivered-To:", buf, 13) == 0)
22 + if ((flags & CH_WEED_RESENT) &&
23 + (ascii_strncasecmp ("Resent-To:", buf, 10) == 0 ||
24 + ascii_strncasecmp ("Resent-From:", buf, 12) == 0))
26 if ((flags & (CH_UPDATE | CH_XMIT | CH_NOSTATUS)) &&
27 (ascii_strncasecmp ("Status:", buf, 7) == 0 ||
28 ascii_strncasecmp ("X-Status:", buf, 9) == 0))
29 diff -r bffd60d2ac16 -r 4119b2394228 copy.h
30 --- a/copy.h Tue Apr 28 11:17:28 2009 -0400
31 +++ b/copy.h Tue Apr 28 11:17:31 2009 -0400
33 #define CH_UPDATE_IRT (1<<16) /* update In-Reply-To: */
34 #define CH_UPDATE_REFS (1<<17) /* update References: */
35 #define CH_DISPLAY (1<<18) /* display result to user */
36 +#define CH_WEED_RESENT (1<<19) /* weed Resent-To: header */
39 int mutt_copy_hdr (FILE *, FILE *, LOFF_T, LOFF_T, int, const char *);