> I have too many files to learn, so sa-learn craps out with "bad > interpreter: Too many arguments". I am invoking 2.60 like this: sa-learn > --spam -d /var/tmp/spam/*
Too many files in /var/tmp/spam which overflows the shell expansion > I used to invoke 2.54 like this: sa-learn --spam --dir /var/tmp/spam > What happened to the flag --dir ? That worked great in 2.54. Why does > 2.60 > lose this useful feature and make me have to write a stupid shell script > to > work around the new limitation? It *is* there in 2.60 [EMAIL PROTECTED] root]# sa-learn -V SpamAssassin version 2.60 [EMAIL PROTECTED] root]# cat /home/amavis/trainbayes #!/bin/bash echo "Learning Ham" sa-learn --no-rebuild --showdots --ham --dir /home/mail/amavis/maildir/.ham/cur/ echo "Learning Spam" sa-learn --no-rebuild --showdots --spam --dir /home/mail/amavis/maildir/.spam/cur/ echo "Rebuilding" sa-learn --rebuild It works for me - it learns the ham and spam from the maildirs I see from the man page that --dir is ignored but my script still works. I guess it now defaults to maildir format and you have to use --mbox to change that behaviour? -- Regards, +-----------------------------+---------------------------------+ | Peter Kiem .^. | E-Mail : <[EMAIL PROTECTED]> | | Zordah IT /V\ | Mobile : +61 0414 724 766 | | IT Consultancy & /( )\ | WWW : www.zordah.net | | Internet Services ^^-^^ | ICQ : "Zordah" 866661 | +-----------------------------+---------------------------------+ My current spamtrap address is [EMAIL PROTECTED] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk