#!/bin/sh
#sa-learn autorun script
#Writed by QQ:967409
for i in /opt/maildata/example.com/*
do
if [ -d $i ]
then
/bin/touch /tmp/sa-learn.log
/usr/bin/sa-learn --spam $i/Maildir/.Junk/new/*>>/tmp/sa-learn.log
/usr/bin/sa-learn --spam $i/Maildir/.Junk/cur/*>>/tmp/sa-learn.log
##/bin/rm -rf $i/Maildir/.Junk/new/*
##/bin/rm -rf $i/Maildir/.Junk/cur/*
fi
mail -s "Mail Server Data Backup Status"
/bin/rm /tmp/sa-learn.log
done
阅读(1993) | 评论(0) | 转发(0) |