Fixed bug updating mails with attachments