> Benjamin Tomhave wrote:
>
> >>Where is maildrop being called?  In the .qmail-default file of the
> >>sofast.net domain?  What's it look like?
> > .qmail-default in the sofast.net domain root -- it's the
> standard call of
> > maildrop ../mailfilter within that file.
>
> Ok.  Can we see the mailfilter?
>
Boy, some folks are just soooo demanding. ;)  This mailfilter has been
working perfectly up to this point.

SHELL="/bin/bash"
import EXT
import HOST
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

DUMMY=`test -d $VHOME/Maildir`
if ( $RETURNCODE == 1 )
{
   echo "Sorry, no mailbox here by that name. (#5.1.1)"
   EXITCODE=100
   exit
}

DUMMY=`test -d $VHOME/Maildir/.Spam`
if ( $RETURNCODE == 1 )
{
   DUMMY=`/usr/bin/maildirmake -f Spam $VHOME/Maildir`
   DUMMY=`echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed`
}

if ( $SIZE < 262144 )
{
        xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]"
}

if (/^X-Spam-Status: *YES/)
{
        to "$VHOME/Maildir/.Spam"
        echo "Message delivered to $VHOME/Maildir/.Spam"
        exit
}
else
{
        to "$VPOP"
        exit
}

exit


Reply via email to