[Exim] transport_filter.pl

Pàgina inicial
Delete this message
Reply to this message
Autor: Szabo Laszlo
Data:  
A: exim-users
Assumpte: [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