Autor: Peter Velan Datum: To: exim users Betreff: Re: [exim] Save a mail and then execute a script
am 13.05.2008 12:09 schrieb Julien Balmont: > BTW, I'm afraid the file is saved only after the script is called.
> Is there a way to avoid this behaviour?
My transport looks like ...
script_transport:
driver = pipe
envelope_to_add
delivery_date_add
user = userxyz
group = groupxyz
command = /scriptpath/perlscript -para1=y -para2=y -para2=n - -
The essential part in my script: read piped message from STDIN and save
it in a file ...
open( MAIL, "> $filename" );
while( <> ) { print MAIL $_; }
close( MAIL );
Now I could do whatever I want on the stored copy of the message.
Do you rely on Exim to store the message or do you read the pipe?