My current project runs a service on a Microsoft Exchange 2010-based email address, dedicated to apply custom rules to incoming emails.
As I am browsing through the possible C#-based solutions, EWS managed API seems like the best API to use for me. Every email action I need was found, but there is one extremely big one missing... Saving an email to a .msg
file. Which is quite surprising to me given how easy of an action it is from Outlook (simply drag and drop from Outlook to any folder).
This is an absolute requirement as users keep their emails organized through drag and drop. Is there any way I've missed to do that with EWS? So far I've only found two non-EWS ways :
- Using a third-party library which I am not sure we can afford (IndependentSoft)
- Using a more complex method with MessageSave and outlook rules to execute a custom action (action being "run MessageSave" )
I am quite surprised that such a basic action requires so much work and would like to know, is there any easy way to save an email to a .msg
file ?
Worst case scenario, is there a non-EWS API, C# based method to do so?
Thank you
Edit:
I have explored the .eml
export solution. The issue is we use Outlook 2007, which does not support eml format. .msg
is pretty much the requirement here