# 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.