
Signature
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
> Thanks a lot for the reply Dmitry.
> Now, as I guess, I can't just get e-mail's entryid's from the journal
[quoted text clipped - 35 lines]
>> >
>> > Thanks
Yes, you are right Dmitry, EbeddedMsg property is not supposed to work on the
attachments for journal entries (although it worked for received e-mail) as
PR_ATTACH_METHOD has value ATTACH_OLE value.
So actual attachment data are accessible through the PR_ATTACH_DATA_OBJ with
IStreamDoc interface, right?
Do you know - can I somehow accomplish it on VB .NET? Or can I somehow else
get attached e-mail from the journal entry?
Thank you,
Alex
> Are you sure you have an embedded message? What is the value of the
> PR_ATTACH_METHOD property on attachment?
[quoted text clipped - 38 lines]
> >> >
> >> > Thanks
Dmitry Streblechenko - 20 May 2008 07:01 GMT
Either IStreamDoc or IStorage, but neither is very useful standalone outside
of the parent message.

Signature
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
> Yes, you are right Dmitry, EbeddedMsg property is not supposed to work on
> the
[quoted text clipped - 61 lines]
>> >> >
>> >> > Thanks
Dmitry Streblechenko - 20 May 2008 07:01 GMT
Either IStreamDoc or IStorage, but neither is very useful standalone outside
of the parent message.

Signature
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
> Yes, you are right Dmitry, EbeddedMsg property is not supposed to work on
> the
[quoted text clipped - 61 lines]
>> >> >
>> >> > Thanks
Dmitry Streblechenko - 20 May 2008 07:03 GMT
Either IStreamDoc or IStorage, but neither is very useful standalone outside
of the parent message.

Signature
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
> Yes, you are right Dmitry, EbeddedMsg property is not supposed to work on
> the
[quoted text clipped - 61 lines]
>> >> >
>> >> > Thanks
Alex Ksendzov - 21 May 2008 16:48 GMT
Thanks for guidance Dmitry. As I understand I can't get journal's e-mail
attachments with managed code.
> Either IStreamDoc or IStorage, but neither is very useful standalone outside
> of the parent message.
[quoted text clipped - 64 lines]
> >> >> >
> >> >> > Thanks
Alex Ksendzov - 26 May 2008 21:16 GMT
Thanks for guidance Dmitry, I appreciate any help on this topic. I have
problem getting attached e-mails (as msg files) on Journal entries of e-mail
type. Attached e-mails are represented in the Journal Entry in the collection
of attachments.
Using C++ I was able to save attachment of journal entry with e-mail -
loaded attachment from PR_ATTACH_DATA_OBJ with IStreamDocfile and wrote
stream to the file (PR_ATTACH_METHOD = ATTACH_OLE).
In the result I am getting some binary file – not message file. I am not
C++ programmer, but I suspect that result is correct as this file is pretty
similar to the one that I just can get with OOM attachment’s SafeAsText
method.
Among the literals in this file I see the following – MailMsgAttFld,
MailMsgAttMsg, MailMsgAttMdb
Browsing on the web I found next info:
MailMsgAttFld - The entry ID of the folder of the linked message object
MailMsgAttMdb - The entry ID of the store of the linked message object
MailMsgAttMsg - The entry ID of the linked message object; required only if
MailMsgAttSrchKey is empty
So if I understand right, Journal Attachments contains ‘links’ to the actual
messages.
The question is - Can I somehow with Redemption library or anyhow else get
MailMsgAttMsg (entry id of the linked message)?
Thank you for your help,
Alex
> Either IStreamDoc or IStorage, but neither is very useful standalone outside
> of the parent message.
[quoted text clipped - 64 lines]
> >> >> >
> >> >> > Thanks
Dmitry Streblechenko - 27 May 2008 05:08 GMT
You can open the atatchment as IStore, and then read various streams
(IStorage::OpenStream).
What do you see in OutlookSpy when you select PR_ATTACH_DATA_OBJ, right
click, then select "IMAPIProp::OpenProperty", then IStorage?

Signature
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
> Thanks for guidance Dmitry, I appreciate any help on this topic. I have
> problem getting attached e-mails (as msg files) on Journal entries of
[quoted text clipped - 108 lines]
>> >> >> >
>> >> >> > Thanks
Alex Ksendzov - 28 May 2008 02:33 GMT
Thank you Dmitry, I was able to read and save streams with IStorage. And for
the ‘received’ journal entries it works great – MailMsgAttMsg stream contains
entry id of the e-mail message.
But for the ‘sent’ items it’s empty – I can see this in OutlookSpy, and
‘MailMsgAttSrchFId’ stream is empty for the ‘received’ items in this case.
I see that ‘MailMsgAttSrchFId’ matching E-mail’s EntyID’s first n bytes
(depends on the length of value in this stream). I guess combination of
MailMsgAttSrchFld and MailMsgAttSrchKey should give me the EntryId of
attached e-mail, but I can’t find any patterns.
Thanks a lot again, OutlookSpy is really a great tool; I can’t imagine
programming using MAPI without it.
Alex
> You can open the atatchment as IStore, and then read various streams
> (IStorage::OpenStream).
[quoted text clipped - 113 lines]
> >> >> >> >
> >> >> >> > Thanks