Re: Header reflow weirdness in 1.5.14
Try this...
% hg diff
diff -r f4d3704813fd sendlib.c
--- a/sendlib.c Tue Mar 13 10:58:34 2007 +0100
+++ b/sendlib.c Tue Mar 13 13:06:10 2007 +0100
@@ -1607,13 +1607,17 @@ int mutt_write_one_header (FILE *fp, con
if (cp[i+1] != ' ' && cp[i+1] != '\t')
first = 1;
+#if 0
if (first || !wrapped)
{
+#endif
k = i;
n = k + 1;
l = 1;
break;
+#if 0
}
+#endif
}
/* Eat the current character; cannot be '\0' */
(/home/roessler/mutt-hg/mutt-betterheaderwrap/)
On 2007-03-13 07:01:30 -0500, Matthew D. Fuller wrote:
> From: "Matthew D. Fuller" <fullermd@xxxxxxxxxxxxxxx>
> To: mutt-dev@xxxxxxxx
> Date: Tue, 13 Mar 2007 07:01:30 -0500
> Subject: Header reflow weirdness in 1.5.14
> X-Spam-Level:
> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000004, version=1.1.5
>
> 1.5.14 seems to do some odd reflowing of multi-line headers.
> SpamAssassin scores are a good example. I've got a message in a
> maildir; the raw file has (tabs->spaces via c&p):
>
> X-Spam-Report:
> * 1.1 EXTRA_MPART_TYPE Header has extraneous Content-type:...type=
> entry
> * 0.0 HTML_MESSAGE BODY: HTML included in message
> * 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60%
> * [score: 0.5011]
>
> which 1.4.2.2 shows just as given. 1.5.14, however, gives me:
>
> X-Spam-Report:
>
> * 1.1 EXTRA_MPART_TYPE Header has extraneous Content-type:...type=
>
> entry * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.0
> BAYES_50
> BODY: Bayesian spam probability is 40 to 60% * [score: 0.5011]
>
>
> which sure is harder to parse...
>
>
> --
> Matthew Fuller (MF4839) | fullermd@xxxxxxxxxxxxxxx
> Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
> On the Internet, nobody can hear you scream.
>
>
--
Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>