Why msg files are differ after export from Outlook to filesystem?

M

Mikhail Lisenkov

http://www.microsoft.com/communitie...look&mid=e3d35e3c-0d09-49aa-9fd8-9fc713f01fc5
Hi,
I have a problem:
I need to export one message to filesystem in two different folders and
need to get in result two exact same files in my filesystem, is it possible?
but:
These two msg files are differ.
Steps:
1 Choose one message in your inbox
2 Save it as msg file to one sample folder
3 Save it again in second sample folder
4 Compare thouse files by content or by checksum (SHA-1 for example)

Are there any workarounds for it. What can I do if I need get two same msg
files?
 
K

Ken Slovak - [MVP - Outlook]

What's different? Is it the times of the file creation? Try saving once and
then copy the original to the second folder. That's about as close as you
can get.
 
M

Mikhail Lisenkov

Hi, files are different if you try to compare it by content (some bytes are
differ) or by checksum.
If I export message from outlook to msg file and then copy it to another
folder(in filesystem) those files exact same (by checksum and content). It's
ok. But if I export one message from outlook twice to different folders (in
filesystem) and compare by content, there are difference in some bytes.
Why it so? And have you any workarounds for this?
Thanks
 
D

Dmitry Streblechenko

MSG file is really OLE storage file, which is a bag of various properties.
The file may include time stamps and the order of the properties may be
different.

MSG files should never be compared directly. You can only do tha twith
humaly readable files, such as TXT, HTML or MIME.
Even MIMe file can be different if MIME boundaries are autogenerated.

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

Mikhail Lisenkov

Thanks.

Dmitry Streblechenko said:
MSG file is really OLE storage file, which is a bag of various properties.
The file may include time stamps and the order of the properties may be
different.

MSG files should never be compared directly. You can only do tha twith
humaly readable files, such as TXT, HTML or MIME.
Even MIMe file can be different if MIME boundaries are autogenerated.

--
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