dotfiles/procmailrc

312 lines
4.3 KiB
Text
Raw Normal View History

2013-12-28 22:13:31 +00:00
PATH=/bin:/usr/bin
#On perd les privilèges si on en a
DROPPRIVS=yes
MAILDIR=$HOME/Maildir
SPAMBOX=.SPAM/cur
UNIGEBOX=.UNIGE/
BITFLIPBOX=.BITFLIP/
DEFAULT=$HOME/Maildir/
LOGFILE=$HOME/procmail.log
2014-08-04 21:19:50 +00:00
VERBOSE=ON
2013-12-30 19:41:36 +00:00
SED=/bin/sed
2014-08-22 11:00:41 +00:00
VACATION="no"
2013-12-28 22:13:31 +00:00
2014-08-05 16:04:15 +00:00
#DEBUT SPAM
#
#{{{
2013-12-28 22:13:31 +00:00
# Spam à la poubelle.
#:0
# * ^Subject:.*(credit|cash|money|debt|sex|sale|loan)
# $MAILDIR/.SPAM/new
2014-07-21 14:06:37 +00:00
2014-08-04 21:19:11 +00:00
2014-05-28 15:59:30 +00:00
#Out EachBuyer
:0
* ^From:.*EachBuyer.*
$SPAMBOX
2014-06-30 17:57:19 +00:00
#TVShow time: I dont fucking care
:0
* ^From:.*weekly@tvshowtime.com.*
$SPAMBOX
2014-05-28 15:59:30 +00:00
#Acycles: spam de merde
:0
* ^To:.*acycles@vi-di.fr.*
$SPAMBOX
2014-06-24 11:03:18 +00:00
#Eurovox fuck-you
:0
* ^To:.*eurovox@vi-di.fr.*
$SPAMBOX
2014-05-28 15:59:30 +00:00
#Jesigne de merde
:0
* ^From:.*signature@jesigne.fr.*
$SPAMBOX
2013-12-28 22:13:31 +00:00
2014-01-16 12:11:17 +00:00
#Out MesOpinions
:0
* ^To:.*mesopinions@vi-di.fr.*
$SPAMBOX
2014-06-17 15:21:35 +00:00
#Out MarcelFuckingGreen
:0
* ^From:.*Marcel Green.*
$SPAMBOX
2014-05-21 17:40:43 +00:00
:0
* ^From:.*Pourmonbureau.com.*
$SPAMBOX
:0
* ^From:.*Masterstudies.com.*
$SPAMBOX
2014-05-15 12:44:48 +00:00
:0
* ^To:.*contact@vi-di.fr.*
* ^Subject:.*VIDI.*
$SPAMBOX
:0
* From:.*news@offres-professionnelles.*
$SPAMBOX
2014-05-06 09:40:03 +00:00
#Fucking linked-in spam
:0
* ^From:.*@linkedin.com.*
$SPAMBOX
2014-05-13 08:45:44 +00:00
:0
* ^Subject:.*Consultez mon profil LinkedIn.*
$SPAMBOX
2014-05-06 09:40:03 +00:00
2013-12-28 22:13:31 +00:00
#Out bons de réduction
:0
* ^From: .*bons-de-reduction*
$SPAMBOX
2014-01-19 11:13:17 +00:00
#Out directindustry
2014-07-21 14:06:37 +00:00
:0
2014-01-19 11:13:17 +00:00
* ^From:.*Directindustry.*
$SPAMBOX
2013-12-28 22:13:31 +00:00
#Out facebook
:0
* ^From: .*Facebook*
$SPAMBOX
#Out Twitter
:0
* ^From: .*Twitter*
$SPAMBOX
#Out client EDF
:0
* ^From: .*Votre espace Client EDF*
$SPAMBOX
#Out wolfram
:0
* ^From: .*insider@wolfram.com.
$SPAMBOX
#Out emailbrokers
:0
2014-06-24 11:03:18 +00:00
* ^From: .*mailBrokers*
2013-12-28 22:13:31 +00:00
$SPAMBOX
:0
* ^To:.*votatiolycenne@villaro-dixon.eu
$SPAMBOX
:0
* ^Subject:.*Voici le listing des.*fonction.*
$SPAMBOX
:0
* ^Subject:.*vid-i.com.*
$SPAMBOX
2014-07-21 14:06:37 +00:00
:0
*^To:.*email_list@test.villaro.ch.*
$SPAMBOX
2014-01-20 17:42:52 +00:00
#WTF is this shit ?
:0
* ^From:.*newfrog.*
$SPAMBOX
2014-02-08 16:52:37 +00:00
:0
2014-02-10 17:19:07 +00:00
* ^From:.*FoxNews.*
2014-02-08 16:52:37 +00:00
$SPAMBOX
2014-02-13 10:16:18 +00:00
:0
* ^Subject:.*BREAKING.*NEWS.*
$SPAMBOX
2014-02-13 14:24:19 +00:00
:0
* ^To:.*tor@villaro-dixon.eu.*
* ^Subject:.*(F|f)inance.*
$SPAMBOX
2014-01-20 17:42:52 +00:00
2014-02-24 20:17:49 +00:00
2013-12-28 22:13:31 +00:00
#I don't need-it :D
:0
* ^From:.*(Viiagra|Viaggra|Viagrra|Viagra).*
$SPAMBOX
2014-01-20 17:42:52 +00:00
2013-12-28 22:13:31 +00:00
:0
2014-01-27 17:18:29 +00:00
* ^From:.*(Pfizer|Pfizzer|Pfiizer|Prizer).*
2013-12-28 22:13:31 +00:00
$SPAMBOX
#Stupid fucking viagra
:0
* ^X-Mailer: Airmail.*
2014-01-20 09:55:57 +00:00
* ^X-Original-To:.*tor.*
$SPAMBOX
#Out fcking ads
2014-07-21 14:06:37 +00:00
:0
2014-01-20 09:55:57 +00:00
* ^To:.*tor@vi-di.fr.*
* ^From:.*(Prizer|Prizer).*
* ^Subject:.*(S|s)av(ings|e).*
2013-12-28 22:13:31 +00:00
$SPAMBOX
2014-02-07 17:33:21 +00:00
#out edaboard
2014-07-21 14:06:37 +00:00
:0
2014-02-07 17:33:21 +00:00
* ^To:.*edaboard@vi-di.fr.*
$SPAMBOX
2014-01-27 17:18:29 +00:00
#Out discounts
2014-07-21 14:06:37 +00:00
:0
2014-01-27 17:18:29 +00:00
* ^To:.*tor@vi-di.fr.*
* ^From: American Health Store.*
$SPAMBOX
2013-12-28 22:13:31 +00:00
#Out trading
:0 B
* (compagny|name)
* target
* (trade date|Date:)
$SPAMBOX
2014-08-04 21:19:11 +00:00
#Out scammers
:0 B
* sum
* (British Pounds|dollars)
* bank
* reply
* financial
* deal
* wife
* deposit
$SPAMBOX
2013-12-28 22:13:31 +00:00
#Out texas
:0 B
* http://
* news.html
$SPAMBOX
2014-08-07 00:31:58 +00:00
:0 B
2013-12-28 22:13:31 +00:00
* petroleum
* spill
* oil
$SPAMBOX
2014-02-24 20:17:49 +00:00
:0 B
* oil
* painting
* (photo|image)
* qq.com
* frank
$SPAMBOX
2013-12-28 22:13:31 +00:00
2014-02-04 16:44:19 +00:00
#out russian dating
:0 B
* (R|r)ussian
* (W|w)oman
* (single|dating)
$SPAMBOX
2014-05-15 12:41:05 +00:00
#Out fucking oil paintings
:0 B
* oil
* painting
* pictures
* item
$SPAMBOX
2014-08-05 16:04:15 +00:00
#}}}
2013-12-28 22:13:31 +00:00
2014-08-22 11:06:55 +00:00
#Filtering of things I don't care
##PTL dinners
:0
* ^To: .*ptl@posttenebraslab.ch.*
2014-08-22 11:08:09 +00:00
* ^Subject:.*(Menu|Dinner).*
$SPAMBOX
2014-08-22 11:06:55 +00:00
2013-12-28 22:13:31 +00:00
:0
* ^To: .*bit_flipping@villaro-dixon.eu.*
$BITFLIPBOX
2014-08-05 16:04:15 +00:00
#Mailing lists mal foutues
#{{{
2013-12-28 22:13:31 +00:00
:0
* ^Resent-From:.*frank.villaro@etu.unige.ch.*
* ^To:.*aei@listes.unige.ch.*
$SPAMBOX
2014-01-15 20:02:19 +00:00
:0
* ^To:.*aei@listes.unige.ch.*
2014-01-15 20:04:47 +00:00
* ^X-Original-To:.*frank_mail@villaro-dixon.eu.*
2014-01-15 20:02:19 +00:00
$SPAMBOX
2014-08-05 16:04:15 +00:00
#}}}
#Auto formating des signatures de ML mal foutues
#{{{
2014-01-15 20:02:19 +00:00
2013-12-30 19:41:36 +00:00
#taken from bethesignal.org; thanks ;)
:0 fBw
2014-07-21 14:06:37 +00:00
* ^--$
| $SED -e 's/^--$/-- /'
2013-12-30 19:41:36 +00:00
:0 fBw
2014-07-21 14:06:37 +00:00
* ^_______________________________________________$
| $SED -e 's/^_______________________________________________$/-- /'
2013-12-30 19:41:36 +00:00
2014-01-10 14:06:08 +00:00
:0 fBw
2014-07-21 14:06:37 +00:00
* ^________________________________$
| $SED -e 's/^________________________________$/-- /'
2014-01-10 14:06:08 +00:00
2014-01-06 13:18:06 +00:00
:0 fBw
2014-07-21 14:06:37 +00:00
* ^---------------------------$
| $SED -e 's/^---------------------------$/-- /'
2014-08-05 16:04:15 +00:00
#}}}
2014-01-06 13:18:06 +00:00
2013-12-30 19:41:36 +00:00
2013-12-28 22:13:31 +00:00
#:0c
# * ^From: *Service messagerie*
# ! email1 email2 email3 MARCHE PAS !
2014-08-05 16:09:00 +00:00
#:0:
# $DEFAULT
SENDMAIL=/usr/lib/sendmail
#:0 Whc: .vacation.lock
#* !^FROM_DAEMON
#* !^X-Loop: frank@villaro-dixon.eu
#| formail -rD 8192 .vacation.cache
#Mailer chaque user une seule fois
#:0 ehc # if the name was not in the cache
#| (formail -rA"Precedence: junk" \
#-A"X-Loop: frank@villaro-dixon.eu" ; \
#cat $HOME/.vacation.msg; \
#echo "-- "; \
#cat $HOME/.signature \
#) | $SENDMAIL -oi -t
2014-08-07 00:31:58 +00:00
:0 wc
* VACATION ?? yes
| /usr/bin/vacation -a frank $LOGNAME