另一套 antispam 的軟體 – SpamBayes

最近在測 寫的 ,用了一下發現還蠻簡單的,而且速度不錯。(有可能是因為 ,而 4 的原因)

(mail/py-spambayes) 裝好後 sb_filter.py 就是最簡單的介面,加上 -h 可以看到說明,不加參數跟 -f 一樣,代表 filter,會在 header 加上 X-Spambayes-Classification,可以丟給 或是其他程式判斷。

其他的選項應該只會用到 -g (train as ham) 與 -s (train as spam),可以放到 .muttrc 裡面方便自己 train,有興趣的人可以玩看看:

macro index X "<pipe-entry>sb_filter.py -s > /dev/null\n<delete-message>" "mark as spam"
macro pager X "<pipe-entry>sb_filter.py -s > /dev/null\n<delete-message>" "mark as spam"
macro index Z "<pipe-entry>sb_filter.py -g > /dev/null\n" "mark as innocent"
macro pager Z "<pipe-entry>sb_filter.py -g > /dev/null\n" "mark as innocent"