SA Bugzilla – Bug 5336
[review] sa-learn issues warning if called without a target
Last modified: 2007-06-18 14:47:31 UTC
if sa-learn is called without a target (e.g. for stdin input), the message is warned: archive-iterator: invalid (undef) format in target list, 2 at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/ArchiveIterator.pm line 727, <STDIN> line 1. A simple solution right now is to specify '-' as the target when using stdin. OBS: 3.1.8 is not available in bugzilla yet.
(In reply to comment #0) > archive-iterator: invalid (undef) format in target list, 2 > at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/ArchiveIterator.pm > line 727, <STDIN> line 1. > > A simple solution right now is to specify '-' as the target when using stdin. I have a patch, will be up shortly. Can't believe no one caught this in testing. <sigh> > OBS: 3.1.8 is not available in bugzilla yet. there is now. :)
Created attachment 3866 [details] suggested patch
Same problem on FreeBSD with the last version from ports (p5-Mail-SpamAssassin-3.1.8/)
(In reply to comment #2) > Created an attachment (id=3866) [edit] > suggested patch > Your patch works for me. I just tested it on about 100 spams and had no errors. Thank you very much! Olivier Brisson
+1 Works for me.
+1 btw I suggest a test suite might be a good idea....
*** Bug 5363 has been marked as a duplicate of this bug. ***
committed, finally: Sending sa-learn.raw Transmitting file data . Committed revision 546181.
this was actually resolved post-3.1.9 tarball, so it's really 3.1.10. :(