All -

I have a pretty simple .procmailrc setup for my home mail server. Right now it looks like:

:0fw: spamassassin.lock
* < 256000
| spamc

:0:
* ^X-Spam-Flag:.*YES
spam

That dumps everything that is flagged as spam into my spam folder.

I want to delete any spam that scores over 10, though. I believe that I should insert a new rule between the first and second, and I want to use the X-Spam-Level header. But since it uses asterisks, which are interpreted as regex wildcards, I want to make sure I've got the right syntax. I think I would need to escape out the asterisks, right?

Would it look like this?

:0:
* ^X-Spam-Level:.*\*\*\*\*\*\*\*\*\*\*
/dev/null

I believe that would match 10 asterisks or more, and redirect the e-mail to /dev/null. Am I right?

Thanks!
Thomas

Reply via email to