procmail
[Top] [All Lists]

Interpreting the 'w' flag

2004-05-15 20:05:47
In the procmailrc man page it states:

   w    Wait  for  the  filter or program to finish and check its exitcode
        (normally ignored); if the filter is unsuccessful, then  the  text
        will not have been filtered.

I'm being a bit dense today.  Is this interpretation correct?

    "Filter is unsuccessful" means the exit status of the filter was
    non-zero and so procmail treats the message as having not been
    delivered.

For example, I have this recipe:

    :0 W: cksum.lock
    | pycksum -v $HOME/tmp/spam.cache

If pycksum exits with a 0 status procmail will consider the message
delivered, right?

Thanks,

-- 
Skip Montanaro
Got gigs? http://www.musi-cal.com/submit.html
Got spam? http://www.spambayes.org/
skip(_at_)pobox(_dot_)com

_______________________________________________
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>