MAPI Message ID Confusion (215 Views)
Reply
Occasional Contributor
Sam_Fowler
Posts: 2
Registered: ‎01-23-2012
Message 1 of 1 (215 Views)

MAPI Message ID Confusion

Hi all,

 

I’m trying to create a MAPI script to emulate the sending and receiving of emails and have found a problem, if anyone has any knowledge of this and could share – I’d be very appreciative:

 

Upon capturing the Message ID like so:

msgid = mapi_get_property_sz_ex(&mapi,"Message ID");

I get the following output:

0M`````$H=8'D,0C9*F?K";ENQR1$'`,\RX2BF?<A,F&-?)5CD$M4````-@P\`9`,\RX2BF?<A,F&-?)5CD$M4```^K'(,```:

 

However, when I look at the actual message ID in Outlook I see:

Message-ID: <CF32E128A67DC84C98635F2558E412D50FAB4E0B@lkw-s-53402.****************.com>

 

Any ideas why this is happening? How I can get around it? This mismatch is preventing me from clearing out old messages as they rely on the MessageID to be matched.

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation