<<< Date Index >>>     <<< Thread Index >>>

Re: Recommended mail filters for use with mutt?



On 02Apr2008 14:20, Chris G <cl@xxxxxxxx> wrote:
| I currently use a custom (perl) mail filter for delivering mailing
| list (and other) mail to appropriate mailboxes.  I'm not a perl
| expert, in fact I rather dislike perl, it's only in perl because I
| copied it from somewhere else and modified it for my own use.
| 
| I want to do some changes and was thinking of moving to using python
| (which I prefer), however before I expend the effort on rewriting it
| I wondered if there are any ready made utilities around that would
| suit.
| 
| The main requirement is that the configuration file is very simple,
| not like procmail for example.  My existing configuration file is
| simply one line per list with the list name and my alias for it (which
| is also the mailbox name).

I use this:

  http://freshmeat.net/projects/cats2procmailrc/

to autogenerate my procmailrc file. The rule syntax is much like yours
so adapting should be easy. It's even in Python (it was once in Perl,
but I rewrote it a while back).

Example rules for mutt (grown over time - a few are probably obsolete by
now):

    !me Mutt-Announce   mutt-announce@xxxxxxxx
    mutt        Mutt-Dev        sender:owner-mutt-dev@xxxxxxxx
    mutt        Mutt-Users      mutt-users@xxxxxxxx
    mutt        Mutt-Users      mutt-users@xxxxxxxx@korn.aiss.de
    mutt        Mutt-Users      mutt-users@xxxxxxxxx
    mutt        Mutt-Users      sender:owner-mutt-users@xxxxxxxx
    mutt        c.m.mutt        comp.mail.mutt@usenet
    |mailundigest mail  mutt-users@xxxxxxxxxxxxxxx

Left hand side is folder, middle is label, right is rule.

Manual entry here:

  http://cskk.ezoshosting.com/cs/css/manuals/cats2procmailrc.1.html

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

C++ also supports the notion of *friends*: cooperative classes that are
permitted to see each other's private parts.
- Grady Booch, "Object Oriented Design with Applications"