On Thu, Mar 20, 2003 at 07:41:37AM -0800, Tyler F. Creelan wrote:
:0:
* ! ? spamc -c
$TRASH
although this doesn't seem to work, that is, the condition tests
negative even when spamc returns a non-zero exit code. Any ideas? Is
it not possible to negate a "?" exit code condition?
In any case I think this would work instead:
:0c
| spamc -c
:0e:
$TRASH
or "spamassassin -Pe" (?) if you're not using spamc/spamd.
You probably need to list your spamd daemon explicitly.
This stuff should be in the list archives from a couple of months
ago. Here is what I use. Works fine:
:0 W # 030303 () this is an assignment recipe, not a delivering one
SA_OUT=| spamc -cd spamd
:0 e # 021223 () if exit status warrants, tag as spam
{ RX = SpamAssassin }
:0 E: # 030205 () check for possible spamc failure
* SA_OUT ?? ^^0/0^^
spamc_failure
Fwiw, I have never had a failure that triggered the last recipe. I keep
it in there just for grins.
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail