Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167515 - mail-filter/spamassassin-3.1.8 error in sa-learn
Summary: mail-filter/spamassassin-3.1.8 error in sa-learn
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 127459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-18 19:27 UTC by Arthur Hagen
Modified: 2007-04-15 11:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Hagen 2007-02-18 19:27:19 UTC
piping an email to sa-learn --spam now returns:
archive-iterator: invalid (undef) format in target list, 2 at /usr/lib/perl5/ven
dor_perl/5.8.8/Mail/SpamAssassin/ArchiveIterator.pm line 724, <STDIN> line 1.

Worked fine yesterday with 3.1.3

Reproducible: Always

Steps to Reproduce:
cat singlemail | sa-learn --spam
(or "[|] [CTRL-W] sa-learn --spam" in pine)

Actual Results:  
archive-iterator: invalid (undef) format in target list, 2 at /usr/lib/perl5/ven
dor_perl/5.8.8/Mail/SpamAssassin/ArchiveIterator.pm line 724, <STDIN> line 1.
Learned tokens from 1 message(s) (1 message(s) examined)


Expected Results:  
Learned tokens from 1 message(s) (1 message(s) examined)
Comment 1 Arthur Hagen 2007-02-18 20:53:51 UTC
Testing further shows that this is a problem with the autodetect.  If specifying - (for stdin), it works.  If relying on autodetecting the input stream, it no longer does.
Comment 2 bugzilla 2007-02-19 11:14:51 UTC
I see the same message from sa-learn since upgrading SpamAssassin from 3.1.3 to 3.1.8.
Arthur's workaround of explicitly adding "-" to sa-learn's command line helps in my case too.
Comment 3 Adam Piątyszek 2007-02-20 07:31:44 UTC
This problem is already reported to upstream and the patch is ready:
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5336

/ediap
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2007-02-25 12:39:09 UTC
Fixed in 3.1.8-r1.
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2007-04-15 11:54:21 UTC
*** Bug 127459 has been marked as a duplicate of this bug. ***