###################################################### # Mon procmailrc de base #----------------------------------------------------- # SHELL=/bin/sh MAILDIR=/var/mail LOGNAME=thomas ORGMAIL=$MAILDIR/$LOGNAME DEFAULT=$ORGMAIL VERBOSE=yeah MOI=tnemeth@free.fr BLACKLIST=$HOME/.procmail/blacklist ###################################################### # UNIQUEMENT POUR LE DEBUG => génrère beaucoup de texte. #----------------------------------------------------- # #LOGFILE=$HOME/.procmail/procmail.log ###################################################### # D'abord, virer à la poubelle tous les mails contenant un X-Loop à moi : #----------------------------------------------------- # :0 *$ ^X-Loop:.*$MOI /dev/null ###################################################### # Ensuite mettre les personnes dont je ne veux pas recevoir les mails dans # ma black-list (personne => commenté) #----------------------------------------------------- # #:0 #* ^From.*untypkimenerv@chezlui.null #/dev/null # ###### MEILLEURE FAÇON : # #:0 Whic #| extract-addrs | match-email-addr $BLACKLIST # Si on a trouvé une adresse de spammeur (ci-dessus), alors... #:0 a #{ # :0: # junk/spam #} ###################################################### # Maintenant virer à la poubelle tous les mails contenant un .exe et répondre # totomatikement au méchant ki la nenvoyé le .exe :) #----------------------------------------------------- # :0 HBhb * ^Content-Type:.*\.(exe|dot|vbs).* | ( formail -rtk -p '| ' \ -A "X-Loop: $MOI" \ -A "Precedence: junk"; \ cat $HOME/.procmail/badfile ) | $SENDMAIL -t -oi ###################################################### # Répondre à ceux qui m'envoient des .doc .ppt .pps et .xls #----------------------------------------------------- # :0 HBhbc * ^Content-Type:.*\.(doc|ppt|pps|xls).* | (formail -rtk -p '| ' \ -A "X-Loop: $MOI" \ -A "Precedence: junk"; \ cat $HOME/.procmail/badattach ) | $SENDMAIL -t -oi ###################################################### # Répondre aux !@#$%^&* que je n'aime pas le HTML ni le multi-part, # ni le quoted-printable #----------------------------------------------------- # :0 HBhbc * ^Content-Transfer-Encoding: quoted-printable|^Content-Type: text/html|^Content-Type: text/x-vcard | (formail -rtk -p '| ' \ -A "X-Loop: $MOI" \ -A "Precedence: junk"; \ cat $HOME/.procmail/badformat ) | $SENDMAIL -t -oi