Jiggling & Wiggling

2008/12/30

使用bogofilter过滤垃圾邮件

Filed under: 杂七杂八 — roylez @ 5:09 上午

终于无法忍受那些垃圾邮件了,又不喜欢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/

Advertisements

发表评论 »

还没有评论。

RSS feed for comments on this post. TrackBack URI

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

通过访问 WordPress.com 创建免费网站或博客.

%d 博主赞过: