protected virtual void EnsureBodyText() { if (this.BodyTextCreated == false) { if (this.ContentType.Value.IndexOf("message/rfc822") > -1) { this.BodyText = this.BodyData; } else if (this.IsMultiPart == true) { if (this.BodyContent == null) { this.BodyText = ""; } else { this.BodyText = this.BodyContent.BodyText; } } else if (this.IsText == true) { this.BodyText = MailParser.DecodeFromMailBody(this.BodyData, this.ContentTransferEncoding, this.ContentEncoding); } else { this.BodyText = this.BodyData; } } this.BodyTextCreated = true; }