![]() |
Events and Message Store add
Hi,
I know how to use _FolderEvents to determine if a new folder is added to the default message store - be that Outlook with exchange server or without. But is there a way (event) to determine when a new message store is added like an IMAP or other messaging service. We are primarily interested in the Outlook 2003 object model at this time. I know if I get the parent of the parent for the inbox (MAPIFolder) I get an interface that does not QI to the MAPIFolder interface. Any help or suggestions would be greatly appreciated. Thanks, Tom - |
Events and Message Store add
Outlook 2007 exposes Namespace.Stores collection, which exposes the StoreAdd
event. In the previous versions of Outlook, Extended MAPI (use notifications on IMAPITable returned by IMAPISession::GetMsgStoresTable)) or plugRedemption (RDOSession.Stores collection) /plug are your only options. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Tom" wrote in message ... Hi, I know how to use _FolderEvents to determine if a new folder is added to the default message store - be that Outlook with exchange server or without. But is there a way (event) to determine when a new message store is added like an IMAP or other messaging service. We are primarily interested in the Outlook 2003 object model at this time. I know if I get the parent of the parent for the inbox (MAPIFolder) I get an interface that does not QI to the MAPIFolder interface. Any help or suggestions would be greatly appreciated. Thanks, Tom - |
Events and Message Store add
Thanks Dmitry - I used the Advise on the message stores table and it worked
great. "Dmitry Streblechenko" wrote in message ... Outlook 2007 exposes Namespace.Stores collection, which exposes the StoreAdd event. In the previous versions of Outlook, Extended MAPI (use notifications on IMAPITable returned by IMAPISession::GetMsgStoresTable)) or plugRedemption (RDOSession.Stores collection) /plug are your only options. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Tom" wrote in message ... Hi, I know how to use _FolderEvents to determine if a new folder is added to the default message store - be that Outlook with exchange server or without. But is there a way (event) to determine when a new message store is added like an IMAP or other messaging service. We are primarily interested in the Outlook 2003 object model at this time. I know if I get the parent of the parent for the inbox (MAPIFolder) I get an interface that does not QI to the MAPIFolder interface. Any help or suggestions would be greatly appreciated. Thanks, Tom - |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com