#——————————–
#!/bin/bash
#
# Global
fullDate=`date +%d-%m-%Y_%H-%M`;
dayDate=`date +%A`
#!/bin/bash
#
# Global
fullDate=`date +%d-%m-%Y_%H-%M`;
dayDate=`date +%A`
zimbraHamTrain ()
{
zmTrainSA=”/opt/zimbra/bin/zmtrainsa”;
zmProv=”/opt/zimbra/bin/zmprov”;
for mailbox in $($zmProv -l gaa | sort); do
${zmTrainSA} ${mailbox} ham inbox;
done
}
zimbraSpamTrain ()
{
zmTrainSA=”/opt/zimbra/bin/zmtrainsa”;
zmProv=”/opt/zimbra/bin/zmprov”;
for mailbox in $($zmProv -l gaa | sort); do
${zmTrainSA} ${mailbox} spam junk;
done
}
zimbraHamTrain;
zimbraSpamTrain;
#——————————–
Créditos: https://plus.google.com/+WellingtonTorrejaisdaSilva/posts/RNDAkk2bfrh
Deixe um comentário