I've run into a problem with sa-learn. I'm running SA 3.0.1, and since the RPMs always seem to lag behind the binaries it's compiled. I call spamassassin using amavsd. I think the problem has arisen since upgrading my Mandrake system from 10.0 to 10.1, it looks like 10.1 uses Perl 5.8.5, I think 10.0 was on 5.8.3
when I try to sa-learn my ham/spam I get the following:
/usr/bin/sa-learn: /usr/bin/perl5.8.3: bad interpreter: No such file or directory
I've tried recompiling spamassassin but it seems to have made no difference. ISTR I ran into a similar problem when the SURBL stuff came out and it involved moving some files around somewhere in the /usr/lib/perl5/vendor_perl/5.8.* tree but I seem to have run out of talent in trying to figure it out ;-)
Any help appreciated.
Regards,
Bob
Bob,
what is the actual sa-learn command you're using? I ran into this using Maildir format by specifying sa-learn -D --spam /path/to/maildir/cur/*
and received "/usr/bin/sa-learn: /usr/bin/perl: bad interpreter: too many arguments" as an error. I found that doing "find /path/to/maildir/cur/ -name "*" -exec sa-learn --spam {} ¥;" mostly worked but had some unexpected results that make me think I didn't need to specify the "*" after my path. (although perl choked if i didn't)
this is on a system that I am running Perl 5.8.0 on (although it seems to be working now). I had maybe 1300+ mail files in the directory.
anyways, it seems to me like either the file you're telling it to read is either not there, or it's been moved while it was open.
hope this helps
alan