Re: Bayes training via inotify (incron)

2014-08-24 Thread Eric Wong
Daniel Staal dst...@usa.net wrote: Good points, but inotify might still be overkill. `ls maildir/cur/ | grep ',.*S` will give you all messages that have been seen in the mailbox, so you can run on a periodic schedule fairly easily. I'm not sure whether you need the immediate notification

Re: [Spam] Re: Bayes training via inotify (incron)

2014-08-24 Thread Daniel Staal
--As of August 25, 2014 4:00:15 AM +, Eric Wong is alleged to have said: Daniel Staal dst...@usa.net wrote: Good points, but inotify might still be overkill. `ls maildir/cur/ | grep ',.*S` will give you all messages that have been seen in the mailbox, so you can run on a periodic schedule

Bayes training via inotify (incron)

2014-08-22 Thread Eric Wong
Hi all, I'm a happy SA user since around 2004/2005. Since 2008, I've been using Linux inotify (via incron) to do automatic Bayes training. Previously I did something similar using: find ... | spamc -L ... via cron. I also used to run several filters with SA (crm114+dspam), but since

Re: Bayes training via inotify (incron)

2014-08-22 Thread Ian Zimmerman
On Fri, 22 Aug 2014 08:34:34 +, Eric Wong e...@80x24.org wrote: Eric I always thought inotify was an obvious way to train for anybody Eric using Maildirs on Linux, so I set it up for my server and Eric basically forgot about it since it worked well. Fast forward to Eric 2014 and I realize

Re: Bayes training via inotify (incron)

2014-08-22 Thread Karsten Bräckelmann
On Fri, 2014-08-22 at 17:32 -0700, Ian Zimmerman wrote: Isn't inotify a bit of overkill for this? If you have a dedicated maildir for training, you know that anything in maildir/new is, uh, new. So you process it and move it to maildir/cur. What am I missing? The new/ directory is for

Re: Bayes training via inotify (incron)

2014-08-22 Thread Eric Wong
Ian Zimmerman i...@buug.org wrote: Eric Wong e...@80x24.org wrote: Eric I always thought inotify was an obvious way to train for anybody Eric using Maildirs on Linux, so I set it up for my server and Eric basically forgot about it since it worked well. Fast forward to Eric 2014 and I

Re: Bayes training via inotify (incron)

2014-08-22 Thread Daniel Staal
--As of August 23, 2014 3:22:13 AM +0200, Karsten Bräckelmann is alleged to have said: On Fri, 2014-08-22 at 17:32 -0700, Ian Zimmerman wrote: Isn't inotify a bit of overkill for this? If you have a dedicated maildir for training, you know that anything in maildir/new is, uh, new. So you