É um exemplo para o maildrop:
SHELL="/bin/bash"
import EXT
import HOST
VPOP="| /home/vpopmail/bin/vdelivermail '' delete"
VHOME='/home/vpopmail/bin/vuserinfo -d $EXT@$HOST'
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 < 4621440 )
#{
#xfilter "/usr/local/bin/spamc -f -u nobody"
#}
if (/^X-Barracuda*/)
{
echo "60.11 Message delivered to home dir"
to "$VPOP"
exit
}
else
{
to "$VHOME/Maildir/.Spam"
echo "Message delivered to $VHOME/Maildir/.Spam"
exit
}