procmail
[Top] [All Lists]

Re: [HELP:] Save and execute

1996-04-12 10:02:30
Sergei Senin <ss(_at_)ee(_dot_)port(_dot_)ac(_dot_)uk> writes:
What I'm trying to do is 1)to save mail coming from a certain address 
xx(_at_)domain into a folder 2)to execute a programme: 
some_programme -infile yyy -outfile zzz, input file can't be read in any 
other way than as with an option keyword 'infile' (i.e, one can't cat and 
pipe it to 'some_programme')

# Matching on Return-Path: may be better.
:0 c:
* From: (_dot_)*xxx(_at_)domain
folder

# You probably need a local lockfile
:0 A:/tmp/lock.some_programme
|cat >/tmp/tmp.$$.; some_programme -infile /tmp/tmp.$$. -outfile whatever; \
        rm /tmp/tmp.$$.; \
        echo "Fix your stupid program" | Mail -s "bug report" 
support(_at_)whereever


Philip Guenther

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