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
}

One thought on “Fedora mailing list procmail recipe

  1. Pingback: Matt Domsch: Fedora mailing list procmail recipe | TuxWire : The Linux Blog

Comments are closed.