> i am filtering mails with spamassassin & procmail.

> 10 or more --> directory 10
> 9 --> directory 9
> 
> and so one....
> 
> But - nothing happens - the mails are all in the /Maildir/new directory

Given your last recipe, Maildir/new isn't a directory but an mbox
formatted file. Was that a straight, unaltered copy-n-paste, or did you
modify it for the post?


> :0:
> * ^X-Spam-Level: .*\(\*\*\*\*\*\*\*\*\*\*
> Maildir/10/new

Summarizing the previous posts, all excellent advice and pointing out a
single issue:

* Are you really sure you want to do that? That's a massive amount of
folders to look at, and really not worth it. Almost all of the spam is
likely to end up in the single "score 10 or above" folder anyway...

* The RE is broken. You do not want the greedy matching .* at the
beginning of the series of asterisks. And the literal escaped \(
parenthesis doesn't exist in that header. Did you have a look at the
sample procmail recipes provided by SA?

* Your Maildir named folder is not in Maildir format. At least not,
given that procmail delivery line. It will use "new" as an mbox
formatted *file*.


> :0:
> * ^X-Spam-Level: .*\(\*\*\*\*\*\*\*\*\*
> X-Spam-Level: *******
> Maildir/9/new

Oh, and this one won't work anyway and doesn't even parse procmail
syntax...


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

Reply via email to