I am facing problem with Date and Time issue for Draft Mail
PR_MESSAGE_DELIVERY_TIME value are changing
following are code i used
MapiMessage pMail = null;
MailMessage Obj_MailMessage = null;
string MsgPath = @"C:\Users\rohidas\Desktop\New folder (3)\Microsoft Office Outlook Test Message.msg";
MailMessageLoadOptions loadOptions = new MailMessageLoadOptions();
loadOptions.MessageFormat = MessageFormat.Msg;
Obj_MailMessage = MailMessage.Load(MsgPath, loadOptions);
pMail = MapiMessage.FromMailMessage(Obj_MailMessage, OutlookMessageFormat.Unicode);
File.Delete(@"C:\Users\rohidas\Desktop\output\pstFile.pst");
PersonalStorage pst = PersonalStorage.Create(@"C:\Users\rohidas\Desktop\output\pstFile.pst", FileFormatVersion.Unicode);
pst.RootFolder.AddSubFolder("TestFolder");
FolderInfo outfolder = pst.RootFolder.GetSubFolder("TestFolder");
outfolder.AddMessage(pMail);
I am sending some sample MSG file and exported PST, Please see the attachment