12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- # .Mailfilter - rules for maildrop
- MAILDIR="/home/manu/Mail/imap"
- MAILDIRMAKE="/usr/bin/maildirmake"
- VERBOSE=9
- logfile "/home/manu/logs/maildrop/maildrop.log"
- ########### hurd lists ###############
- if (/^List-Id: <debian-hurd\.lists\.debian\.org>$/)
- to $MAILDIR/.my.ml.hurd.debian
- if (/^List-Id:.*<hurdfr\.hurdfr\.org>$/)
- to $MAILDIR/.my.ml.hurd.hurdfr
- ########### 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
- }
- }
- if (/^List-Id: <!.*!\.france\.debian\.net>.*$/)
- to $MAILDIR/.my.ml.debian.france.$MATCH2
- ########### asyd lists ###############
- if (/^List-Id:.*<!.*!\.asyd\.net>.*$/)
- to $MAILDIR/.my.ml.asyd.$MATCH2
- ########### abul lists ###############
- if (/^List-Id:.*<!.*!.abul.org>;*$/)
- to $MAILDIR/.my.ml.abul.$MATCH2
- ########### WeeChat lists ###############
- if (/^List-Id:.*weechat-!.*!.nongnu.org.*$/)
- to $MAILDIR/.my.soft.weechat.ml.$MATCH2
- ########### 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/
|