10-Oct-2009 числа в 15:01 часов, ты написал(а) следующее:

> Could someone please point me to some documentation, or give me some
> ideas on how I can set up a good spam filter that will:
> 1. Move spam to a folder titled junk
> 
> What spam filters do others here use?
> 
> I'm using fetchmail to fetch my mail, and procmail as my mta. I of course
> use mutt as my client, and if it's important, I use msmtp to send.

Install bogofilter, then add in following strings
In ~/.procmail

LOGABSTRACT=on
VERBOSE=no
BOGOFILTER="/usr/local/bin/bogofilter"
BOGOFILTER_DIR="/home/your_home_dir/bogofilter"

# Bogofilter
:0fw
| bogofilter -u -e -p

:0e
{ EXITCODE=75 HOST }

:0:
* ^X-Bogosity: Spam, tests=bogofilter
$MAILDIR/spam

:0:
* ^X-Bogosity: Unsure, tests=bogofilter
$MAILDIR/spam_unsure
# /Bogofilter

SPAM will be moved to 'spam' or 'spam_unsure' mbox.

First time you need to train bogofilter. Following strings you should
add in to ~/.muttrc:

macro index,pager S "|/usr/local/bin/bogofilter -s\ns=spam" #"Learn as
spam and save to junk"

macro index,pager H "|/usr/local/bin/bogofilter -n\ns=" #"Learn as ham
and save"

-- 
/Buzzer         () кампания ascii ribbon - против писем в html формате
                /\ www.asciiribbon.org   - против проприетарных вложений


Reply via email to