Re: sa-learn and find

2014-08-30 Thread LuKreme
> On 30 Aug 2014, at 15:32 , RW wrote: > > On Sat, 30 Aug 2014 08:23:02 -0600 > LuKreme wrote: > >> if test -d "$J_PATH"; then >>MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` > > mtime may not be the best choice. Ideally what you want is the the time > since the spam was moved

Re: SA works great!

2014-08-30 Thread Ted Mittelstaedt
Yes, it does work great when you have the bayes filter turned on and you take the time to feed it. And that means you have to feed the learner both ham and spam and setup reliable sources for those. Unfortunately if Bayes is not turned on, it does not catch more than around 60-70% of spam. A

SA works great!

2014-08-30 Thread Reindl Harald
after two days running SA for the first two test-domains with a well trained bayes for the global milter-user: impressive! the few crap making it through poscreen RBL scroing is detected 0.000 0 3 0 non-token data: bayes db version 0.000 0 1389

Re: sa-learn and find

2014-08-30 Thread RW
On Sat, 30 Aug 2014 08:23:02 -0600 LuKreme wrote: > if test -d "$J_PATH"; then > MYFIND=`find $J_PATH/ -type f -mtime -7|grep -v dovecot` mtime may not be the best choice. Ideally what you want is the the time since the spam was moved to Junk, rather than the time since it was delivered. Wh

Re: sa-learn and find

2014-08-30 Thread LuKreme
On 30 Aug 2014, at 07:49 , LuKreme wrote: > MYFIND= `find $H_PATH/cur -type f -mtime -7` > if [ -n $MYFIND ]; then > /usr/local/bin/sa-learn --ham -u ${i} $MYFIND > fi Doh! if [ -n “$MYFIND” ]; then or if test -n “$MYFIND”; then Sigh. Feeling extra stupid this Saturday morning. It wor

sa-learn and find

2014-08-30 Thread LuKreme
The following command seems to get stuck if there is no result from the find. Any suggestions on how to avoid passing an empty find result to spamd? sa-learn --ham -u ${i} `find /home/${i}/Maildir/.notspam -type f -mtime -7` (where user $i has no emails in notspam that are new in the last 7 day

Re: Give a penalty to messages with non latin UTF-8 characters?

2014-08-30 Thread LuKreme
On 29 Aug 2014, at 20:52 , jdebert wrote: > On Fri, 29 Aug 2014 11:41:48 +0200 Michael Opdenacker > wrote: >> I find it hard to believe I'm the only one getting spam in Chinese >> characters ;) > > And "legitimate" messages as well. (Here, at least.) BLocking merely > messages have more than ju