![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Greetings,
Context: Using MAPI, I want to look at certain properties of all messages in an inbox. Instead of opening an IMessage interface on all of the messages, which will fetch all properties including a possibly large body and a number of possibly large attachments, I fetch the contents table for the folder, and then use IMAPITable::SetColumns to indicate just the properties I need. Finally I call IMAPITable::QueryRows to retrieve the actual values of the properties. Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns SRow data where the value of some of the properties is MAPI_NOT_FOUND for messages that I know have these properties. These properties are custom properties. I have never seen the problem occur for standard Outlook properties. Ideas and suggestions are much appreciated. Best regards, Jan Reher |
Ads |
#2
|
|||
|
|||
![]()
Are you *sure* you look at the right messages? Do you see the correct
properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable tab, add the property in question (SetColumns button) if the property is not yet listed. MAPI_NOT_FOUND is sometimes returned if you request multiple version of the same property - e.g. if you request PR_HTML when PR_BODY and/or PR_RTF_COMPRESSED is also requested. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Jan Reher" undisclosed wrote in message ... Greetings, Context: Using MAPI, I want to look at certain properties of all messages in an inbox. Instead of opening an IMessage interface on all of the messages, which will fetch all properties including a possibly large body and a number of possibly large attachments, I fetch the contents table for the folder, and then use IMAPITable::SetColumns to indicate just the properties I need. Finally I call IMAPITable::QueryRows to retrieve the actual values of the properties. Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns SRow data where the value of some of the properties is MAPI_NOT_FOUND for messages that I know have these properties. These properties are custom properties. I have never seen the problem occur for standard Outlook properties. Ideas and suggestions are much appreciated. Best regards, Jan Reher |
#3
|
|||
|
|||
![]()
Hi Dmitry,
Thank you for the speedy answer. I will investigate, and post back as soon as I have something to say. Regards, Jan Reher PS: Your presence in the vicinity of Outlook and MAPI is of immense value to people like me who make extension programs to Outlook for a living. ----------------------------------------------------- "Dmitry Streblechenko" wrote in message ... Are you *sure* you look at the right messages? Do you see the correct properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable tab, add the property in question (SetColumns button) if the property is not yet listed. MAPI_NOT_FOUND is sometimes returned if you request multiple version of the same property - e.g. if you request PR_HTML when PR_BODY and/or PR_RTF_COMPRESSED is also requested. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Jan Reher" undisclosed wrote in message ... Greetings, Context: Using MAPI, I want to look at certain properties of all messages in an inbox. Instead of opening an IMessage interface on all of the messages, which will fetch all properties including a possibly large body and a number of possibly large attachments, I fetch the contents table for the folder, and then use IMAPITable::SetColumns to indicate just the properties I need. Finally I call IMAPITable::QueryRows to retrieve the actual values of the properties. Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns SRow data where the value of some of the properties is MAPI_NOT_FOUND for messages that I know have these properties. These properties are custom properties. I have never seen the problem occur for standard Outlook properties. Ideas and suggestions are much appreciated. Best regards, Jan Reher |
#4
|
|||
|
|||
![]()
Answers to Dmitry's questions:
Are you *sure* you look at the right messages? Do you see the correct properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable tab, add the property in question (SetColumns button) if the property is not yet listed. Yes, we are definitely looking at the right message, and we see the expected properties and values in OutlookSpy. MAPI_NOT_FOUND is sometimes returned if you request multiple version of the same property - e.g. if you request PR_HTML when PR_BODY and/or PR_RTF_COMPRESSED is also requested. We do not request such properties. So, once again, thanky you. We have decided to open the complete IMessage interface instead of using IMAPITable::QueryRows, since the perceived performance loss is not significant. So unless someone happens to have a bright idea readily available, I think we should terminate this thread. Regards, Jan Reher "Jan Reher" undisclosed wrote in message ... Hi Dmitry, Thank you for the speedy answer. I will investigate, and post back as soon as I have something to say. Regards, Jan Reher PS: Your presence in the vicinity of Outlook and MAPI is of immense value to people like me who make extension programs to Outlook for a living. ----------------------------------------------------- "Dmitry Streblechenko" wrote in message ... Are you *sure* you look at the right messages? Do you see the correct properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable tab, add the property in question (SetColumns button) if the property is not yet listed. MAPI_NOT_FOUND is sometimes returned if you request multiple version of the same property - e.g. if you request PR_HTML when PR_BODY and/or PR_RTF_COMPRESSED is also requested. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Jan Reher" undisclosed wrote in message ... Greetings, Context: Using MAPI, I want to look at certain properties of all messages in an inbox. Instead of opening an IMessage interface on all of the messages, which will fetch all properties including a possibly large body and a number of possibly large attachments, I fetch the contents table for the folder, and then use IMAPITable::SetColumns to indicate just the properties I need. Finally I call IMAPITable::QueryRows to retrieve the actual values of the properties. Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns SRow data where the value of some of the properties is MAPI_NOT_FOUND for messages that I know have these properties. These properties are custom properties. I have never seen the problem occur for standard Outlook properties. Ideas and suggestions are much appreciated. Best regards, Jan Reher |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OE fails to retrieve new email from Gmail server | Kimberly Anne Thiesen | Outlook Express | 4 | June 11th 06 11:12 AM |
Retrieve Email Fails (sbcglobal, other domain) | rob | Outlook - General Queries | 5 | April 18th 06 03:38 PM |
Custom Form doesn't have any values in another Calendar | ML | Outlook - Using Forms | 3 | April 13th 06 09:41 PM |
MSG Custom properties on right click custom tab | [email protected] | Add-ins for Outlook | 1 | February 1st 06 07:00 PM |
MSG Custom properties on right click custom tab | Steph | Outlook and VBA | 1 | February 1st 06 06:55 PM |