Hi there!
Using Openedge 11, I’m trying to find out if a .msg file, or a drag and dropped email from Outlook, is a sent, received or a draft email. Currently, I have this code:
L-EMAIL = Aspose.Email.Mapi.MapiMessage:FromFile(P-FILENAME).
L-EMAIL-FLAG = Integer(L-EMAIL:Properties[Aspose.Email.Mapi.MapiPropertyTag:PR_MESSAGE_FLAGS]:ToString()).
IF L-EMAIL-FLAG = 8 THEN
L-EMAIL-STATUS = “DRAFT”.
ELSE
IF L-EMAIL:Properties[Aspose.Email.Mapi.MapiPropertyTag:PR_RECEIVED_BY_ENTRYID] = ? THEN
L-EMAIL-STATUS = “SENT”.
ELSE
L-EMAIL-STATUS = “RECEIVED”.
Determine whether an email is sent or received works fine but determining whether it is a draft is where it breaks down if you use attachments. Is there any better method that always determines if the given email is a draft or not?