#!/bin/sh
cur=/home/vpopmail/domains/**-tech.com/hello/Maildir/cur
# cur=/tmp/cur
for line in $cur/*
do
cat $line |grep "X-Spam-Flag: YES"
# sleep 1
if [ $? -eq 0 ]
then
echo spam
else
rm $line
echo $line has been del
fi
done
# sleep 1
sa-learn --spam /home/vpopmail/domains/**-tech.com/hello/Maildir/cur/*
阅读(1191) | 评论(0) | 转发(0) |