On Friday 19 Nov 2004 08:29, alan premselaar wrote:

>    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/*

I use one script to move the mails out of my mail directory tree into my 
ham/spam folders:
/var/lib/amavis/.spamassassin/newham
/var/lib/amavis/.spamassassin/newspam

I then use another script (called as user amavis) which learns the mails them 
moves them into the folderwhere I keep al my learned Ham/Spam. This was 
working fine until the update frmo Mandrake 10.0 to 10.1
The commands the script runs are:
sa-learn --ham --showdots /var/lib/amavis/.spamassassin/newham/
sa-learn --spam --showdots /var/lib/amavis/.spamassassin/newspam/

I then get:
./learn: /usr/bin/sa-learn: /usr/bin/perl5.8.3: bad interpreter: No such file 
or directory
./learn: /usr/bin/sa-learn: /usr/bin/perl5.8.3: bad interpreter: No such file 
or directory


> 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)

I've tried manually calling sa-learn and get the same error, if I cd into me 
HamMails directory and type sa-learn --ham *.* I get:
bash: /usr/bin/sa-learn: /usr/bin/perl5.8.3: bad interpreter: No such file or 
directory

Still puzzled ...

Bob

Reply via email to