Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Spamassassin bayesian filter - specifying the right dir?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Nicolinux
Apprentice
Apprentice


Joined: 22 Dec 2002
Posts: 204

PostPosted: Thu Oct 21, 2004 10:07 pm    Post subject: Spamassassin bayesian filter - specifying the right dir? Reply with quote

Hi,

I have spamassassing installed and like to use the bayesian filtering. Training the filter is required (per cron) but I don't know how "sa-learn" sees my mails. The mails are in the maildir format in "/home/stefan/.maildir/.SPAM"

Doing the following does not catch the spam mails - instead it gets the other files (from courrier-imap) there:

Code:

# sa-learn --dir --spam /home/stefan/.maildir/.SPAM/
Learned from 1 message(s) (3 message(s) examined).


However if I use the following it seems right:
Code:

# sa-learn --dir --spam /home/stefan/.maildir/.SPAM/cur/
Learned from 703 message(s) (744 message(s) examined).


But new mails would arrive in ".../.SPAM/new". Do I have to use 2 crontab entryes for these "cur" and "new"?

Thanks much

Stefan
Back to top
View user's profile Send private message
bin-doph
Guru
Guru


Joined: 23 May 2003
Posts: 302

PostPosted: Fri Oct 22, 2004 9:00 am    Post subject: Reply with quote

why don't u write a script that moves everything from new to cur first and then run's sa-learn. or start in the SPAM dir and do a find and pipe the filenames to sa-learn or something. Shouldn't be that difficult
_________________
perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
Back to top
View user's profile Send private message
Nicolinux
Apprentice
Apprentice


Joined: 22 Dec 2002
Posts: 204

PostPosted: Fri Oct 22, 2004 6:07 pm    Post subject: Reply with quote

Sure this is easy. But I don't know much about the maildir structure - didn't want to mess with cur, new, tmp.

Stefan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum