first of all thanks for all the effort you already put it.I would have thought it was easier to accomplish.
Sadly it doesn't work (now).
Both codes, Hexor's "re-write" and this code here produce a file that is corrupted and can't be opened by outlook.
The saved .msg file only contains "ÐÏ" nothing more. Size = 2 Bytes
mesozorn wrote: Fri Jan 30, 2015 11:24 pmWell, this took me all mother-flipping day to get right,captain_skank wrote:Is there any way to drag and drop the just the meassage? maybe as .msg
It seems that this is the issue:
Code: Select all
streamsize = ostats\cbSize
If I set streamsize to 99 999, it saves the test file correctly and it can be opened. But of course that's too small for most emails AND it just fills the saved file up with zeros or something.
Dragged from Outlook, my test msg file is 80kb, but with this code, the resulting file is 99.999kb. So I can't just put a very high number there, as the code will then produce huge files, even for a simple test email.