_MailItem -> SaveAs

M

MON205

Hello colleagues,
I want to use the SaveAs method in the _MailItem interface to save a mail to
a non physical path.
I tried to pass a Named Pipe name \\\\.\\PIPE\\pipename but the function
fails.
To understand why I want this, now I save the mail to a temp location, e.g
“C:\Temp\†then read the file, then store data in a Data Base.
The problem is the time wasting in writing the temp file and then reading.
So, I’m thinking in a way to store the mail on memory to speed up the
process. I guess that the SaveAs() uses the CreateFile() API, and in the
documentation of the CreateFile() I found that it can take a Named Pipe name.
But as a result it seems NOooooooooooo…
Now, can anyone help me improving my application?
 
D

Dmitry Streblechenko

Creating an MSG file requires a call to StgCreateDocfile orr
StgCreateStorageEx, which only allow files, not pipes AFAIK.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top