Hi John, Thank you much for the help. I have been trying to avoid executing spamassassin shell commands from perl since it takes a significant amount of time~=12 seconds for each email. I have tried the below script, which works but of course not in a favorable especially for processing 20,000+ emails in spfiles folder.
@files = </home/sean/code/spam/spfiles/*>; my $outfile = '>>mailrep_out.txt'; open (MYFILE, $outfile); foreach $file (@files) { $cmd = "spamassassin --test-mode < ".$file." >>mail_out.txt"; system ($cmd); } close(MYFILE); Regards, -Sean. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/Spamassassin-not-parsing-email-messages-tp102770p102791.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.