A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , , ,

Problem getting EntryID for attached e-mail in Outlook journal ite





 
 
Thread Tools Display Modes
  #1  
Old May 16th 08, 02:47 AM posted to microsoft.public.outlook.program_vba
Alex Ksendzov
external usenet poster
 
Posts: 1
Default Problem getting EntryID for attached e-mail in Outlook journal ite

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
  #3  
Old May 20th 08, 12:19 AM posted to microsoft.public.outlook.program_vba
Alex Ksendzov[_2_]
external usenet poster
 
Posts: 5
Default Problem getting EntryID for attached e-mail in Outlook journal

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




  #4  
Old May 20th 08, 12:42 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,412
Default Problem getting EntryID for attached e-mail in Outlook journal

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






  #5  
Old May 20th 08, 03:18 AM posted to microsoft.public.outlook.program_vba
Alex Ksendzov[_2_]
external usenet poster
 
Posts: 5
Default Problem getting EntryID for attached e-mail in Outlook journal

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






  #6  
Old May 20th 08, 07:01 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,412
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








  #7  
Old May 20th 08, 07:01 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,412
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








  #8  
Old May 20th 08, 07:03 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,412
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









  #9  
Old May 21st 08, 04:48 PM posted to microsoft.public.outlook.program_vba
Alex Ksendzov[_2_]
external usenet poster
 
Posts: 5
Default Problem getting EntryID for attached e-mail in Outlook journal

Thanks for guidance Dmitry. As I understand I can't get journal's e-mail
attachments with managed code.


"Dmitry Streblechenko" wrote:

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










  #10  
Old May 26th 08, 09:16 PM posted to microsoft.public.outlook.program_vba
Alex Ksendzov[_2_]
external usenet poster
 
Posts: 5
Default Problem getting EntryID for attached e-mail in Outlook journal

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


"Dmitry Streblechenko" wrote:

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










 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with opening attached files david bazley Outlook Express 10 January 3rd 08 01:18 PM
EntryID problem vonClausowitz Outlook and VBA 3 August 23rd 07 03:31 PM
Problem in opening Outlook 2003 contact- Error Message " The properties dialog box could not be displayed. An invalid ENTRYID was pas. Jaweed Patel Outlook - Using Contacts 1 April 17th 07 01:31 PM
Problem in view Outlook 2003 contacts. Error " The properties dialog box could not be displayed. An invalid ENTRYID was pass" Jaweed Patel Outlook - Using Contacts 0 April 17th 07 10:31 AM
Outlook dialer problem-Handset Attached to Modem Arnie Outlook - Using Contacts 1 October 10th 06 08:30 PM


All times are GMT +1. The time now is 10:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mobile Phones - Cheap Loan - Mortgages - Agencia de viagens - Salvage Cars For Sale