Fix delete method for message

Deleting a mail was stuck in a loop. This commit fixes it