spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karsten Bräckelmann <guent...@rudersport.de>
Subject Re: How to create a rule that tests the raw html when encoded in base64, but which ignores line breaks?
Date Sun, 28 Feb 2010 17:28:46 GMT
On Sun, 2010-02-28 at 18:23 +0100, Benny Pedersen wrote:
> On søn 28 feb 2010 18:00:13 CET, Mark London wrote
> 
> > Hi - I created a FULL rule that works fine with html in plain text.   
> > However, if the html is base64 encoded, FULL rules don't appear to  
> > work.  A RAWBODY rule doesn't work either, because it doesn't ignore  
> > line breaks.  Any ideas?
> 
> ripmime -i msg -d .
> 
> there you have the base64 decoded msg now in current dir

/me double checks the List-ID

And this helps how exactly with SA and its rules?


-- 
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;
}}}


Mime
View raw message