X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=.procmailrc;h=82a7635ea72c7cfe096a9fedaf89737ee4585543;hb=bd4d728c4a8ee24bbd31b3b7aea7fa0c0e2c2ac7;hp=e2837b956dc9345e036c5e0a21490a174d22b554;hpb=1c6a7591b4c346c45af9c79c7d7ba830ef36fa90;p=config-20-100.git diff --git a/.procmailrc b/.procmailrc index e2837b9..82a7635 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 @@ -699,7 +699,7 @@ INCLUDERC="${CONFIGDIR}/custom.high.rules" { # Statistiques d'upload :0 - * ^X-Mailer: /usr/scripts/surveillance/statistiques.py + * ^X-Mailer: /usr/scripts/surveillance/statistiques2.py ${STATUPLOADDIR}/ :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}/ +} #################################################################