Showing results for 
Search instead for 
Do you mean 

MAPI Message ID Confusion

Highlighted
Occasional Contributor

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.