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

Re: Recommended mail filters for use with mutt?



* Joseph on Thursday, April 03, 2008 at 10:43:33 -0600
> On 04/03/08 13:19, Christian Ebert wrote:
>> # Catch lists on List-Post
>> :0
>> * ^List-Post:.*mailto:\/[^@]+
>> Lists/$MATCH/
> 
> I have in .muttrc
> lists hylafax-users@xxxxxxxxxxx ledger-smb-users@xxxxxxxxxxxxxxxxxxxxx
> bricks@xxxxxxxxxxxxxxxxxxxxxxx mutt-users@xxxxxxxx
> 
> but the above formula did not sort the incoming mail into the correct
> mailboxes.
> What am I missing? :-/

[^@]+ includes everything up to the first "@". -- My personal
preference for Maildir names.

Also above rule is for Maildir, not mbox. For mbox, and your
naming scheme, it should be something like:

:0:
* ^List-Post:.*mailto:\/[^>]+
Lists/$MATCH/


Also be aware that not /every/ mailing list inserts a List-Post
header.

c
-- 
Python Mutt utilities <http://www.blacktrash.org/hg/muttils/>