Genkend en e-mail med CDO som er lavet i MAPI. (Øhhh)
Jeg beklager, men nu har jeg lige formuleret mit problem på UKsk, men heldigvis har jeg på fornemmelsen at det kan i alle læse :-)In a VB component I use MAPI to send an e-mail.
Later I need to recognize this specific e-mail using CDO.
So I need to store some kind of specific ID on the mail, which should follow it. I can’t use the standard MsgID, because it changes when the mail gets moved from folder to folder.
First I thought of adding a UserDefined property, but I couldn’t find a solution to do this using simple MAPI.
Next I thought of using the Mapi property called “Tag”, which should be useful for it. (.MAPIMessages.Tag)
But I couldn’t find the information again using CDO. I have tried going through the Fields collection, but it didn’t show up.
Finally I tried to use the conversation ID. (.MAPIMessages.MsgConversationID) Since I create the message from scratch I don’t see any problem in deciding the content. But when I in CDO look at the field called PR_CONVERSATION_TOPIC it still contains the automatically generated conversation ID. So I simply can’t find the information I store.
Have you got any idea of how to solve any of these problems, or a better approach?
Og husk! I er velkomne til at svare på dansk, bare i kan hjælpe mig ud af denne kattepine. Tak.
