Empty login ID after using GetMessageFromMsgFile in Outlook Redemption

Using RDO 4.8.0.1184 with Delphi 2006 on Exchange 2007 SP3

I have the following code (abbreviated):

Msg := MailSession.GetMessageFromMsgFile(sTempFile, false);
Msg.UnRead := true;
Msg.Save;
Msg.Move(some_folder);
ShowMessage('EntryID: ' +Msg.EntryID);

As a result, the dialog shows an empty login identifier. I tried typing EntryID in different places, but this is always an empty string. What am I doing wrong?

+3
source share
1 answer

Login IDs are only available in messages that exist in the message store, which is unacceptable for them to open based on the record ID. There is no MAPI message store for stand-alone MSG files.

, ? , Move - , :

Msg = Msg.Move(some_folder);

ShowMessage ('EntryID:' + Msg.EntryID);

+6

Source: https://habr.com/ru/post/1764161/


All Articles