3 # captures command line arguments so you can validate
4 # what is being generated in sendmailpipe
9 die "No \$RT_MAILLOGFILE set in environment"
10 unless $ENV{RT_MAILLOGFILE};
11 open LOG, ">", $ENV{RT_MAILLOGFILE}
12 or die "Can't write to $ENV{RT_MAILLOGFILE}: $!";
17 print LOG "\n" if $needs_newline++;