Email unique id

H

Harry

Hi,
This is a developer q's.....currently when an email comes in the user
imports it to our local database. Now, if the same email is received
by three different people......how do i notify the others if one of
them has already stored the email....?

Is ther a unique email id property that i can use?

Thanks!
 
D

Dmitry Streblechenko

PR_INTERNET_MESSAGE_ID MAPI property shoudl do the trick.
You can access it through MailItem.PropertyAccessor in Outlook 2007.

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

Harry

Thanks a lot Dimitry for your reply, is the above property guaranteed
to remain unique in all cases..... if the mail item has been moved,
copied etc?


Thank you!
 
H

Harry

Also, this just occured to me.....since the prop says
internet_header .... wht abt messages sent in intra-organizational
Exchange emails not the ones sent over the internet??

Again, thank you for your time and patience!!
 
D

Dmitry Streblechenko

The property should stay unchanged.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Thanks a lot Dimitry for your reply, is the above property guaranteed
to remain unique in all cases..... if the mail item has been moved,
copied etc?


Thank you!
 
D

Dmitry Streblechenko

Exchange 2007 always creates that property. Not sure about Exchange 2003.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Also, this just occured to me.....since the prop says
internet_header .... wht abt messages sent in intra-organizational
Exchange emails not the ones sent over the internet??

Again, thank you for your time and patience!!
 
J

Jarrod

For mails in "Sent Items", this property does not seem to be present when
viewed using OutlookSpy.

I'm currently testing on Exchange 2007 with Outlook 2007. Outlook's
Send/Receive "Send immediately when connected" checkbox is enabled.

Is there any setting on Exchange 2007 that needs to be enabled to make it
set this property accordingly?

From this KB article: http://support.microsoft.com/kb/924213
It seems that this property exists for Sent Items with Exchange 2003, with
some caveats.
 
D

Dmitry Streblechenko

Are you using a cached or online store?
Can you try to uncheck the "Use cached mode" checkbox in the Exchange
account properties dialog?

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

Jarrod

Ah... I see, thanks.

Didn't realise there was a "Use Cached Exchange Mode" option.

Btw, looks like cached mode is the default for Exchange deployments? Can a
organisation actually lockdown this option to non-cached so that this
technique of uniquely identifying emails upon sending becomes feasible?
 
D

Dmitry Streblechenko

But you are trying to solve scenario (3).
If PR_INTERNET_MESSAGE_ID property is already present, you would not need to
open the message in the online mode to begin with.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top