Jiggling & Wiggling

December 30, 2008

使用bogofilter过滤垃圾邮件

Filed under: 杂七杂八 — roylez @ 5:09 am

终于无法忍受那些垃圾邮件了,又不喜欢SA,crm114没有搞定,然后就挑了跟crm114原理上来说一样的bogofilter。

首先当然是pacman.

sudo pacman -S bogofilter

加入.procmailrc


:0fw
| bogofilter -u -e -p

:0:
* ^X-Bogosity: Yes.*
spam/

加入.muttrc

macro index S "|bogofilter -s\n=spam/\n" "Learn as spam and save to junk"
macro pager S "|bogofilter -s\n=spam/\n" "Learn as spam and save to junk"
macro index H "|bogofilter -n\n=inbox/\n" "Learn as ham and save"
macro pager H "|bogofilter -n\n=inbox/\n" "Learn as ham and save"

恩,还有必要先利用已经有的邮件训练一下。

bogofilter -s -B spam-Maildir/
bogofilter -n -B ham-Maildir/

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.