Re: [Evolution] Spam Assassin Filter Help Needed



I am trying to move my email usage to Evolution from Kmail. I need some help 
to get Spamassassin working. In Kmail I used to filters to trap spam. One 
filter limited the email to a max of 250000 kb and piped the email through 
Spamassassin. The second filter checked the X-Spam-Flag and if it was set to 
Yes moved the mail to the Spam folder. I have been able to get the first 
filter written, but cannot figure out the second one. Can some one tell me 
how to get Spamassassin working in Evolution?

This is not possible using the filters.

The point is, you can pipe a whole message including headers to another
program, but there is no way Evolution will retrieve the changed message
-- what SA does and what you are trying to check with the X-Spam-Flag:
header. You can only pay attention to the return value of the program.


Use the filter mentioned by Tim and Bram to check return value.

To use the X-Spam-*: headers more fine grained, you will need procmail
as Dan mentioned. Don't forget about fetchmail then... ;)

...guenther


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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]