public static void ProcessFolder(FolderDescriptor folderDescriptor, DateTime dtRestrict) { _tracer.Trace("Synchronize folder: " + folderDescriptor.Name); IResource resStore = Folder.FindMAPIStore(folderDescriptor.FolderIDs.StoreId); if (resStore == null) { return; } DateTime date = resStore.GetDateProp(PROP.LastReceiveDate); if (date == DateTime.MinValue) { date = dtRestrict; } MailSync mailSync = new MailSync(false, date); mailSync.Refresh = true; mailSync.EnumerateMessageItems(folderDescriptor); }