On 02Apr2008 14:20, Chris G <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] mutt Mutt-Dev sender:[EMAIL PROTECTED] mutt Mutt-Users mutt-users@mutt.org mutt Mutt-Users mutt-users@mutt.org@korn.aiss.de mutt Mutt-Users [EMAIL PROTECTED] mutt Mutt-Users sender:[EMAIL PROTECTED] mutt c.m.mutt [EMAIL PROTECTED] |mailundigest mail [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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"