Is it possible to return a MailItem directly as a Stream?
(MailItem from Microsoft.Office.Interop.Outlook)
Now I have found a temporary solution to first save a MailItem to a directory, opening it and returning the stream to the file and afterwards deleting the file again.
This temporary solution is slow when processing lots of emails and I would like to replace it with e.g. returning a MailItem as MemoryStream directly.
How can this be done?
(Edit due to comments: being slow is one part, but another codepart (that cannot be modified) only accepts a Stream, that's way I'm looking for a solution to open a MailItem as a Stream)