# Global maildrop filter file

#
# Define variables
#
EXTENSION="$1"
USER="$5"
DOMAIN="$6"
MAILHOME="/var/vmail"
DEFAULT="$MAILHOME/$DOMAIN/$USER/."

#
#  Logfile destination
#  After your satisifed that this is working properly, comment out all
#  the lines that start with "log"
#
#logfile "$MAILHOME/$DOMAIN/$USER/.maildrop.log"
#
# Markers for the log file
#
logfile "/var/log/maildrop.log"

exception {
	include $MAILHOME/$DOMAIN/$USER/.mailfilter
}

if (/^X-DSPAM-Result: Spam*/)
{
	to "$MAILHOME/$DOMAIN/$USER/.Junk/"
}
else
{
	to "$MAILHOME/$DOMAIN/$USER/"
}

to "$MAILHOME/$DOMAIN/$USER/"

