You cannot add that property using the Outlook Object Model, you will need
to use Extended MAPI (C++/Delphi only), CDO 1.21 or Redemption.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"BZ" wrote in message
...
Hey there,
I have a utility (created by someone else in our company) that processes
certain messages. They speak another language and are in another TZ with 6
hours difference so communication is a little tough. :-) Their utility
expects the mail item to have a certain message class, and have an
attachment with a certain property on it (which is normally there but on
all but a few). I have written a simple macro to change the message class
and this works. Also I can add the property to the attachment using
Outlook Spy, and then the utility will work fine on the mail item.
Question: Can someone show (or point me to a link) example macro code for
setting a property on an attachment? Doubt it matters for the example, but
the property tag I need to add is 0x370E001E (PR_ATTACH_MIME_TAG).
Thanks!
BZ