procmail
[Top] [All Lists]

Re: Appending FROM: headers only to a local file

2008-09-15 11:58:02
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:

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

____________________________________________________________
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