A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do I get a mail item's MessageID



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 5th 07, 09:42 PM posted to microsoft.public.outlook.program_addins
Bickers
external usenet poster
 
Posts: 7
Default How do I get a mail item's MessageID

Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in a
database (simplistic view). When another user reads the same message, I need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.
  #2  
Old February 6th 07, 02:42 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How do I get a mail item's MessageID

I think what you want is the EntryID of the item, which is accessible from
the Outlook object model or from other API's like CDO 1.21 or Extended MAPI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Bickers" wrote in message
...
Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange
environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in a
database (simplistic view). When another user reads the same message, I
need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.


  #3  
Old February 6th 07, 08:15 PM posted to microsoft.public.outlook.program_addins
Bickers
external usenet poster
 
Posts: 7
Default How do I get a mail item's MessageID

Hi Ken,

I was under the impression the EntryID can change. I need the ID that was
assigned to the message when it was sent.

There is a MessageID in the internet headers, but will that be present in a
message sent via Exchange ?

Cheers,

Phil.

"Ken Slovak - [MVP - Outlook]" wrote:

I think what you want is the EntryID of the item, which is accessible from
the Outlook object model or from other API's like CDO 1.21 or Extended MAPI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Bickers" wrote in message
...
Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange
environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in a
database (simplistic view). When another user reads the same message, I
need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.



  #4  
Old February 6th 07, 08:47 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How do I get a mail item's MessageID

EntryID can change if an item is moved, it depends on the store provider.
Internet Message ID's in the headers aren't there in intra-organizational
Exchange emails, only on emails sent via the Internet.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Bickers" wrote in message
...
Hi Ken,

I was under the impression the EntryID can change. I need the ID that was
assigned to the message when it was sent.

There is a MessageID in the internet headers, but will that be present in
a
message sent via Exchange ?

Cheers,

Phil.


  #5  
Old February 6th 07, 05:40 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How do I get a mail item's MessageID

If you mean the MIME message id header, it is not guaranteed to be present.
If it is available, it will be in the PR_INTERNET_MESSAGE_ID property
(0x1035001E), accessible using Extended MAPI (C++/Delphi only), CDO 1.21,
Redemption or MailItem.PropertyAccessor in Outlook 2007

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

"Bickers" wrote in message
...
Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange
environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in a
database (simplistic view). When another user reads the same message, I
need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.



  #6  
Old February 6th 07, 08:17 PM posted to microsoft.public.outlook.program_addins
Bickers
external usenet poster
 
Posts: 7
Default How do I get a mail item's MessageID

Thanks Dmitry.

Is that the MessageID visible in the headers of a message ?

What about a message sent via Exchange (ie within an organisation, without
going out to the internet) ? Does Exchange assign an ID to sent messages ?

Cheers,

Phil.

"Dmitry Streblechenko" wrote:

If you mean the MIME message id header, it is not guaranteed to be present.
If it is available, it will be in the PR_INTERNET_MESSAGE_ID property
(0x1035001E), accessible using Extended MAPI (C++/Delphi only), CDO 1.21,
Redemption or MailItem.PropertyAccessor in Outlook 2007

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

"Bickers" wrote in message
...
Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange
environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in a
database (simplistic view). When another user reads the same message, I
need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.




  #7  
Old February 6th 07, 09:01 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How do I get a mail item's MessageID

AFAIK as of Exchange 2000 (or was it 2003?), the id will be set on the
messags sent by an EX server.

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

"Bickers" wrote in message
...
Thanks Dmitry.

Is that the MessageID visible in the headers of a message ?

What about a message sent via Exchange (ie within an organisation, without
going out to the internet) ? Does Exchange assign an ID to sent messages ?

Cheers,

Phil.

"Dmitry Streblechenko" wrote:

If you mean the MIME message id header, it is not guaranteed to be
present.
If it is available, it will be in the PR_INTERNET_MESSAGE_ID property
(0x1035001E), accessible using Extended MAPI (C++/Delphi only), CDO 1.21,
Redemption or MailItem.PropertyAccessor in Outlook 2007

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

"Bickers" wrote in message
...
Hi,

I need to track messages in a database, but be able to handle the same
message being sent to multiple recipients (within an Exchange
environment).

I know that all messages sent to multiple recipients will have the same
MessageID value, but I can find no information as to how to retrieve
it.

What I'm planning is that when a message is opened, an AddIn will check
whether the message has already been handled and if not, store info in
a
database (simplistic view). When another user reads the same message, I
need
to be able to detect that it's already been handled.

Thanks for any help,

Phil.






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
messageID and in-reply-to-messageID mail header info DavidH&P Outlook - Using Forms 3 February 12th 09 04:47 PM
Reading a Custom Appointment Item's Conflict Property in Item_Write Function [email protected] Outlook - Using Forms 2 August 9th 06 06:53 PM


All times are GMT +1. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.