You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Matthew Bickerton <ma...@gmail.com> on 2007/02/27 11:59:32 UTC

Using sa-learn and fetchmail

Hi all,

As described in the SA wiki, I have set up fetchmail to read a mail folder
in to sa-learn. However I get the following error:

> /usr/local/bin/fetchmail -a -s -n --uidl --keep --folder LearnAsSpam -m
'/usr/local/bin/sa-learn --spam'
archive-iterator: invalid (undef) format in target list, 2 at
/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/ArchiveIterator.pm
line 724, <STDIN> line 1.
Learned tokens from 0 message(s) (1 message(s) examined)
>

If I try reading the mail box directly with :

> /usr/local/bin/sa-learn --spam --mbox $HOME/mail/LearnAsSpam
Learned tokens from 0 message(s) (2 message(s) examined)
>

It works fine.

I am using SpamAssassin version 3.1.8. Has anybody a suggestion?

Thanks 

Matthew


Re: Using sa-learn and fetchmail

Posted by Brian Wilson <wi...@bubba.org>.
On Feb 27, 2007, at 5:59 AM, Matthew Bickerton wrote:

> Hi all,
>
> As described in the SA wiki, I have set up fetchmail to read a mail  
> folder
> in to sa-learn. However I get the following error:
>
>> /usr/local/bin/fetchmail -a -s -n --uidl --keep --folder  
>> LearnAsSpam -m
> '/usr/local/bin/sa-learn --spam'
> archive-iterator: invalid (undef) format in target list, 2 at
> /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/ 
> ArchiveIterator.pm
> line 724, <STDIN> line 1.
> Learned tokens from 0 message(s) (1 message(s) examined)
>>
>
> If I try reading the mail box directly with :
>
>> /usr/local/bin/sa-learn --spam --mbox $HOME/mail/LearnAsSpam
> Learned tokens from 0 message(s) (2 message(s) examined)
>>
>
> It works fine.
>
> I am using SpamAssassin version 3.1.8. Has anybody a suggestion?
>
> Thanks
>
> Matthew
>

Bug and proposed patch here:  https://issues.apache.org/SpamAssassin/ 
show_bug.cgi?id=5336

The patch works fine for me.

-B