[TriLUG] Procmail recipe question

Tanner Lovelace lovelace at wayfarer.org
Thu Feb 12 20:22:56 EST 2004


davis wrote:

> Hello
> 
> It took me a while to test it, since I don't normally
> scan on the asterisks meter but here is how you can do it:
> 
> 
> 
> :0fw
> | spamc
> 
> :0:
> * ^X-Spam-Level: \*\*\*\*
> maybe-spam
> 
> :0:
> * ^X-Spam-Level: \*\*\*\*\*\*\*
> spam


Note, btw, that your second rule will *never* be called.
The first rule matches both.  If you want both rules
to work, put the more specific one first (that's the
6 asterisks) so it will match, handle that e-mail,
and the the mail that is still around will be handled
by the second rule because procmail handles rules in
order.

Cheers,
Tanner



More information about the TriLUG mailing list