When decrypting we add the HTML Placeholder, this causes the MailItem.BodyFormat to switch to HTML.
After decryption we check if it was actually HTML or only Plain Text and insert the body accordingly.
At that place we should also set the MaillItem.BodyFormat to the corresponding value.