summaryrefslogtreecommitdiffstats
path: root/sendlib.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 /sendlib.c
parent0560bde39f6fc62c80843c6ebf3ff11b1debed81 (diff)
Add $bounce_delivered.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sendlib.c b/sendlib.c
index f263f4b2..b5c61a35 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -1821,9 +1821,13 @@ void mutt_bounce_message (HEADER *h, ADDRESS *to)
if ((f = safe_fopen (tempfile, "w")) != NULL)
{
const char *fqdn;
-
+ int ch_flags = CH_XMIT | CH_NONEWLINE;
+
+ if (!option (OPTBOUNCEDELIVERED))
+ ch_flags |= CH_WEED_DELIVERED;
+
fseek (msg->fp, h->offset, 0);
- mutt_copy_header (msg->fp, h, f, CH_XMIT | CH_NONEWLINE, NULL);
+ mutt_copy_header (msg->fp, h, f, ch_flags, NULL);
fprintf (f, "Resent-From: %s", NONULL(Username));
if((fqdn = mutt_fqdn(1)))
fprintf (f, "@%s", fqdn);