Fedora mailing list procmail recipe

In honor of Fedora moving its mailing lists this weekend, here’s a little procmail recipe to file each incoming mailing list stream into its own folder.  Fedora lists get a folder prefix of ‘fedora-’, while all other mailman-handled lists simply get the list name, with whitespace and the @domain part stripped off.

:0 H

* ^X-BeenThere:

{

BEENTHERE=`formail -xX-BeenThere: | sed -e 's/@.*//;s/^[ \t]*//'`

:0 H

* ^X-BeenThere: .*lists.fedoraproject.org

$HOME/Mail/fedora-$BEENTHERE

:0 E

$HOME/Mail/$BEENTHERE

}

1 comment on this post.
  1. Matt Domsch: Fedora mailing list procmail recipe | TuxWire : The Linux Blog:

    [...] the original post here: Matt Domsch: Fedora mailing list procmail recipe Share and [...]