procmail et Fedora
By Pierre-Yves on Wednesday, November 11 2009, 20:17 - Général - Permalink
Filter for the Fedora/Redhat mailing list
Les filtres pour les listes de diffusions Fedora/RedHat
English version
Lately I have been trying to get around procmail to filter emails retrieved by fetchmail. I could not find on the internet example of procmail filter for the Fedora and RedHat mailing list.
The idea is to get a different maildir for each mailing list which I finally made up using this:
:0H: * ^TO_.*<\/.*redhat\.com> * MATCH ?? ()\/^@<+ $MAILDIR/$MATCH/ :0H: * ^TO_.*<\/.*fedoraproject\.org> * MATCH ?? ()\/^@<+ $MAILDIR/$MATCH/
I know, I could also have done 1 filter/mailing list but then again I'm lazy ;-)
French version
Dernièrement j'ai fais joujou avec procmail pour filtrer les emails venant de Fedora et RedHat récupéré par fetchmail. Je n'ai pas trouvé sur internet d'example de filtres procmail pour les listes de diffusion de Fedora et RedHat.
L'idée est d'avoir un dossier/fichier par liste de diffusion, ce qui est possible en passant par:
:0H: * ^TO_.*<\/.*redhat\.com> * MATCH ?? ()\/^@<+ $MAILDIR/$MATCH/ :0H: * ^TO_.*<\/.*fedoraproject\.org> * MATCH ?? ()\/^@<+ $MAILDIR/$MATCH/
Oui je sais, on peut aussi faire un filtre par liste, mais bon je suis fainéant ;-)
Comments
Have yoi tried searching for listid:foolist@example.com ? I understand alot of servers add this to your mail, and google filters on it.
Hi Loup,
Thanks for the trick, I know some lists have this but not all. However the Fedora/RH mailing list should have it I'll have to check.