andyedinborough / aenetmail

C# POP/IMAP Mail Client
369 stars 153 forks source link

\r\n\r\n in Body property #45

Closed paolosanchi closed 12 years ago

paolosanchi commented 12 years ago

I recived a message containing a \r\n\r\n body.. The deprecated BodyHtml shown the correct message.. i suppose that a trim() i the Load methos should fix the problem: so change the Line 117 in MailMessage.cs from if (string.IsNullOrEmpty(Body) && Attachments != null && Attachments.Count > 0) { to if (string.IsNullOrEmpty(Body.Trim()) && Attachments != null && Attachments.Count > 0) {