PC Review


Reply
Thread Tools Rate Thread

Attached MSG files change when saved

 
 
xadeqd
Guest
Posts: n/a
 
      17th Feb 2010
I have this scenario- I have a .MSG email, and attached is a .JPG and
another .MSG. I want to save these attachments and generate a hash value from
the file binary. Usually not a problem, but I have encountered some strange
behavior when saving attached MSGs.

No matter how many times I save the .JPG file, the resulting file's binary
is always the same, which is great. However when I save the .MSG file the
binary is slightly different every time. Is there a way through outlook,
outlook API, or any other means, to save an attached MSG as the same binary
file that it was when it was originally attached to the MSG?

Any help appreciated
Thanks
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      17th Feb 2010
When you attach an MSG file, Outlook is "smart" enough to convert it into an
embedded message attachment.
When you save a message as an MSG file (which is an OLe storage file), it
includes a date/time stamp. Plus teh order in which teh proeprties are
stored might be different.
The best you can do is to calculate the hash of the various message
properties (Subject, Body, etc).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"xadeqd" <(E-Mail Removed)> wrote in message
news:2DFF39AD-67C8-4365-836D-(E-Mail Removed)...
>I have this scenario- I have a .MSG email, and attached is a .JPG and
> another .MSG. I want to save these attachments and generate a hash value
> from
> the file binary. Usually not a problem, but I have encountered some
> strange
> behavior when saving attached MSGs.
>
> No matter how many times I save the .JPG file, the resulting file's binary
> is always the same, which is great. However when I save the .MSG file the
> binary is slightly different every time. Is there a way through outlook,
> outlook API, or any other means, to save an attached MSG as the same
> binary
> file that it was when it was originally attached to the MSG?
>
> Any help appreciated
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the folder for storing the attached files? Eric Microsoft Outlook Discussion 1 21st May 2008 03:32 PM
change the location that thumbnail files are saved into =?Utf-8?B?RGFuIFdpZXJiaWtp?= Microsoft Frontpage 0 4th Jun 2005 04:11 PM
How do I change the default location downloaded files are saved to? James Windows XP Internet Explorer 4 27th Jul 2004 02:07 AM
Excel 2002 files attached to Outlook 2002 EMails change size AJStadlin Microsoft Excel Programming 1 15th Oct 2003 12:12 AM
Re: EXCEL Files Change Size when Attached to Outlook EMails Lanwench [MVP - Exchange] Microsoft Outlook 0 14th Oct 2003 07:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 PM.