[prev in list] [next in list] [prev in thread] [next in thread]
List: spamassassin-users
Subject: Re: Consecutive Newlines in Rawbody Rules
From: Karsten =?ISO-8859-1?Q?Br=E4ckelmann?= <guenther () rudersport ! de>
Date: 2014-05-22 23:37:37
Message-ID: 1400801857.4835.86.camel () monkey
[Download RAW message or body]
On Thu, 2014-05-22 at 17:43 -0500, David B Funk wrote:
> On Thu, 22 May 2014, Karsten Bräckelmann wrote:
> > Any number up to 11 of consecutive newlines can be matched with rawbody
> > rules. However, 12 or more consecutive newlines will be squeezed and
> > replaced by exactly two newlines.
> > I've had a quick look at the code already, but did not yet find where
> > the supposedly raw (sic) body gets altered.
>
> Look at Message.pm, around line 300:
Thanks, good catch!
> # if we've got a series of blank lines, get rid of them
> if (defined $start) {
> my $num = $start-$cnt;
> if ($num > 10) {
> splice @message, $cnt+2, $num-1;
> }
10 empty lines, 11 consecutive newlines.
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic