finkでbogofilterをインストールしてスパムを隔離してみる。
参考は
Kuro-san更新日記(ちょっと古いか)
finkにbsfilterがあれば良かったんだけど。
.fetchmail
----------------------
defaults
proto pop3
sslproto ""
keep
no mimedecode
mda "/sw/bin/procmail"
poll mole.rc.kyushu-u.ac.jp
user "*******"
password "********"
.procmailrc
----------------------
PATH=/sw/bin
MAILDIR=/Users/*******/Mail
DEFAULT=$MAILDIR/inbox/.
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=/Users/*******/.lockmail
:0 HB
* ? nkf -m -e | kakasi -w | bogofilter
newspam/.
:0:
inbox/.
.emacs
----------------------
;; mew
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
;; fetchmail
(defun fetchmail ()
(interactive)
(shell-command "LANG=C fetchmail"))
.mew.el
----------------------
(setq mew-name "***************")
(setq mew-user "*******")
(setq mew-mail-domain "mole.rc.kyushu-u.ac.jp")
(setq mew-smtp-server "mole.rc.kyushu-u.ac.jp")
(setq mew-mailbox-type 'mbox)
(setq mew-mbox-command "incm")
(setq mew-mbox-command-arg "-d /Users/*******/Mail")
(setq mew-use-unread-mark t)
(setq mew-delete-unread-mark-by-mark nil)
(require 'mew-w3m)
のように書き換え。
***にはユーザー名とかパスワードとか。
その後、trash、inboxの中のをbogofilterに登録
find Mail/trash -type f -exec sh -c 'cat {} | nkf -m -e | kakasi -w | bogofilter -s' ';'
find Mail/inbox -type f -exec sh -c 'cat {} | nkf -m -e | kakasi -w | bogofilter -n' ';'
ちゃんと動いている模様。