Package: mutt Version: 1.5.17+20080114-1 Severity: wishlist Tags: patch Hello,
I use Bcc headers quite frequently to send e-mails to a group of people without disclosing their addresses. Since exim is the default MTA on debian it is then necessary to unset $write_bcc in mutt, otherwise the Bcc header would not be stripped from the e-mails which are sent out. This has the adverse side-effect that the Bcc header is also missing from the Fcc copy that mutt saves. This problem has been discussed on mutt-dev in October 2005 and a simple patch was presented in http://marc.info/?l=mutt-dev&m=112939717412790 . The patch included below is a re-sync w.r.t. mutt_1.5.17+20080114-1 in Debian Testing. Please consider including this patch in the Debian package of mutt in the future. Kind regards, Ch. Scheurer *** mutt-1.5.17_force_write_bcc_for_fcc.patch diff -uraN mutt-1.5.17+20080114/headers.c mutt-1.5.17+20080114.patched/headers.c --- mutt-1.5.17+20080114/headers.c 2008-01-14 22:56:29.000000000 +0100 +++ mutt-1.5.17+20080114.patched/headers.c 2008-02-25 12:25:28.000000000 +0100 @@ -52,7 +52,7 @@ } mutt_env_to_local (msg->env); - mutt_write_rfc822_header (ofp, msg->env, NULL, 1, 0); + mutt_write_rfc822_header (ofp, msg->env, NULL, 1, 0, 0); fputc ('\n', ofp); /* tie off the header. */ /* now copy the body of the message. */ diff -uraN mutt-1.5.17+20080114/protos.h mutt-1.5.17+20080114.patched/protos.h --- mutt-1.5.17+20080114/protos.h 2008-01-14 22:58:33.000000000 +0100 +++ mutt-1.5.17+20080114.patched/protos.h 2008-02-25 12:26:31.000000000 +0100 @@ -370,7 +370,7 @@ int mutt_write_mime_body (BODY *, FILE *); int mutt_write_mime_header (BODY *, FILE *); int mutt_write_one_header (FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen); -int mutt_write_rfc822_header (FILE *, ENVELOPE *, BODY *, int, int); +int mutt_write_rfc822_header (FILE *, ENVELOPE *, BODY *, int, int, int); int mutt_yesorno (const char *, int); void mutt_set_header_color(CONTEXT *, HEADER *); void mutt_sleep (short); diff -uraN mutt-1.5.17+20080114/send.c mutt-1.5.17+20080114.patched/send.c --- mutt-1.5.17+20080114/send.c 2008-01-14 22:58:33.000000000 +0100 +++ mutt-1.5.17+20080114.patched/send.c 2008-02-25 12:25:28.000000000 +0100 @@ -984,10 +984,10 @@ unset_option (OPTWRITEBCC); #endif #ifdef MIXMASTER - mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, msg->chain ? 1 : 0); + mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, msg->chain ? 1 : 0, 0); #endif #ifndef MIXMASTER - mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, 0); + mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, 0, 0); #endif #ifdef USE_SMTP if (old_write_bcc) diff -uraN mutt-1.5.17+20080114/sendlib.c mutt-1.5.17+20080114.patched/sendlib.c --- mutt-1.5.17+20080114/sendlib.c 2008-01-14 22:58:33.000000000 +0100 +++ mutt-1.5.17+20080114.patched/sendlib.c 2008-02-25 12:28:49.000000000 +0100 @@ -1743,7 +1743,7 @@ int mutt_write_rfc822_header (FILE *fp, ENVELOPE *env, BODY *attach, - int mode, int privacy) + int mode, int privacy, int fcc) { char buffer[LONG_STRING]; char *p, *q; @@ -1788,7 +1788,7 @@ if (env->bcc) { - if(mode != 0 || option(OPTWRITEBCC)) + if(mode != 0 || option(OPTWRITEBCC) || fcc) { fputs ("Bcc: ", fp); mutt_write_address_list (env->bcc, fp, 5, 0); @@ -2559,7 +2559,7 @@ /* post == 1 => postpone message. Set mode = -1 in mutt_write_rfc822_header() * post == 0 => Normal mode. Set mode = 0 in mutt_write_rfc822_header() * */ - mutt_write_rfc822_header (msg->fp, hdr->env, hdr->content, post ? -post : 0, 0); + mutt_write_rfc822_header (msg->fp, hdr->env, hdr->content, post ? -post : 0, 0, 1); /* (postponment) if this was a reply of some sort, <msgid> contians the * Message-ID: of message replied to. Save it using a special X-Mutt- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]