Beispiel #1
0
 [Test]//, Ignore( "Investigating problems on OMNIAMEA-UNIT")]
 public void FreshMailTest()
 {
     foreach (IEMsgStore msgStore in OutlookSession.GetMsgStores())
     {
         if (msgStore == null)
         {
             continue;
         }
         string storeID = msgStore.GetBinProp(MAPIConst.PR_STORE_ENTRYID);
         string name    = msgStore.GetStringProp(MAPIConst.PR_DISPLAY_NAME);
         Tracer._Trace("name == " + name);
         FolderDescriptorEnumerator.Do(msgStore, storeID, name, new FreshMailEnum());
     }
 }
Beispiel #2
0
        public static FolderEnum SearchForFolders(string[] names, bool debug)
        {
            FolderEnum folderEnum = new FolderEnum(names);

            if (debug)
            {
                return(folderEnum);
            }
            foreach (IEMsgStore msgStore in OutlookSession.GetMsgStores())
            {
                FolderDescriptorEnumerator.Do(msgStore, msgStore.GetBinProp(MAPIConst.PR_STORE_ENTRYID), string.Empty, folderEnum);
            }
            folderEnum.AssertSearching();
            return(folderEnum);
        }