I'm extracting items from PST/OST files and saving them to disk, and coming across some items that are not actually getting written. I'm essentially using code like this:
PersonalStorage pst = PersonalStorage.FromFile(filePath);
//...
MapiMessage msg = pst.ExtractMessage(messageInfo.EntryId);
string filename = string.Format(@"C:\temp\{0}.msg", messageInfo.EntryIdString);
msg.Save(filename);
No exceptions are thrown, but there are some items that consistently do not get written to disk. It would be nice if MapiMessage.Save() returned a value that specified whether the file was actually written or not.
Thank you,
Rob