Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / November 2003

Tip: Looking for answers? Try searching our database.

Message Id

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mikael Alhadeff - 17 Nov 2003 11:00 GMT
Hello,

I would like to retrieve for each mail a unique identifier,
like the SMTP Message Id.

The only id i have found is the EntryId (in the Outlook.Message
interface) but it changes every time the mail is moved across folders
:(

Does someone know how to get a really unique (and permanent)
identifier for the mail messages ??

Thanks,

Mikael
Dmitry Streblechenko - 17 Nov 2003 20:57 GMT
You can try to access PR_SEARCH_KEY Extended MAPI property, but it is only
possible when using Extended MAPI/CDO 1.21/Redemption, but not Outlook
Object Model.
Or you can add your own custom property to the message instead
(MailItem.UserProperties.Add).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hello,
>
[quoted text clipped - 11 lines]
>
> Mikael
Mikael Alhadeff - 19 Nov 2003 11:05 GMT
It is not possible to access the smtp id displayed in message headers ??

Actually, I would like to retrieve this identifier...

Thanks,

Mikael

> You can try to access PR_SEARCH_KEY Extended MAPI property, but it is only
> possible when using Extended MAPI/CDO 1.21/Redemption, but not Outlook
[quoted text clipped - 22 lines]
> >
> > Mikael
Dmitry Streblechenko - 19 Nov 2003 18:59 GMT
Yes, with Extended MAPI/CDO 1.21/Redemption, but not with Outlook Object
Model.
The property you need is PR_TRANSPORT_MESSAGE_HEADERS (all headers) or
PR_INTERNET_MESSAGE_ID (just the message id).
Note that these properties are only present if a message was received from
the internet (SMTP). Unsent messages or messages received within an Exchange
5.5 server will not have them.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> It is not possible to access the smtp id displayed in message headers ??
>
[quoted text clipped - 30 lines]
> > >
> > > Mikael
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.