Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Excellent mail filter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
line72
Apprentice
Apprentice


Joined: 13 Jun 2002
Posts: 212

PostPosted: Wed Jul 21, 2004 7:19 pm    Post subject: Excellent mail filter Reply with quote

I found this really cool program that automatically filters your email into folders for you! It uses a similar technique to spam filters, but instead of determining if an email is spam, it decides which folder it should be placed in! My .procmailrc used to be 100+ lines long and is now only < 10.

The program is called autofiler:
http://wwwhome.cs.utwente.nl/~vrijkort/autofiler/

It's not in portage yet, and It needs a couple perl modules which can easily be installed using cpan. Once it is installed, run:

af_build_database MAILDIR_DIRECTORY

This will build the database for filtering. **Warning, if you have a lot of messages, you may want to add the --maxmessages flag and limit it to < 5000.

Once the database is built, add this to your .procmailrc file:

MAILDIR=$HOME/.maildir

######################3##
### send everything ###
### else to autofiler ###
#########################
:0
|/usr/bin/af_deliver_message --verbose 3 $MAILDIR

I have a cronjob setup to run af_build_database everynight so that If i create a new folder and move messages to it, it's automatically picked up the next day.

Enjoy
/Line72
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum