[Linux-disciples] spam assassin/procmailrc
Adam Rosi-Kessel
adam at rosi-kessel.org
Tue Apr 11 14:48:28 EDT 2006
Jamie Forrest wrote:
> Will the following lines in .procmailrc correctly vaporize spams that
> rate higher than 10 points in SpamAssassin?
> :0
> * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
> /dev/null
It depends on what else is in your .procmailrc. procmail stops at the first
line that matches. So, the following would (1) vaporize spams >= 10 SA
points and (2) file spams >= 5 SA points into a folder called 'spamfolder',
assuming you are using maildirs to store your mail:
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
:0
* ^X-Spam-Level: \*\*\*\*\*
.spamfolder/
The following, however, would just file *everything* into 'spamfolder':
:0
* ^X-Spam-Level: \*\*\*\*\*
.spamfolder/
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null
This is because the first rule would match emails with at least 5 points
(including those with 10 points) and file the message away; the second rule
would never be reached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060411/380f30dc/signature.pgp
More information about the Linux-disciples
mailing list