Commit ae478ba0 authored by Axel ROGER's avatar Axel ROGER

Bug qui empechait la suppression des mails

parent 974507a7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment