From 3dc608d3072956f09165be60090ee493f95e3b33 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Sat, 25 Aug 2012 14:06:32 +0000 Subject: [PATCH] Oook --- src/mail_deletion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mail_deletion.sh b/src/mail_deletion.sh index b50b836e..f9caa5bd 100755 --- a/src/mail_deletion.sh +++ b/src/mail_deletion.sh @@ -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"