On Fri, 28 Dec 2012, Sean Tout wrote:
Hi John,
Per your response below, here is what I did to confirm it's not a content
problem.
open (RFILE, $reportfile_name);
while(!$folder_reader->end_of_file())
{
$email = $folder_reader->read_next_email();
chomp($email);
$mail = $spamtest->parse($email);
$status = $spamtest->check($mail);
print RFILE $$email;
}
then issued the following command:
spamassassin --test-mode < /home/stout/spam/reportfile_in.txt
the above worked just fine. the contents of reportfile_in.txt are created by
"print RFILE $$email".
Thoughts!
Unfortunately that's all I can recommend. I am not familiar with using the
SpamAssassin libraries directly from Perl. If I were in your situation I'd
do something hackish like system("spamc $RFILE") or an equally ugly shell
script... :)
Sorry.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Justice is justice, whereas "social justice" is code for one set
of rules for the rich, another for the poor; one set for whites,
another set for minorities; one set for straight men, another for
women and gays. In short, it's the opposite of actual justice.
-- Burt Prelutsky
-----------------------------------------------------------------------
211 days since the first successful private support mission to ISS (SpaceX)