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

Re: Recommended mail filters for use with mutt?



On 04/03/08 20:41, 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.

Thanks Christian, that is what I was missing; now it works - procmailrc is 
several lines shorter :-)

--
#Joseph