|
|
@ -34,9 +34,8 @@ for user in * ; do |
|
|
|
sievec ${user} -d - > /dev/null |
|
|
|
if [ $? -eq 0 ]; then |
|
|
|
echo "No errors detected." |
|
|
|
cp -p ${user} /vol/mail/${user}/.dovecot.sieve |
|
|
|
else |
|
|
|
echo "Compilation errors detected in ${user}'s sieve script. Please correct any errors and run $(basename $0) again." |
|
|
|
exit 2 |
|
|
|
fi |
|
|
|
cp -p ${user} /vol/mail/${user}/.dovecot.sieve |
|
|
|
done |
|
|
|