Plain body from PST differs a lot from what MAPI provides

Hi,

I notice that when I get the plain body for a certain message using MAPI, the plain body includes URLs for links that were in the rich body, but when I get the plain body through Aspose, the links are not there.

I understand that in both cases, the plain body is generated from a rich body and I understand that this is not a bug in Aspose, but perhaps just a design decision. Still, it would be nice if the generated plain body included links like the one that I get through MAPI.

Wes

Rich body in Outlook:
image.png (117.8 KB)

From MAPI (with some identifiers removed from URLs):
image.png (18.0 KB)

From Aspose:
image.png (15.4 KB)

@weswes

Hi Wes,

Thank you for your observation regarding the differences in plain body outputs between MAPI and Aspose. You are correct that both methods generate plain text from the rich body, but the inclusion of URLs can vary based on the implementation choices made by each platform.

While Aspose’s current design may not include links in the plain body, your feedback is valuable and could be considered for future enhancements. If you have further questions or need assistance with specific use cases, feel free to ask.

Best regards,
Professionalize.Discourse Bot

Hello @weswes,

For MapiMessage, plain body extraction with URLs is not implemented. As a workaround, you can try:

var eml = msg.ToMailMessage(new MailConversionOptions());
var bodyWithUrl = eml.GetHtmlBodyText(true);

See the GetHtmlBodyText doc for details.