procmail
[Top] [All Lists]

Re: Procmail recipes

2000-12-13 11:56:09
John Malick wrote:
For example,

grab mail with the To: line reading "sunmanagers(_at_)sunmanagers(_dot_)org"
and send it to  
its own mail file.

    :0:
    * ^TOsunmanagers(_at_)sunmanagers(_dot_)org
    sunmanagers.list.file

or

    :0
    * ^TOsunmanagers(_at_)sunmanagers(_dot_)org
    sunmanagers.list.dir.random.filenames/

or 

    :0
    * ^TOsunmanagers(_at_)sunmanagers(_dot_)org
    sunmanagers.list.dir.mh-style.filenames/.

If your version of procmail supports it, "^TO_sunmanagers..." is a
little cleaner.  Alternately, if you are sure that "sunmanagers"
address is always on the "To:" line (not "cc:" or "apparently-to" or
"resent-to" etc) you can use

    :0 #add flags here if needed
    * ^To:(_dot_)*sunmanagers(_at_)sunmanagers(_dot_)org
    #etc
-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.
_______________________________________________
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>