procmail
[Top] [All Lists]

Re: Executing programs

1997-05-12 01:28:00
"Jordi" == Jordi Garcia Busquets <jordi(_at_)hades(_dot_)udg(_dot_)es> 
writes:

Jordi>  What about...

Jordi> :0 bc 
Jordi> | cat >>$HOME/filename && program_name $HOME/filename

You need a local lockfile on that one, in case two mails arrive at the
same time. Change the first line to:
:0bc:

procmail can figure out the file to lock because of the >> in the
action line.

Beware though, program_name will operate on all messages that have
been saved to the file. I'm not sure if that is what you want.


-- 
Guy Geens <ggeens(_at_)iname(_dot_)com>
Home Page: http://www.elis.rug.ac.be/~ggeens
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

<Prev in Thread] Current Thread [Next in Thread>