fix bug of ReceiveMail

reset deleting mails, when error has occured.