On Thu, 2009-04-16 at 15:52 -0700, Evan Platt wrote:
> At 03:48 PM 4/16/2009, an anonymous Nabble user wrote:
> > How to force SpamAssassin to filter messages on the subject?
> > Much of the spam to me is in the subject: 100%, %%%
>
> Spamassassin doesn't 'filter'.
While that's certainly true and SA does not filter in the "sorting"
sense of an MDA, it yet actually *is* a filter itself. Sorry, end of
nit-pick. ;)
> But in SpamAssassin, you can do is create a custom rule based on the subject.
Of course, and creating multiple, moderately scoring rules for
particular patterns is the SA way.
The OP kind of seems to be a request for "dumping mail based on bare-
words", though. Which is not what SA stands for, and indeed usually is
quite a bad idea.
Kind of wonder what the problem actually is. Spam with such a Subject
hardly ever scores below 15 here. I guess it's a mis-configuration or
disabled network tests. So the real solution is not a poison-pill
(that's how I read the word "force"), but fixing the problem.
--
char *t="\10pse\0r\0dtu...@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; }}}