I inherited the responsibility for the project from a previous developer who accepts incoming letters and processes them into customer support subscriptions.
It basically works fine, but it has problems with one specific email address, and I can't figure out why. In Outlook, a letter clearly has a body (short text, image, and signature). This is a new message, not a response. The version of the Exchange server is 2013.
But when the processing of the code below is UniqueBody
empty, but Body
contains the correct text. This does not happen with any other messages I have encountered on this server.
if (serverVersion >= ExchangeVersion.Exchange2010)
body = msg.UniqueBody.Text;
else
body = msg.Body.Text;
What would make UniqueBody empty and Body not?
Why did the previous developer prefer to use UniqueBody over Body, how are they different?
Could this be related to this?
source
share