private static void RefreshTaskFolder(FolderDescriptor folderDescriptor) { if (folderDescriptor.ContainerClass == FolderType.Task) { RefreshFolderDescriptor.Do(JobPriority.AboveNormal, folderDescriptor.FolderIDs, DateTime.MinValue); } }
protected override void Execute() { try { if (!Guard.IsResourceLive(_folder)) { return; } Folder.SetSeeAll(_folder, false); if (Folder.IsIgnored(_folder)) { foreach (IResource mail in Folder.GetMailList(_folder)) { Mail.ForceDelete(mail); } } else { RefreshFolderDescriptor.Do(JobPriority.Normal, new FolderDescriptor(_folder), Settings.IndexStartDate); } } catch (Exception exception) { Core.ReportException(exception, ExceptionReportFlags.AttachLog); Tracer._TraceException(exception); } }
private void OnClickOnBrowserStatus(object sender, EventArgs e) { if (_folder != null) { Folder.SetSeeAllAndNoIgnoreAsync(_folder); RefreshFolderDescriptor.Do(JobPriority.Normal, PairIDs.Get(_folder), DateTime.MinValue); } Core.ResourceBrowser.HideStatusLine(); }
protected override void ExecuteAction(IResource folder, PairIDs pairIDs) { Trace.WriteLine(">>> SynchronizeFolderNowAction.ExecuteAction"); if (pairIDs == null) { return; } if (Folder.IsPublicFolder(folder)) { RefreshFolderDescriptor.Do(JobPriority.Immediate, pairIDs, Settings.IndexStartDate); } Trace.WriteLine("<<< SynchronizeFolderNowAction.ExecuteAction"); }
public void Execute(IActionContext context) { IResourceList list = context.SelectedResources; foreach (IResource resource in list.ValidResources) { if (resource.Type == STR.MAPIFolder) { Folder.SetSeeAllAndNoIgnoreAsync(resource); RefreshFolderDescriptor.Do(JobPriority.Normal, PairIDs.Get(resource), DateTime.MinValue); } } Core.ResourceBrowser.HideStatusLine(); }
public bool FolderFetched(FolderDescriptor parent, FolderDescriptor folder, out FolderDescriptor folderTag) { folderTag = null; if (OutlookSession.OutlookProcessor.ShuttingDown) { return(false); } if (!Folder.IsIgnored(folder)) { ProcessedFolders.RegisterFolder(folder.FolderIDs.EntryId); RefreshFolderDescriptor.Do(JobPriority.BelowNormal, folder.FolderIDs, _dateRestrict); } return(true); }
private void RefreshFolder(PairIDs folderIDs, IResource folder) { Guard.NullArgument(folderIDs, "folderIDs"); Guard.NullArgument(folder, "folder"); FolderDescriptor descriptor = FolderDescriptor.Get(folderIDs); if (descriptor != null) { if (!ProcessedFolders.IsFolderProcessed(folder.GetStringProp(PROP.EntryID))) { RefreshFolderDescriptor.Do(JobPriority.Normal, descriptor, Settings.IndexStartDate); } } }