From the Spamassassin man page :
-e, --exit-code Exit with a non-zero exit code if the
tested message was spam
... Perhaps spamc doesn't support that. I could swear I had it set up
like that before but that was several months ago...
With your script can I just
if (/^X-Spam-Flag:[:space:]*YES/)
to /dev/null
or have it drop out and not deliver the message at all?
Thanks much!@!
Jeremy Kitchen wrote:
On Thursday 25 March 2004 12:50 pm, Mitch Vincent wrote:
Shouldn't xfilter *not* deliver the message if the exit code of the
filter program is non-zero?
Who's to say it doesn't?
I'm using Spamassassin with it and thought I'd not get the message
delivered if it was marked SPAM.. Perhaps I misunderstood and am
confused as to how I had it set up previously..
I wasn't aware spamassassin/spamc had different exit codes if it marks a
message as spam or not. In fact, I'm almost positive it doesn't.
Here's the mailfilter file I use with spamc:
http://scriptkitchen.com/qmail/mailfilter