procmail
[Top] [All Lists]

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

2004-10-27 11:08:32
How do I use 'procmail -m ...' ? 

Basically, I'm downloading just the headers from POP3 server, and I
would like to use Procmail recipes to test for spam.  Suppose, I have
file 'testforspam.rc' with recipes
    :0
    * ^Subject:.*viagra
    spam

1.  If I pipe a header with "viagra" subject,
        cat ... | procmail -m testforspam.rc
    it matches, and the content will be saved to file 'spam' just like
    normal delivery, and Procmail returns success (0).  Good.

2.  But, if I pipe non-"viagra" header, it falls off the end of recipes.
    Normally, Procmail will deliver it to my system mail box.  But, when
    I tried
        cat ... | procmail -m testforspam.rc
    it returns failure (73) without delivering to my system mail box.

This is the result I want.  But, is this how I use 'procmail -m ...'?

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