Quantcast
Channel: Le blog de pingou
Viewing all articles
Browse latest Browse all 152

procmail et Fedora

$
0
0

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 ;-)


Viewing all articles
Browse latest Browse all 152

Trending Articles