【发布时间】:2016-07-15 11:10:50
【问题描述】:
如何在 procmail 中检查是否至少有三分之二的垃圾邮件过滤器将邮件视为垃圾邮件?由于对垃圾邮件标头的多次检查,我不想有重复的代码。
# Invoke bogofilter
:0 fw
| bogofilter -C -d /home/shared_directories/bogofilter -p -e
# Invoke bmf
:0 fw
| bmf -d /home/shared_directories/bmf -f text -p
# Invoke spambayes
:0 fw
| sb_filter -d /home/shared_directories/spambayes
# If two out of three filters agree it's spam, file it.
:0
* ^X-Bogosity: Spam
* ^X-Spam-Status: Yes
* ^X-Spambayes-Classification: spam
{
# Process the mail
}
【问题讨论】:
标签: procmail