private static IConversationClutterProcessor CreateInternal(IStoreSession session) { IConversationClutterProcessor result = null; MailboxSession mailboxSession = session as MailboxSession; if (mailboxSession != null && ClutterUtilities.IsClutterEnabled(mailboxSession, mailboxSession.MailboxOwner.GetConfiguration())) { result = new FolderBasedConversationClutterProcessor(mailboxSession); } return(result); }
internal static void ReadFolderBasedClutterSettings(MailboxSession mailboxSession, VariantConfigurationSnapshot configurationSnapshot, OwaUserConfiguration userConfiguration) { userConfiguration.SegmentationSettings.PredictedActions = ClutterUtilities.IsClutterEnabled(mailboxSession, configurationSnapshot); userConfiguration.UserOptions.ShowInferenceUiElements = ClutterUtilities.IsClassificationEnabled(mailboxSession, configurationSnapshot); }