[Exim] transport_filter.pl

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Szabo Laszlo
Datum:  
To: exim-users
Betreff: [Exim] transport_filter.pl
Hi,

Can I write an ordenary file when I running a perl script as transport_filter
for remote_smtp and address_pipe transports?
- the file is writeable by exim user,
- the script can write it from shell (as exim user)
It is a limitation?

=== cut === a draft ===
#!/usr/bin/perl
$/="";
chomp($headers = <STDIN>);
$/='\n";
open(OUT, ">>/somewhere/afile");
printf(STDOUT "%s\n\n", $headers);
printf(OUT "%s\n\n", $headers);
while(<STDIN>) {
chomp;
printf(STDOUT "%s\n", $_);
printf(OUT "%s\n", $_);
}
close(OUT);
=== cut ===

Many thanks,
    Laszlo Szabo