View Single Post
  #3  
Old January 18th 06, 05:19 AM posted to microsoft.public.outlook.program_vba
peketi
external usenet poster
 
Posts: 2
Default Comparing 2 MSG files .

Thanks for the information. Initially I thought it may be the 'Entry ID'
which is the only thing different but you have given me some more insight to
this problem. Is there a way out to get the 'Message-ID' from the message,
may be that would help me solve this problem. Your help is this regard would
be highly appreciated.


"Dmitry Streblechenko" wrote:

Some properties can and will be different, e.g. PR_SEARCH_KEY. Most likely
neither you nor your users care about these properties, but they will be
make the MSG fiel different.
Secondly, the order in which properties are streamed to the MSG file can be
different, so even if the mesasge is the same, the hash will be different.
You need to use a different algorithm to determine whether two messages are
the same, such as comparing the message body, subject, recipients, etc.

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

"peketi" wrote in message
news
I am writing an application that generates a message digest (MD5) for a MSG
file generated by Outlook application. If I generate a MSG file each from
2
PST files, FILEA.PST and COPY_OF_FILEA.PST (* COPY_OF_FILEA.PST is a copy
of
FILEA.PST *), A.MSG and A1.MSG, I get a hashvalue or the message digest
different for these messages though the content of these messages are
same.
Any reasons for this and workarounds ?




Ads