summaryrefslogtreecommitdiffstats
path: root/copy.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-03-15 15:32:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-03-15 15:32:15 +0000
commit9f26443a68515fe7683aa5f83c6698b28a39d7f9 (patch)
treecc68162b26ede03d82b108d1751ec6e56b9b32ae /copy.c
parent0560bde39f6fc62c80843c6ebf3ff11b1debed81 (diff)
Add $bounce_delivered.
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/copy.c b/copy.c
index 79b36594..369980b3 100644
--- a/copy.c
+++ b/copy.c
@@ -60,7 +60,7 @@ mutt_copy_hdr (FILE *in, FILE *out, long off_start, long off_end, int flags,
buf[0] = '\n';
buf[1] = 0;
- if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX)) == 0)
+ if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX | CH_WEED_DELIVERED)) == 0)
{
/* Without these flags to complicate things
* we can do a more efficient line to line copying
@@ -149,6 +149,9 @@ mutt_copy_hdr (FILE *in, FILE *out, long off_start, long off_end, int flags,
mutt_matches_ignore (buf, Ignore) &&
!mutt_matches_ignore (buf, UnIgnore))
continue;
+ if ((flags & CH_WEED_DELIVERED) &&
+ mutt_strncasecmp ("Delivered-To:", buf, 13) == 0)
+ continue;
if ((flags & (CH_UPDATE | CH_XMIT | CH_NOSTATUS)) &&
(mutt_strncasecmp ("Status:", buf, 7) == 0 ||
mutt_strncasecmp ("X-Status:", buf, 9) == 0))