Chinaunix

标题: 问问Maildrop 脚本问题怎么修改可以删除垃圾邮件不copy [打印本页]

作者: suntz    时间: 2008-01-14 16:54
标题: 问问Maildrop 脚本问题怎么修改可以删除垃圾邮件不copy
下面是我的 mailfilter
我现在这个脚本 将注释为垃圾的邮件 都copy在我的邮件箱里面
修改那里 怎么修改可以删除垃圾邮件不copy到我的 目录里面 谢谢!
VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

if ( $SIZE < 262144 )
{
exception {
xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
}
}

if (/^X-Spam-Flag: YES/)
{
# try filtering it using user-defined rules
exception {
include $VHOME/Maildir/.mailfilter
}
# then try delivering it to a Spam folder
exception {
# to "$VPOP"
to "$VHOME/Maildir/.Spam/"
}
# ah well, I guess they'll just have to live with disappointment
exception {
to "$VPOP"
}
}
else
{
exception {
include $VHOME/Maildir/.mailfilter
}
exception {
to "$VPOP"
}
}
作者: maxxfire    时间: 2008-01-21 09:16
直接用exit或者放空 退出本次过滤处理,to的那些行删除。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2