Re: [exim] Save a mail and then execute a script

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Julien Balmont
Date:  
À: Peter Velan
CC: exim users
Sujet: Re: [exim] Save a mail and then execute a script
Peter, you're my hero :)

Thanks !!!

On Tue, May 13, 2008 at 1:20 PM, Peter Velan <pv0001@???> wrote:

> 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?
>
> Cheers,
> Peter
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>