> I use Maildir. I use maildrop for local delivery (from the courier
> package).

I'm running qmail + vpopmail, and I've just started playing with
maildrop...God, I love opensource!

Right now, I have maildrop looking for the "X-Spam-Flag: YES" header, and if
it sees it, put it in a sqwebmail folder, otherwise do a normal delivery.  I
see some nice features in your maildroprc that I'm going to play with :)

A quick question for you Charlie.  As I'm still learning maildrop's
filtering language, if I wanted to grab the score and the required hits,
would this work?

if (/^X-Spam-Status: *Yes, *hits=![:digit:]+ required=![:digit:]+.*/)
{
# do something here
}

If I understand the filtering language correctly, MATCH should contain
"X-Spam-Status: Yes, ", MATCH2 should have the number of hits, and MATCH3
the number of required hits.  If that's correct, could I nest another if
statement in there and do something like this?

if (($MATCH3 * 2) >= $MATCH2)
{
to Maildir/.SPAM
}

This would be a less agressive method - if the number of hits is 2x the
reguired hits (or greater), copy it to the webfolder, otherwise deliver it

Thoughts?

Dave



_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to