This commit is contained in:
Alan Garcia 2012-08-25 14:06:32 +00:00
parent d4be305c6f
commit 3dc608d307
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ done
# List the adresses to DELETE
# Delete if only if there isn't any mailbox refering to it
mysql_query "DELETE FROM a using address a, mailbox m WHERE a.mail_action='DELETE' OR a.mail_action='DELETING' AND a.id != m.address_id;"
mysql_query "DELETE FROM a USING address a, mailbox m WHERE (a.mail_action='DELETE' OR a.mail_action='DELETING') AND a.id != m.address_id;"
# Delete the lock
rm -f "$LOCK_FILE"