123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- # .Mailfilter - rules for maildrop
- MAILDIR="/home/manu/Mail/imap"
- MAILDIRMAKE="/usr/bin/maildirmake"
- VERBOSE=9
- MAILDROP_OLD_REGEXP=1
- logfile "/home/manu/Admin/logs/maildrop/maildrop.log"
- ### Debian Lists
- if (/^List-Id: <debian-!.*!\.lists\.debian\.org>.*$/)
- {
- exception {
- `test -d $MAILDIR/.my.ml.debian.$MATCH2`
- if( $RETURNCODE == 1 )
- `$MAILDIRMAKE $MAILDIR/.my.ml.debian.$MATCH2`
- to $MAILDIR/.my.ml.debian.$MATCH2
- }
- }
- ### Debian France Lists
- if (/^List-Id: <!.*!\.france\.debian\.net>.*$/)
- to $MAILDIR/.my.ml.debian.france.$MATCH2
- ### Hurd France Lists
- if (/^List-Id:.*<hurdfr\.hurdfr\.org>$/)
- to $MAILDIR/.my.ml.hurd.hurdfr
- ### Asyd Lists
- if (/^List-Id:.*mailman\.asyd\.net>.*$/)
- to $MAILDIR/
- if (/^List-Id:.*<!.*!\.asyd\.net>.*$/)
- to $MAILDIR/.my.ml.asyd.$MATCH2
- ### Galette Lists
- if (/^List-Id:.*<galette-!.*!\.gna\.org>.*$/)
- to $MAILDIR/.my.soft.galette.$MATCH2
- ### Abul Lists
- if (/^List-Id:.*<!.*!\.abul\.org>.*$/)
- to $MAILDIR/.my.ml.abul.$MATCH2
- ### WeeChat Lists
- if (/^List-Id:.*weechat-!.*!\.nongnu\.org.*$/ || /^To:.*weechat-!.*!\.nongnu.org\.*$/)
- to $MAILDIR/.my.soft.weechat.ml.$MATCH2
- ### Sympa Stuff
- if (/^From:.*SYMPA/)
- {
- to $MAILDIR/.sys.sympa
- }
- ### Logs Stuff
- if (/^From:.*logcheck@/ || /^Subject:.*rkhunter/)
- to $MAILDIR/.sys.reports
- ### Tiac Info
- if (/^Subject:.*[tT][iI][aA][cC].*[iI][nN][fF][oO]/)
- {
- to $MAILDIR/.friends.tbs.tiacfooting
- }
- ### Spam
- xfilter "spamc"
- if (/^X-Spam-Status: YES/)
- {
- to $MAILDIR/.Spam
- }
- if (!/^From:.*/)
- to $MAILDIR/.Spam
- ########### INBOX ###############
- to $MAILDIR/
|