|
@@ -7,6 +7,16 @@ VERBOSE=9
|
|
|
|
|
|
logfile "/home/manu/var/logs/maildrop/maildrop.log"
|
|
logfile "/home/manu/var/logs/maildrop/maildrop.log"
|
|
|
|
|
|
|
|
+### Openics lists
|
|
|
|
+if (/^List-Id:.*<(.*)\.lists\.openics\.org>/)
|
|
|
|
+{
|
|
|
|
+ exception {
|
|
|
|
+ `test -d $MAILDIR/.rmll.$MATCH1`
|
|
|
|
+ if( $RETURNCODE == 1 )
|
|
|
|
+ `$MAILDIRMAKE $MAILDIR/.openics.$MATCH1`
|
|
|
|
+ to $MAILDIR/.openics.$MATCH1
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
|
|
### RMLL Lists (2009 and previous)
|
|
### RMLL Lists (2009 and previous)
|
|
if (/^X-BeenThere:\s*(.*)@rmll\.info/)
|
|
if (/^X-BeenThere:\s*(.*)@rmll\.info/)
|
|
@@ -23,6 +33,17 @@ if (/^From:.*reservation@rmll\.info/ || /^From:.*tpeweb@paybox\.com/)
|
|
to $MAILDIR/.rmll.resa
|
|
to $MAILDIR/.rmll.resa
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+### RMLL lists
|
|
|
|
+if (/^List-Id:.*<(.*)\.listes\.rmll\.info>/)
|
|
|
|
+{
|
|
|
|
+ exception {
|
|
|
|
+ `test -d $MAILDIR/.rmll.$MATCH1`
|
|
|
|
+ if( $RETURNCODE == 1 )
|
|
|
|
+ `$MAILDIRMAKE $MAILDIR/.rmll.$MATCH1`
|
|
|
|
+ to $MAILDIR/.rmll.$MATCH1
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
### RMLL lists - 2010
|
|
### RMLL lists - 2010
|
|
if (/^List-Id:.*<(.*)\.listes20(.*)\.rmll\.info>/)
|
|
if (/^List-Id:.*<(.*)\.listes20(.*)\.rmll\.info>/)
|
|
{
|
|
{
|
|
@@ -140,11 +161,22 @@ if (/^List-Id:.*<sympa-(.*)\.cru\.fr>/)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+### Aquilenet Lists
|
|
|
|
+if (/^List-Id:.*<(.*)\.aquilenet\.fr>/)
|
|
|
|
+{
|
|
|
|
+ exception {
|
|
|
|
+ `test -d $MAILDIR/.aquilenet.$MATCH1`
|
|
|
|
+ if( $RETURNCODE == 1 )
|
|
|
|
+ `$MAILDIRMAKE $MAILDIR/.aquilenet.$MATCH1`
|
|
|
|
+ to $MAILDIR/.fdn.$MATCH1
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
### FDN Lists
|
|
### FDN Lists
|
|
if (/^List-Id:.*<(.*)\.fdn\.fr>/)
|
|
if (/^List-Id:.*<(.*)\.fdn\.fr>/)
|
|
{
|
|
{
|
|
exception {
|
|
exception {
|
|
- `test -d $MAILDIR/.abul.$MATCH1`
|
|
|
|
|
|
+ `test -d $MAILDIR/.fdn.$MATCH1`
|
|
if( $RETURNCODE == 1 )
|
|
if( $RETURNCODE == 1 )
|
|
`$MAILDIRMAKE $MAILDIR/.fdn.$MATCH1`
|
|
`$MAILDIRMAKE $MAILDIR/.fdn.$MATCH1`
|
|
to $MAILDIR/.fdn.$MATCH1
|
|
to $MAILDIR/.fdn.$MATCH1
|
|
@@ -192,21 +224,6 @@ if (/^From:.*logcheck@/ || /^Subject:.*rkhunter/ || /^Subject:.*Logwatch for/ ||
|
|
}
|
|
}
|
|
|
|
|
|
### AntiSpam
|
|
### AntiSpam
|
|
-
|
|
|
|
-#CRMSCORE=`grep -a -v "^X-CRM114" | crm -u $HOME/.crm/ /usr/share/crm114/mailfilter.crm --stats_only`
|
|
|
|
-#xfilter "formail -I \"X-CRM114-Score: $CRMSCORE\""
|
|
|
|
-#if ($CRMSCORE < -1)
|
|
|
|
-#{
|
|
|
|
-# xfilter "formail -I \"X-CRM114-Spam: yes\""
|
|
|
|
-#}
|
|
|
|
-
|
|
|
|
-#log "Spam: $CRMSCORE"
|
|
|
|
-#if (/^X-CRM114-Spam: yes/)
|
|
|
|
-#{
|
|
|
|
-# to $MAILDIR/.Spam
|
|
|
|
-#}
|
|
|
|
-
|
|
|
|
-#xfilter "spamc"
|
|
|
|
if (/^X-Spam-Status: YES/)
|
|
if (/^X-Spam-Status: YES/)
|
|
{
|
|
{
|
|
to $MAILDIR/.Spam
|
|
to $MAILDIR/.Spam
|