Hi,

On Mon, Jun 10, 2013 at 8:40 PM, David B Funk
<dbf...@engineering.uiowa.edu> wrote:
> On Mon, 10 Jun 2013, Alex wrote:
>
>> Hi Kris,
>>
>> I'm trying to get your extract-data script running, and having some
>> difficulties. It's dying at the $spamtest->check($mail) call. It just
>> never returns. What does that function do?
>>
>> MSG: for (my $i=0; $i<$msgcount; $i++) {
>>  my $msg = $imap->message_string($msgs[$i]);
>>
>>  print ".";
>>
>>  my $mail = $spamtest->parse($msg);
>>  my $status = $spamtest->check($mail);
>>
>> My perl scripting abilities are somewhat limited, so I hoped you could
>> help me troubleshoot this. I can print out $mail and it contains the
>> full contents of the current message (there's only one in my imap mbox
>> test file).
>>
>> Ideas greatly appreciated.
>> Thanks,
>> Alex
>
> Alex, you do understand that script assumes you've got a full & properly
> configured installation of SA available on the machine you're running it on.

Yes, I'm sorry, I should have made it more clear that I understood
that. It correctly instantiates the new SA instance:

my $spamtest = Mail::SpamAssassin->new();

then logs in, opens the mbox folder, reads it in, then just sits there
with the check($mail) function, which must be deep enough in the SA
code that I'm not familiar with it and hoped someone had some ideas.

This is for v3.3.2. I thought Kris was using this script regularly,
and I have a production implementation of SA on this box, so I don't
understand why it would be failing here.

Thanks,
Alex

Reply via email to