I need to determine filenames from attachements in a new mail.
I create a new mail (new mail inspector is opening) and attache several
files from desktop via drag&drop.
All files will be displayed in the new inspector with their original
filenames as title. In this case I'm able to determine original filename
from attachments properties (PR_ATTACH_FILENAME and/or
PR_ATTACH_LONG_FILENAME).
But when I attach another msg-file (saved from outlook), msg-files
subject will be displayed in the inspector (as attachments title). In
this case I get MAPI_E_NOT_FOUND for
PR_ATTACH_FILENAME/PR_ATTACH_LONG_FILENAME. Only
PR_DISPLAY_NAME-Property is available but contains subject instead of
filename.
Any ideas, how it is possible to determine native original filename of
attached msg-file?
Thanks!
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Tony" <to...@aol.com> wrote in message
news:ef01TeRE...@TK2MSFTNGP12.phx.gbl...
Then I create a new mail and attach this saved file 'xyz.msg' via
drag&drop to outlooks new inspector-window. This attachment will be
displayed with subject 'Happy new Year' as title instead of the
filename. But in my Add-In I ever need the original filename of all
attachment also of MSG-files. But the information about the original
filename 'xyz.msg' seems to be away.
In other mail-clients like Outlook Express or Thunderbird previous saved
messages (as file), will be displayed (as expected) with their
original filename too. For example, when I save an email from Outlook
Express under 'xyz.eml' to Windows Desktop and attach this message-file
to new created email in Outlook Express, then the original filename
will be displayed 'xyz.eml' instead of the subject like in Outlook.
Dmitry Streblechenko schrieb:
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Tony" <to...@aol.com> wrote in message
news:ueBYnacE...@TK2MSFTNGP15.phx.gbl...