I've just noticed that the snippet I quote of my procmailrc is out of context and lacks the match sigil. Here's my actual recipe. I prefer all my lists under a sub-folder 'l' (and I use / as my IMAP folder separator character). You may wish to use some other scheme and possibly manipulate the list-id more as Tom does for Debian lists (stripping debian- prefix in his case)
:0 * ! ^List-Id.*debian-security-announce * ^List-Id:[^<]+<\/[A-Za-z0-9.-]+ { # is it a debian list? :0 * ^List-Id:.*debian.*lists\.debian\.org subst=| echo "$MATCH" | sed 's/\([A-Za-z0-9-]\+\)\..*/\1/' # fedora? :0E * ^List-Id:.*lists\.fedoraproject\.org subst=| echo "$MATCH" | sed 's/\([A-Za-z0-9-]\+\)\..*$/fedora-\1/' :0E subst=| echo "$MATCH" | tr . : :0 $MAILDIR/l/$subst/ } -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140311074515.gb14...@bryant.redmars.org