View previous topic :: View next topic |
Author |
Message |
Nicolinux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/6054821313e6232494c94c.jpg)
Joined: 22 Dec 2002 Posts: 204
|
Posted: Thu Oct 21, 2004 10:07 pm Post subject: Spamassassin bayesian filter - specifying the right dir? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bin-doph Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/19876762173f66421e4e903.gif)
Joined: 23 May 2003 Posts: 302
|
Posted: Fri Oct 22, 2004 9:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Nicolinux Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/6054821313e6232494c94c.jpg)
Joined: 22 Dec 2002 Posts: 204
|
Posted: Fri Oct 22, 2004 6:07 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|