Re: sa-learn problems and comprehension question

2010-11-10 Thread Matus UHLAR - fantomas
On Tue, 2010-11-09 at 22:57 -0800, Karl Meyer wrote: This is dangerous. With lots of mail in the (Maildir?) folder, shell expansion *quickly* will exceed the command line length limit. The trailing dot also looks bad. This is a good argument. I' ll think about that. The folder is a

Re: sa-learn problems and comprehension question

2010-11-10 Thread Martin Gregorie
On Tue, 2010-11-09 at 22:57 -0800, Karl Meyer wrote: This is dangerous. With lots of mail in the (Maildir?) folder, shell expansion *quickly* will exceed the command line length limit. The trailing dot also looks bad. This is a good argument. I' ll think about that. The folder is a cyrus

Re: sa-learn problems and comprehension question

2010-11-10 Thread Karsten Bräckelmann
On Tue, 2010-11-09 at 22:57 -0800, Karl Meyer wrote: --showdots /var/spool/imap/user/kmeyer/[0-9]*. amavis ^^^ This is dangerous. With lots of mail in the (Maildir?) folder, shell expansion *quickly* will exceed the command line length limit.

Re: sa-learn problems and comprehension question

2010-11-10 Thread Karsten Bräckelmann
find /var/spool/imap/user/kmeyer/ -name '[0-9]*.' -exec sa_learn {} \; which is a bit slower but avoids the command line overflow by running sa_learn on every matching file. A bit slower. Periodically re-learning the entire Inbox of 100+ users, spawning a full Perl process for every

Re: sa-learn problems and comprehension question

2010-11-10 Thread Karsten Bräckelmann
On Wed, 2010-11-10 at 08:56 +0100, Marcin Mirosław wrote: W dniu 2010-11-10 07:37, Karl Meyer pisze: But the 15 new messages weren't learnd yet. I had 10 messages in my inbox and run sa-learn on that folder. Then I got 15 different new messages and re-run sa-learn again. But it said that

Re: sa-learn problems and comprehension question

2010-11-10 Thread Martin Gregorie
On Wed, 2010-11-10 at 18:16 +0100, Karsten Bräckelmann wrote: find /var/spool/imap/user/kmeyer/ -name '[0-9]*.' -exec sa_learn {} \; which is a bit slower but avoids the command line overflow by running sa_learn on every matching file. A bit slower. Periodically re-learning the

Re: sa-learn problems and comprehension question

2010-11-10 Thread Karsten Bräckelmann
On Wed, 2010-11-10 at 17:48 +, Martin Gregorie wrote: On Wed, 2010-11-10 at 18:16 +0100, Karsten Bräckelmann wrote: find /var/spool/imap/user/kmeyer/ -name '[0-9]*.' -exec sa_learn {} \; which is a bit slower but avoids the command line overflow by running sa_learn on every

Re: sa-learn problems and comprehension question

2010-11-10 Thread Martin Gregorie
On Wed, 2010-11-10 at 19:01 +0100, Karsten Bräckelmann wrote: On Wed, 2010-11-10 at 17:48 +, Martin Gregorie wrote: On Wed, 2010-11-10 at 18:16 +0100, Karsten Bräckelmann wrote: find /var/spool/imap/user/kmeyer/ -name '[0-9]*.' -exec sa_learn {} \; which is a bit slower but

The Inbox problem (was: sa-learn problems and comprehension question)

2010-11-10 Thread Karsten Bräckelmann
On Wed, 2010-11-10 at 18:04 +0100, Karsten Bräckelmann wrote: On Tue, 2010-11-09 at 22:57 -0800, Karl Meyer wrote: Using the Inbox rather than a dedicated ham folder therefore is NOT a good idea. The problem is, that I can't persuade about 120 users to store all their ham below a

sa-learn problems and comprehension question

2010-11-09 Thread Karl Meyer
by sa-learn. Regards -- View this message in context: http://old.nabble.com/sa-learn-problems-and-comprehension-question-tp30172306p30172306.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: sa-learn problems and comprehension question

2010-11-09 Thread Marcin Mirosław
W dniu 09.11.2010 17:14, Karl Meyer pisze: Hi, I want to configure bayes learning and still having some problems and questions after reading several tutorials: I executed sa-learn for my inbox # su -c /usr/bin/sa-learn --dbpath /var/amavis/.spamassassin/bayes/ --ham --showdots

Re: sa-learn problems and comprehension question

2010-11-09 Thread Bowie Bailey
On 11/9/2010 11:16 AM, Marcin Mirosław wrote: W dniu 09.11.2010 17:14, Karl Meyer pisze: Hi, I want to configure bayes learning and still having some problems and questions after reading several tutorials: I executed sa-learn for my inbox # su -c /usr/bin/sa-learn --dbpath

Re: sa-learn problems and comprehension question

2010-11-09 Thread Karsten Bräckelmann
On Tue, 2010-11-09 at 08:14 -0800, Karl Meyer wrote: # su -c /usr/bin/sa-learn --dbpath /var/amavis/.spamassassin/bayes/ --ham The --dbpath option is bad. Despite its name, it is not a path, but a prefix. The sa-update man page states it is in bayes_path form, which is documented in the general

Re: sa-learn problems and comprehension question

2010-11-09 Thread Marcin Mirosław
W dniu 2010-11-09 17:24, Bowie Bailey pisze: If you learn a message as ham, it will not learn the same message as ham a second time (same with spam). However, you can change your mind and learn the message as spam. Bayes will forget what it learned the first time and re-learn the message.

Re: sa-learn problems and comprehension question

2010-11-09 Thread Karl Meyer
this message in context: http://old.nabble.com/sa-learn-problems-and-comprehension-question-tp30172306p30177999.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Re: sa-learn problems and comprehension question

2010-11-09 Thread Marcin Mirosław
W dniu 2010-11-10 07:37, Karl Meyer pisze: But the 15 new messages weren't learnd yet. I had 10 messages in my inbox and run sa-learn on that folder. Then I got 15 different new messages and re-run sa-learn again. But it said that it learned from 0 messages. Do you run SA from smtp server?