View Single Post
  #7  
Old May 20th 08, 07:01 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,521
Default Problem getting EntryID for attached e-mail in Outlook journal

Either IStreamDoc or IStorage, but neither is very useful standalone outside
of the parent message.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Alex Ksendzov" wrote in message
...
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


"Dmitry Streblechenko" wrote:

Are you sure you have an embedded message? What is the value of the
PR_ATTACH_METHOD property on attachment?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Alex Ksendzov" wrote in message
...
Thanks a lot for the reply Dmitry.
Now, as I guess, I can't just get e-mail's entryid's from the journal
attachments, as these attachments exist in the context of the journal
entry.

Then I have another question. I need to import outlook journal entries
(e-mails) into the ms crm. I am saving attachment (journals' e-mail)
with
"SaveAsFile" method for the entries of the "e-mail type" into the
'msg'
file, but outlook fails to open this file. Can you advice me please -
how
can
I convert journal's attachment to the regular outlook message?
Thank you very much again; I really appreciate your help.

Alex

"Dmitry Streblechenko" wrote:

I am suprised it works at all - message attachments do not have entry
ids
since theey only exist in the context of the parent messages.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Alex Ksendzov" Alex wrote in
message
...
Using Redemption library I can iterate through the list of
attachments
for
every Journal Entry of 'e-mail message' type and get EntryId of the
message
through the EmbeddedMsg property .
It works fine for (received) journal entries, but for (send) this
property
is empty, also I am getting exception for some attachment items
trying
to
get
mentioned above property (Run-time exception thrown :
System.Runtime.InteropServices.COMException - Error in
IMAPISession.OpenEntry: MAPI_E_NOT_FOUND). And attachment (e-mail
message)
is
not deleted I can get it double clicking on journal entry in
Outlook.

The question is - Is there is a way to get EntryID of attached
e-mails
for
"sent" items in the journal?

Thanks








Ads
 

Mortgages - Car Loan - Internet Advertising - MySpace Layouts - Mortgage