Discussion:
Get unique ID from saved MSG file
(too old to reply)
mac
2009-10-29 11:12:26 UTC
Permalink
I am developing a filing system for my company using Outlook 2003
vba. We are running an Exchange Server 2003.

I am saving emails to our server as MSG files. I want to retrieve a
unque ID from an incoming email to check whether it has been saved
already. If an email is sent to several people within the company we
don't want to store it more than once.

Does anyone know how I could go about this, which ID property could I
use?

The ID would need to be retrivable from a saved MSG file and compared
with the one within an email in someones inbox.

Many thanks in advance.
kevotheclone
2009-11-12 23:50:20 UTC
Permalink
How about the MailItem.EntryID? I just found out about it today.
Post by mac
I am developing a filing system for my company using Outlook 2003
vba. We are running an Exchange Server 2003.
I am saving emails to our server as MSG files. I want to retrieve a
unque ID from an incoming email to check whether it has been saved
already. If an email is sent to several people within the company we
don't want to store it more than once.
Does anyone know how I could go about this, which ID property could I
use?
The ID would need to be retrivable from a saved MSG file and compared
with the one within an email in someones inbox.
Many thanks in advance.
Dmitry Streblechenko
2009-11-13 21:54:33 UTC
Permalink
EntryIDs are only present on messages in one of the Outlook folders.
MSG file do not have entry ids.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by kevotheclone
How about the MailItem.EntryID? I just found out about it today.
Post by mac
I am developing a filing system for my company using Outlook 2003
vba. We are running an Exchange Server 2003.
I am saving emails to our server as MSG files. I want to retrieve a
unque ID from an incoming email to check whether it has been saved
already. If an email is sent to several people within the company we
don't want to store it more than once.
Does anyone know how I could go about this, which ID property could I
use?
The ID would need to be retrivable from a saved MSG file and compared
with the one within an email in someones inbox.
Many thanks in advance.
Dmitry Streblechenko
2009-11-13 21:56:07 UTC
Permalink
Try to strip out spaces and punctuation from, say, Subject, Body, addresses
of all recipients, sender address, etc, then concatenate these properties
and calculate a hash.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by mac
I am developing a filing system for my company using Outlook 2003
vba. We are running an Exchange Server 2003.
I am saving emails to our server as MSG files. I want to retrieve a
unque ID from an incoming email to check whether it has been saved
already. If an email is sent to several people within the company we
don't want to store it more than once.
Does anyone know how I could go about this, which ID property could I
use?
The ID would need to be retrivable from a saved MSG file and compared
with the one within an email in someones inbox.
Many thanks in advance.
Loading...