Hello:
 
I have xmail 0.74 red hat 7.1
 
my email [EMAIL PROTECTED]  is used for this test
 
The file: juamgzt\@iux.cl.tab" in the filter directory of XMAIL. This file contains the following line:
 
"/var/MailRoot/filters/tagger.pl" "@@FILE" "[TEST]"
 
 
this the script tagger.pl:
 
#!/usr/bin/perl
 
$file = $ARGV[0];
$tag = $ARGV[1];
 
open(IN, $file);
binmode(IN);
@mail = <IN>;
close(IN);
$mail = join "", @mail;
 
$mail =~ s/Subject:\s/Subject: $tag /is;
open(OUT, ">$file");
binmode(OUT);
print OUT $mail;
close(OUT);
 
exit 100;

Reply via email to