procmail
[Top] [All Lists]

Re: Procmail + spamassassin

2003-03-20 10:07:06
On Thu, Mar 20, 2003 at 08:34:59AM -0800, Tyler F. Creelan wrote:
On Mar 20 at 11:05am -0500, Matt Dunford wrote:
|
| I used to use something like this, tho I can't remember the exact recipe
| now:
|
| :0:
| * ! ? $SPAMASSASSIN -e
| spam
|

Hmm, that is what I am trying (with $ prefix), but the condition tests
negative even when spamassassin returns a non-zero exitcode. Here is
what I get in my log:

procmail: Executing "spamassassin,-e"
procmail: [15264] Thu Mar 20 08:19:13 2003
procmail: No match on ! "spamassassin -e"

on this recipe:

SPAMT="spamassassin -e"
:0
* $ ! ? $SPAMT
{
# actions omitted
}

Any ideas what is wrong? Perhaps the condition is being treated as a
normal matching condition, that is, the string "spamassassin -e", is
being grepped for, instead of being executing as an action?

Sorry, I don't have the recipe anymore.  I was just guessing at it.  Try
Dalman's posting.  It looks more correct.

:0:
* BH ! ?? ? $SPAMASSASSIN -e
spam

-- 
- Matt Dunford <> zoot(_at_)zotikos(_dot_)com ..
-. www.zotikos.com -- o,;-
        
Brodie: Hell hath no fury like a woman scorned for Sega.
  -- "Mallrats"
--

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>