@ -1,5 +1,12 @@
#!/bin/bash
RCODE=$?
if [ ! whoami = "zimbra" ]; then
echo "Le user doit être zimbra, pas root ! "
exit 1;
fi
echo "Export des Filtres"
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; do echo "Exporting Filters : $user" ; zmprov ga $user zimbraMailSieveScript > filters/$user-filters.txt ;done
sed -i -e "1d" /opt/zimbra/nfsbackup/migration/filters/*