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 - Calandaring
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Searching for calendar folders issues



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 14th 06, 05:32 PM posted to microsoft.public.outlook.calendaring
Michael
external usenet poster
 
Posts: 10
Default Searching for calendar folders issues

Hi,

I try to search a given Outlook profile for all the available calendar
folders using C# and Redemption.
I perform this search by recursively searching every store and folder
of the input profile.
Q1: Is there a better method to achieve this? Some sort of query that I
could make in order to avoid using the recursive approach?

I also encountered different errors when testing the recursive method.
My application crashes suddenly when I iterate message stores from an
IMAP configured account (despite any try-catch that I use).
I avoided the IMAP issue by comparing the StoreAccount.AccountType
property of every message store against
Redemption.rdoAccountType.atIMAP.
But this comparison is valid only if the StoreAccount property of the
message store is not null, which is false for profiles that have not
yet been initialized (profiles created from the Mail applet and not yet
opened in Outlook).
I thought this would be it, but I was wrong.
I added 5 profiles and didn't open them in Outlook.
For the first profile, the StoreAccount property of the profile's
message store was null, and the scenario worked.
But for all the other 4 profiles, accesing the StoreAccount property
thrown the following exception "Error in IOlkAccountManager.Init:
MAPI_E_NOT_ENOUGH_MEMORY".
Q2: Is there a safer/better way to check if a profile is properly
configured?

Q3: Can anyone see a better solution to my problem?

Thanks,
Michael

Ads
  #2  
Old September 14th 06, 11:51 PM posted to microsoft.public.outlook.calendaring
Milly Staples [MVP - Outlook]
external usenet poster
 
Posts: 4,696
Default Searching for calendar folders issues

Better to post this in one of the Outlook programming groups where the experts (including Dmitry, who programmed Redemption) hang out.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact. All
unsolicited mail sent to my personal account will be deleted without
reading.

After furious head scratching, Michael asked:

| Hi,
|
| I try to search a given Outlook profile for all the available calendar
| folders using C# and Redemption.
| I perform this search by recursively searching every store and folder
| of the input profile.
| Q1: Is there a better method to achieve this? Some sort of query that
| I could make in order to avoid using the recursive approach?
|
| I also encountered different errors when testing the recursive method.
| My application crashes suddenly when I iterate message stores from an
| IMAP configured account (despite any try-catch that I use).
| I avoided the IMAP issue by comparing the StoreAccount.AccountType
| property of every message store against
| Redemption.rdoAccountType.atIMAP.
| But this comparison is valid only if the StoreAccount property of the
| message store is not null, which is false for profiles that have not
| yet been initialized (profiles created from the Mail applet and not
| yet opened in Outlook).
| I thought this would be it, but I was wrong.
| I added 5 profiles and didn't open them in Outlook.
| For the first profile, the StoreAccount property of the profile's
| message store was null, and the scenario worked.
| But for all the other 4 profiles, accesing the StoreAccount property
| thrown the following exception "Error in IOlkAccountManager.Init:
| MAPI_E_NOT_ENOUGH_MEMORY".
| Q2: Is there a safer/better way to check if a profile is properly
| configured?
|
| Q3: Can anyone see a better solution to my problem?
|
| Thanks,
| Michael
  #3  
Old September 15th 06, 09:00 AM posted to microsoft.public.outlook.calendaring
Michael
external usenet poster
 
Posts: 10
Default Searching for calendar folders issues

Thank you, will do it.

Milly Staples [MVP - Outlook] wrote:
Better to post this in one of the Outlook programming groups where the experts (including Dmitry, who programmed Redemption) hang out.

--
Milly Staples [MVP - Outlook]

Post all replies to the group to keep the discussion intact. All
unsolicited mail sent to my personal account will be deleted without
reading.

After furious head scratching, Michael asked:

| Hi,
|
| I try to search a given Outlook profile for all the available calendar
| folders using C# and Redemption.
| I perform this search by recursively searching every store and folder
| of the input profile.
| Q1: Is there a better method to achieve this? Some sort of query that
| I could make in order to avoid using the recursive approach?
|
| I also encountered different errors when testing the recursive method.
| My application crashes suddenly when I iterate message stores from an
| IMAP configured account (despite any try-catch that I use).
| I avoided the IMAP issue by comparing the StoreAccount.AccountType
| property of every message store against
| Redemption.rdoAccountType.atIMAP.
| But this comparison is valid only if the StoreAccount property of the
| message store is not null, which is false for profiles that have not
| yet been initialized (profiles created from the Mail applet and not
| yet opened in Outlook).
| I thought this would be it, but I was wrong.
| I added 5 profiles and didn't open them in Outlook.
| For the first profile, the StoreAccount property of the profile's
| message store was null, and the scenario worked.
| But for all the other 4 profiles, accesing the StoreAccount property
| thrown the following exception "Error in IOlkAccountManager.Init:
| MAPI_E_NOT_ENOUGH_MEMORY".
| Q2: Is there a safer/better way to check if a profile is properly
| configured?
|
| Q3: Can anyone see a better solution to my problem?
|
| Thanks,
| Michael


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Searching Calendar in Outlook S. Goldstand Outlook - Calandaring 1 June 16th 06 01:40 AM
Searching Through Folders Ian Mackenzie Outlook and VBA 1 April 4th 06 03:43 PM
Searching a contact folder created in Public Folders fails. Ben McKellar Outlook - Using Contacts 0 March 12th 06 11:26 PM
searching personel folders with subfolders ticked not finding contacts etc Tim Outlook - General Queries 0 February 8th 06 02:31 AM
Searching Contacts and sub folders MCA Outlook - Using Contacts 2 January 19th 06 09:26 AM


All times are GMT +1. The time now is 11:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.