Is there a way to find the folder class or folder type?
When reading through the folders there is no way to tell which fetch method should be used to get the messages. In one specific case there is a folder named "test5" which is actually a task folder. The only way to handle this is to try all four fetch methods (appointment, mail, etc.) and see if any one of them work. It can be optimized a little by checking if the folder display name is one of the well-known folders and by trying the FetchMessage first since it is the highest probability for success.
It is important that we no the container class since one of the options is to create a PST.
Thanks for any help