I've written a script that should parse emails sent to it by the .forward file. Problem is, it's not working. Can anyone tell what's wrong? It doesn't even print out the "got me an email" statement. The .foward file is |directorypath/file.pl.
#!/usr/freeware/bin/perl
use MIME:
arser;
my $subject1="Subject: EOS Data Gateway product request";
my $subject2="Subject: ECS Notification";
my $line;
print "got me an email\n";
my $parser=new MIME:
arser;
$parser->output_under("/tmp");
$parser->output_prefix("email");
eval {my $entity=$parser->parse(\*STDIN)};
if ($@)
{
$results=$parser->results;
$decapitated=$parser->last_head;
}
#!/usr/freeware/bin/perl
use MIME:
my $subject1="Subject: EOS Data Gateway product request";
my $subject2="Subject: ECS Notification";
my $line;
print "got me an email\n";
my $parser=new MIME:
$parser->output_under("/tmp");
$parser->output_prefix("email");
eval {my $entity=$parser->parse(\*STDIN)};
if ($@)
{
$results=$parser->results;
$decapitated=$parser->last_head;
}