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

Re: Recommended mail filters for use with mutt?



On Thu, Apr 03, 2008 at 01:19:20PM +0200, Christian Ebert wrote:
> * Patrick Shanahan on Wednesday, April 02, 2008 at 17:26:30 -0400
> > * Vladimir Marek <Vladimir.Marek@xxxxxxx> [04-02-08 16:25]:
> > > 
> > > :0:
> > > * /^Sender: owner-mutt-users@mutt\.org$
> > > $HOME/Mail/IN-mutt-users/
> > 
> > :0:
> > * ^Sender.*mutt.org
> > $MAILDIR/mutt.users
> 
> :0
> * ^List-Post:.*mailto:\/[^@]+
> Lists/$MATCH/

This may be getting a bit off-topic, but for anyone subscribed to more
than a small handful of lists, or otherwise doesn't want to bother with
writing (and testing) expressions similar to the above to accommodate
the different approaches taken by different mailing list software, a
more comprehensive approach might be preferable:

http://www.professional.org/procmail/listname_id.rc

If the idea of doing no work conflicts with one's sensibilities, then
rolling up your sleeves and explicitly setting destinations or
performing additional processing is also possible using this "One
Approach To Rule Them All" method.  Either way, your .procmailrc need
not be any more complicated than something along the following lines:
 
    INCLUDERC=$PMDIR/listname_id.rc

    :0
    * LISTNAME ?? foo
    lists/foo/
    
    :0
    * LISTNAME ?? mutt-users
    lists/email-mutt/
    
    :0
    * LISTNAME ?? procmail
    lists/email-procmail/

The above would apply irrespective of whether you're subscribed to one
list or 100.

Regards.

-- 
George