You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ha...@t-online.de on 2005/03/28 22:02:27 UTC

Re: pipe only if not spam...

Hi,

I do it about the other way round: my first qmail deliver attempt is this one.
The second half triggers if someone has tagged the mail as spam before (even if the
local SA would let it through)

Wolfgang Hamann

#!/bin/sh

if /usr/bin/spamc -c ; then
        exit 0
else
        exit 99
fi
if grep -s 'X-Spam-Flag: YES' ; then
        exit 99
fi
exit 0