When I try to download message using Imap.GetMailMessage(int sequenceNumber) I get "Invalid TNEF message" error.
Rebex.Mail.MailException: Invalid TNEF message. ---> System.ArgumentException: Media type is not valid.
Parameter name: mediaType
at Rebex.Mime.Headers.ContentType..ctor(String mediaType)
at Rebex.Mime.MimeEntity.rjfp(Stream qx, String qy, String qz, ContentTransferEncoding ra)
at Rebex.Mail.Attachment.aoyn(Stream aij, String aik, String ail, Boolean aim)
at uvpc.fnus(Stream arz)
In thunderbird this e-mail is displayed correctly. It contains winmail.dat attachment. In message source I see it like this:
--_000_05e79afdf8aa458597f6ab9d7453668epostch_
Content-Disposition: attachment; filename="winmail.dat"
Content-Transfer-Encoding: base64
Content-Type: application/ms-tnef; name="winmail.dat"
Is this a bug in Rebex?