line72 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 13 Jun 2002 Posts: 212
|
Posted: Wed Jul 21, 2004 7:19 pm Post subject: Excellent mail filter |
|
|
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 |
|