1
Vote

Checking for BodyType (html || text) defect

description

Hi, thx for your awesome library!

I stumbled upon a bug where mails wouldn't be correctly identified as text based mail. The problem is in the ImapCommand class (line 299). Instead of
                else if (message.BodyParts[i].ContentType.MediaType.ToLower() == "text/plain")
                {
                    message.HasHTML = true;
                    message.Text = i;
                }
the correct code would be
                else if (message.BodyParts[i].ContentType.MediaType.ToLower() == "text/plain")
                {
                    message.HasText = true;
                    message.Text = i;
                }
Should be an easy fix ;)

thx

comments