Outlook Rules is very important feature that allow the users to filter unwanted emails, as wellĪs executing other actions when email with a specified criteria is arrived. To access the default store of the current profile, use the DefaultStore property on NameSpace object.
Search Folders could not be accessed directly from the Outlook Object Model without using MAPI or CDO.
The hardest way: Use extended MAPI call (In C++): IMAPISession::GetMsgStoresTable.
Enumerate the InfoStores collection of CDO session object, and then use the fields collection of InfoStore object in order to get more information about each store.Enumerate all top level folders with Outlook object model, extract the StoreID of each folder, and then use CDO or MAPI interfaces to get more information about each store.In previous versions, programmers that wanted to enumerate all stored under the current profile had to choose from one of the following methods: Username: Returns a string that specifies the user name of the account.Īnother important collection that added in Outlook 2007 is the Stores collection, under NameSpace object.SmtpAddress: Returns a string that specifies the SMTP email address of the account.DisplayName: Returns a string that specifies the account display name.OlExchange, olImap, olPop3, olHttp, or olOtherAccount. AccountType: Returns OlAccountType that specifies the type of the account:.In Outlook 2007, Microsoft finally decided to make the life easier, and add a new Accounts collection under NameSpace object.Įach Account object under this collection provide the following properties:
#Use cached exchange mode outlook 2007 how to
Very experience C++/COM programmers can find out how to use them. These interfacesĪre based on IUnknown interface and Microsoft doesn't provide C++ headers files for these interfaces, which means that only The IOlkAccountManager::EnumerateAccounts method allow programmers to enumerate all accounts, but. Programmers who want to get essential information about the accounts (Like email, type of account, and so on) had to read the informationĭirectly from the Registry - under HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Profile Name.Īfter Outlook 2003 release, Microsoft introduced new set of COM interfaces named "Account Management API". In all previous versions of Outlook, the object model didn't provide any interface for enumerating all accounts on the current profile. Relatively to previous versions of Outlook. The following document summarize the new important additions to the object model of Outlook 2007,