Re: Exim, Cyrus, Mutt + what?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, Mar 14, 2004 at 06:21:33PM +0000, steve downes wrote:
> Very happy with it but want to add an auto mail sort to pre sort
> mailing lists out from work mail into other boxes to read at my
> leisure. Also a bit of spam sorting would not go amiss.
procmail and spamassassin are your friends. Here's some key bits from
my .procmailrc
#
# Paul Johnson's procmail filters.
#
# This is how I do things...I've adapted my MTA to give some extra
# hooks, like rejecting virus-infected mail at SMTP-time, and tying
# in spammassassin, in case you run along a header not normally found.
#
DEFAULT=/var/mail/baloo
VERBOSE=off
# need not be on when not debugging
MAILDIR=/home/baloo/Mail/
# for procmail logs
#LOGFILE=/home/baloo/.procmaillog
######################################################################
#
# HTML translation
#
# I use Mutt for my MUA. However, not everybody else seems to be
# bright enough to use a real MUA, so we have to fix that.
:0
* ^Content-Type: *text/html
{
:0 bfw
| /usr/bin/lynx -dump -localhost -stdin | formail -f -I Content-Length:
:0 fw
| formail -f -I "Content-Type: text/plain"
}
######################################################################
# Spam
:0:
* ^X-Spam-Status:.Yes*
bit-bucket
##############################
# Dynamic Mail filters
# The following set of rules use the matching ability of procmail to
# dynamically filter mail based on parsing one of the possible
# mailing list headers. This means you can subscribe to new mailing
# lists without having to add lines to your procmail filters. Very
# Good Thing (tm).
# I have no idea where I found this at this point, but
# Mr. Poster of the Procmail Magic, wherever you are, we salute you.
# Used by the perl6-all list to break out into seperate mailboxes
:0:
* ^X-Mailing-List-Name: \/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
# Majordomo uses Sender header to tell when it is coming from
:0:
* ^Sender: owner-\/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^Delivered-To: mailing list \/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^X-Mailing-List: <\/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^X-Loop: \/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^X-List-ID: <\/[^@\.]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^X-list: \/[^@\.]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
:0:
* ^X-BeenThere: \/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`
- --
.''`. Paul Johnson <baloo@ursine.ca>
: :' :
`. `'` proud Debian admin and user
`- Debian. Because it *must* work. debian.org aboutdebian.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAVP4fUzgNqloQMwcRArGsAJ0XUXA0wCpvjFz1PHp3+Ptx4UPOowCfdXYH
/BcciSSwk47j7DqKJ8ANMeQ=
=mPxe
-----END PGP SIGNATURE-----
Reply to: