<<< Date Index >>>     <<< Thread Index >>>

Re: my_hdr and rfc 2047



That's what happens when headers go out on the wire that aren't
supposed to.  This is not a bug.

(NOT.  Committing the fix.)

On 2005-02-20 20:25:16 +0100, Alain Bench wrote:
> From: Alain Bench <messtic@xxxxxxxxx>
> To: Mutt users ml <mutt-users@xxxxxxxx>
> Cc: Karl Hasselström <kha-list-mutt-users@xxxxxxxxxxxxxxxxx>
> Date: Sun, 20 Feb 2005 20:25:16 +0100 (CET)
> Subject: Re: my_hdr and rfc 2047
> Mail-Followup-To: Mutt users ml <mutt-users@xxxxxxxx>
> X-Spam-Level: 
> 
> Hello Karl, and much thanks for the bug report!
> 
>  On Thursday, February 17, 2005 at 10:49:01 AM +0100, Karl Hasselström wrote:
> 
> >| my_hdr Bcc: Karl Hasselström <kha@xxxxxxxxxxxxxxxxx>
> > insert the specified headers literally, without escaping non-ASCII
> > characters as specified in RFC 2047.
> 
>     Confirmed on stock 1.5.7. Bravo! You spotted a bug I never noticed
> before. It's not "my_hdr" nor "From:", but just "Bcc:".
> 
>     Does attached patch-1.5.7.ab.2047_bcc.1 help? Any unwanted
> side-effect?
> 
> 
> Bye!  Alain.
> -- 
> Hotmail users break umlauts for everyone else on a mailing list!
> They should stop doing so immediately!
>       « MSN considered HARMFUL » PCC CB on MU. © June 2002

> Do forgotten 2047 encoding of "Bcc:" field. AB.
> 
> diff -prud mutt-1.5.7/parse.c mutt-1.5.7.mod/parse.c
> --- mutt-1.5.7/parse.c        Sun Feb 20 15:23:48 2005
> +++ mutt-1.5.7.mod/parse.c    Sun Feb 20 01:22:47 2005
> @@ -1419,6 +1419,7 @@ ENVELOPE *mutt_read_rfc822_header (FILE 
>      rfc2047_decode_adrlist (e->from);
>      rfc2047_decode_adrlist (e->to);
>      rfc2047_decode_adrlist (e->cc);
> +    rfc2047_decode_adrlist (e->bcc);
>      rfc2047_decode_adrlist (e->reply_to);
>      rfc2047_decode_adrlist (e->mail_followup_to);
>      rfc2047_decode_adrlist (e->return_path);
> diff -prud mutt-1.5.7/sendlib.c mutt-1.5.7.mod/sendlib.c
> --- mutt-1.5.7/sendlib.c      Sun Feb 20 15:23:48 2005
> +++ mutt-1.5.7.mod/sendlib.c  Sun Feb 20 01:13:17 2005
> @@ -2168,6 +2168,7 @@ void mutt_prepare_envelope (ENVELOPE *en
>    /* Take care of 8-bit => 7-bit conversion. */
>    rfc2047_encode_adrlist (env->to, "To");
>    rfc2047_encode_adrlist (env->cc, "Cc");
> +  rfc2047_encode_adrlist (env->bcc, "Bcc");
>    rfc2047_encode_adrlist (env->from, "From");
>    rfc2047_encode_adrlist (env->mail_followup_to, "Mail-Followup-To");
>    rfc2047_encode_adrlist (env->reply_to, "Reply-To");
> @@ -2191,6 +2192,7 @@ void mutt_unprepare_envelope (ENVELOPE *
>    /* back conversions */
>    rfc2047_decode_adrlist (env->to);
>    rfc2047_decode_adrlist (env->cc);
> +  rfc2047_decode_adrlist (env->bcc);
>    rfc2047_decode_adrlist (env->from);
>    rfc2047_decode_adrlist (env->reply_to);
>    rfc2047_decode (&env->subject);
> --- PATCHES   Tue Nov  6 19:59:33 2001
> +++ PATCHES   Tue Nov  6 19:59:42 2001
> @@ -1,0 +1 @@
> +patch-1.5.7.ab.2047_bcc.1


-- 
Thomas Roessler · Personal soap box at <http://log.does-not-exist.org/>.