Bug qui empechait la suppression des mails
This commit is contained in:
parent
974507a791
commit
ae478ba012
|
@ -56,9 +56,9 @@ mysql_query "SELECT id, address_id, quote(replace(path,'!','\\!')) FROM mailbox
|
||||||
# If dir and rm ok, DELETE
|
# If dir and rm ok, DELETE
|
||||||
# Other case, do nothing
|
# Other case, do nothing
|
||||||
if [ -d "${path//\'/}" ] ; then
|
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
|
# 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
|
else
|
||||||
mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';"
|
mysql_query "DELETE FROM mailbox WHERE id=$id AND mail_action='DELETING';"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue