bogofilter

Filter spam emails using statistical analysis and machine learning.

brewmacoslinux
Try with needOr install directly
Source

About

Mail filter via statistical analysis

Commands

bogofilterbogoutilbogoupdate

Examples

train spam filter on spam emails in a folder$ bogofilter -s -I /path/to/spam/folder
train spam filter on legitimate emails$ bogofilter -n -I /path/to/ham/folder
check if an email is spam$ bogofilter < email.txt
integrate spam filter with mail client automatically$ bogofilter -p < incoming_email.txt
view spam filter statistics and database info$ bogoutil -d ~/.bogofilter/wordlist.db