procmail
[Top] [All Lists]

Re: Appending FROM: headers only to a local file

2008-09-15 12:43:26
On Mon, Sep 15, 2008 at 10:54:09AM -0500, David W. Tamkin wrote:

Dman suggested to Shane,

 :0 : file
 * conditions
 # in the brackets are a caret, space, and tab
 * ^From:.*\/[^      ].*
 | echo "$MATCH" >> file

I wouldn't use the file as its own lock.  It probably already exists.  
I'd leave the local lockfile unnamed and let it default to file$LOCKEXT  
instead:

Right you are.  Thanks, DAvid.

 :0: # in the brackets are a caret, a space, and a tab
 * conditions
 * ^From:.*\/[^       ].*
 | echo "$MATCH" >> file

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