# Global maildrop filter file

# Uncomment this line to make maildrop default to ~/Maildir for
# delivery- this is where courier-imap (amongst others) will look.
#DEFAULT="$HOME/Maildir"
#`test -e /usr/local/virtual/$domain`
#    if ( $RETURNCODE != 0 )
#      {
#      `mkdir /usr/local/virtual/$domain`
#       }
#  `test -e /usr/local/virtual/$domain/$maildir`
#     if ( $RETURNCODE != 0 )
#     {
#      `maildirmake $maildir`
#      `chmod -R 0700 /usr/local/virtual/$HOST`
#  }

`test -f "$HOME"`
      if ( $RETURNCODE != 0 )
       {
        `maildirmake "$HOME"`
    }   
`test -f $HOME/.mailfilter`
if ( $RETURNCODE == 0 )
{
include ".mailfilter"
}
logfile $HOME/maildrop.log
to "${HOME}"

`test -d $DEFAULT || maildirmake $DEFAULT`
to $DEFAULT

