文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>a shell to learn spam with spamassassin

a shell to learn spam with spamassassin

时间:2006-11-08  来源:snowtty

Hi,

Here is a real easy to script to use to scan ALL domains/users for a .Spam folder and this will scan the new and cur directories within it and then deleted them if you want to.

#!/usr/local/bin/bash
spamlearn=/usr/local/bin/sa-learn
LearnDirs=`find /home/vpopmail/domains/ -name .Spam -type d`
for dir in $LearnDirs; do
$spamlearn --spam $dir/cur > /dev/null
$spamlearn --spam $dir/new > /dev/null
# the rm lines are optional
rm -f $dir/cur/*
rm -f $dir/new/*
$spamlearn --sync
done

I have something else I need to post but I can't seem to find it yet.
相关阅读 更多 +
排行榜 更多 +
部落冲突7723官方正版

部落冲突7723官方正版

策略塔防 下载
粉碎汽车3无限金币版

粉碎汽车3无限金币版

赛车竞速 下载
部落冲突安智市场版

部落冲突安智市场版

策略塔防 下载