[Dovecot] antispam-plugin 1.2 and trailing carriage-returns

Karsten Bräckelmann guenther at rudersport.de
Sun Oct 18 00:52:38 EEST 2009


*nudge*  Anyone? Since Timo seems to be on a list processing spree
lately, here's hoping. :)

On Tue, 2009-09-01 at 22:20 +0200, Karsten Bräckelmann wrote:
> Guys,
> 
> Dovecot 1.0.15 [1], just built the latest antispam-plugin 1.2 (tarball)
> for testing, mailtrain backend for SA integration. Both built from
> custom spec files.
> 
> The mail that is being trained is different than its respective source
> in the mbox file. The trained one shows added, trailing carriage-return
> chars for all headers, which are not in the headers in the mbox file.
> 
> This breaks sa-learn -- both these variations are different, and SA
> would learn *both* when run against each one separately.
> 
> How comes? Any insight? How could I fix this, other than wrapping the
> sa-learn inside another shell script and have sed strip off the noise?
> This becomes more of an issue, once I switch from sa-learn to the
> lightning-fast spamc training variant.
> 
> TIA
> 
>   guenther
> 
> 
> [1] Yes, I know, sorry. Don't want to change everything at the same
>     time, and the target system I'm experimenting for runs that version,
>     too.

-- 
char *t="\10pse\0r\0dtu\0. at 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; }}}



More information about the dovecot mailing list