Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmailadmin
> qmailadmin.maildrop
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmailadmin.maildrop of Package qmailadmin (Revision 13)
Currently displaying revision
13
,
show latest
############################## #mailfilter ############################## import EXT import HOST import HOME SPAMBOX=".Spam" VHOME=`/var/vpopmail/bin/vuserinfo -d "$EXT@$HOST"` logfile "/var/log/maildrop/maildrop.log" log "==== BEGIN maildrop processing for $EXT@$HOST ===" exception { include $VHOME/.mailfilter } if (/^X-Spam-Status:.*Yes/) { `test -d $VHOME/Maildir/.Spam` if( $RETURNCODE == 1 ) { `/usr/bin/maildirmake $VHOME/Maildir/.Spam;chown -R vpopmail:vchkpw $VHOME/Maildir/.Spam` `echo "INBOX.Spam" >$VHOME/Maildir/courierimapsubscribed` } to "$VHOME/Maildir/.Spam/" } to "$VHOME/Maildir/" ######################## #END ########################