X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.procmailrc;h=af1bace600f116b34aee00f1177fc6ffc37e1479;hb=14d00624c21b13ff5e12bc526cec5d22878aa83f;hp=e2837b956dc9345e036c5e0a21490a174d22b554;hpb=1c6a7591b4c346c45af9c79c7d7ba830ef36fa90;p=config-20-100.git diff --git a/.procmailrc b/.procmailrc index e2837b9..af1bace 100644 --- a/.procmailrc +++ b/.procmailrc @@ -529,7 +529,7 @@ INCLUDERC="${CONFIGDIR}/custom.high.rules" # On matche tous les alias de root@crans.org :0 -* ^(To|Cc): .*(root|abuse|amavis|backup|bind|bin|clamav|daemon|ftpadm|ftpmaster|ftp-mirror|ftp|games|gnats|irc|list|logcheck|lp|mail|majordom|man|msql|munin|news|operator|postgres|proxy|sync|sys|usenet|uucp|webmaster|www-clubs|www-data|www-perso|postmaster|mailer-daemon)@(crans\.org|crans\.ens-cachan\.fr) +* ^(To|Cc):.* (root|abuse|amavis|backup|bind|bin|clamav|daemon|ftpadm|ftpmaster|ftp-mirror|ftp|games|gnats|irc|list|logcheck|lp|mail|majordom|man|msql|munin|news|operator|postgres|proxy|sync|sys|usenet|uucp|webmaster|www-clubs|www-data|www-perso|postmaster|mailer-daemon)@(crans\.org|crans\.ens-cachan\.fr) { # Spam de logcheck :0 @@ -739,21 +739,21 @@ ${CABLAGEDIR}/ # Sur la ML respbats@ -#~# # L'ancienne version de ce filtre ne fonctionne plus car les headers -#~# # de ces mails sont maintenant correctement encodé. -#~# # C'est bien pour le respect des RFC, mais c'est un peu pain in the ass -#~# # p our le trier avec procmail, donc on besoin d'un script -#~# # Ne pas décommenter si vous n'avez pas le script associé. -#~# # (cf https://wiki.crans.org/VieCrans/FichiersConfiguration#scripting) -#~# :0 -#~# * ^List-Id:.*respbats\.lists\.crans\.org -#~# * ^X-Mailer:\/.* -#~# { -#~# # Machines supprimées pour chambre invalide -#~# :0 -#~# * ? echo "${MATCH}" | ${DECODEHEADERSCRIPT} | grep /usr/scripts/gestion/chambres_vides.py -#~# ${DELETEDMACHINES}/ -#~# } +# L'ancienne version de ce filtre ne fonctionne plus car les headers +# de ces mails sont maintenant correctement encodé. +# C'est bien pour le respect des RFC, mais c'est un peu pain in the ass +# p our le trier avec procmail, donc on besoin d'un script +# Ne pas décommenter si vous n'avez pas le script associé. +# (cf https://wiki.crans.org/VieCrans/FichiersConfiguration#scripting) +:0 +* ^List-Id:.*respbats\.lists\.crans\.org +* ^X-Mailer:\/.* +{ + # Machines supprimées pour chambre invalide + :0 + * ? echo "${MATCH}" | ${DECODEHEADERSCRIPT} | grep /usr/scripts/gestion/chambres_vides.py + ${DELETEDMACHINES}/ +} #################################################################