procmail
[Top] [All Lists]

Re: Using 'procmail -m ...' (question)

2004-10-28 13:49:20
On Thu, Oct 28, 2004 at 09:52:27PM +0200, Ruud H.G. van Tol wrote:
Toen wij William Park kietelden, kwam er dit uit:

    if cat ... | procmail -f - testforspam.rc; then

Why the cat-skin?

     if procmail -f- testforspam.rc < ... ; then

It was only for illustration.  In reality, it would be a string
variable, because I will be reading from POP server.  So, it's more like
    echo ... | procmail ...

    :0
    * EXITCODE ?? 0
    spam

That would also deliver to spam if EXITCODE is 10.
And it misses locking.

My God, I totally forget that it's regex matching.  Thanks Ruud.  Since
I set EXITCODE=1 at the top, it would be either '1' or '0'.  So, I'm
okey on that.  

-- 
William Park <opengeometry(_at_)yahoo(_dot_)ca>
Open Geometry Consulting, Toronto, Canada

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail