bogofilter

Mail filter using statistical analysis to detect spam

brewmacoslinux
Try with needOr install directly
Source

About

Mail filter via statistical analysis

Commands

bogofilterbogoupgradebogolexerbogotune

Examples

Classify an email as spam$ bogofilter -s < email.txt
Classify an email as ham (legitimate)$ bogofilter -n < email.txt
Test email and get spam probability score$ bogofilter -p < email.txt