From ae478ba012e2988d5f6fdd6c940953dedb023c52 Mon Sep 17 00:00:00 2001 From: Axel ROGER Date: Fri, 8 Feb 2013 13:59:42 +0000 Subject: [PATCH] Bug qui empechait la suppression des mails --- src/update_mails.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update_mails.sh b/src/update_mails.sh index 4bcc9e1a..3bffc6e3 100755 --- a/src/update_mails.sh +++ b/src/update_mails.sh @@ -56,9 +56,9 @@ mysql_query "SELECT id, address_id, quote(replace(path,'!','\\!')) FROM mailbox # If dir and rm ok, DELETE # Other case, do nothing if [ -d "${path//\'/}" ] ; then - $ionice rm -rf "$path" && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" + $ionice rm -rf "${path//\'/}" && mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" # Do the rm again in case of newly added file during delete. Should not be usefull - test -d "$path" && $ionice rm -rf "$path" + test -d "${path//\'/}" && $ionice rm -rf "${path//\'/}" else mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';" fi