Detect RTF email

Hey,

i have already seen that RTF emails are converted to a HTML email during loading process as mentioned here:

Nevertheless, is there a way to determine if an email actually is of type RTF? Irrespective of the automated conversion.

Regards

Mark

@msc.bs

You can use following code example to detect the email body type as RTF. Hope this helps you.

MapiMessage mapiMsg = MapiMessage.Load(MyDir + "input.msg");
Console.WriteLine(mapiMsg.BodyType == BodyContentType.Rtf);

Hey,

this works great. Thank you!

Regards

Mark