When using the Aspose library to fetch items from some Exchange mailbox, then converting
MailMessage to MapiMessage and then save MapiMessage to disk, the messages that
were drafts in EWS (i.e. unsent) originally now show as “sent”.
I have investigated this issue with a 3rd party API as well and the behavior is the same i.e. the downloaded messages from Drafts folder are saved as “sent”. You may consider setting these in Draft mode before saving to disc as shown in the following sample code:
MapiMessage mapi = MapiMessage.FromMailMessage(eml);
Thank you for your response.
I can gladly set the header on messages that are drafts before saving them as this would solve my problem. However, can you tell me though how I can detect that they are draft messages once they are fetched from EWS? Not all drafts in a mailbox are going to simply be in the “Drafts” folder.