// Token: 0x06000EE7 RID: 3815 RVA: 0x000587BC File Offset: 0x000569BC
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     if (!mailboxInformation.IsPublicFolderMailbox())
     {
         PublicFolderAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "[{0}]: mailbox isn't a public folder mailbox. No need to process this mailbox.", mailboxInformation.MailboxGuid);
         return(false);
     }
     PublicFolderAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "[{0}]: Public folder mailbox needs to process. Adding it to the list of mailboxes to process.", mailboxInformation.MailboxGuid);
     return(true);
 }
 // Token: 0x06001487 RID: 5255 RVA: 0x0007649C File Offset: 0x0007469C
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     ArgumentValidator.ThrowIfNull("mailboxInformation", mailboxInformation);
     return(this.isInterestingProcessor.IsInteresting(new MailboxProcessorRequest
     {
         LastLogonTime = new DateTime?(mailboxInformation.LastLogonTime),
         IsPublicFolderMailbox = mailboxInformation.IsPublicFolderMailbox(),
         IsGroupMailbox = mailboxInformation.IsGroupMailbox(),
         IsSharedMailbox = mailboxInformation.IsSharedMailbox(),
         IsTeamSiteMailbox = mailboxInformation.IsTeamSiteMailbox(),
         DiagnosticsText = PeopleCentricTriageAssistantType.GetDiagnosticsText(mailboxInformation)
     }, DateTime.UtcNow));
 }
 // Token: 0x06000E3E RID: 3646 RVA: 0x00055850 File Offset: 0x00053A50
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     if (mailboxInformation.IsPublicFolderMailbox() || mailboxInformation.IsGroupMailbox())
     {
         return(false);
     }
     if (!CalendarUpgrade.IsMailboxActive(new ExDateTime?(new ExDateTime(ExTimeZone.UtcTimeZone, mailboxInformation.LastLogonTime.ToUniversalTime()))))
     {
         SharingPolicyAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "{0}: mailbox is inactive hence skipping it.", mailboxInformation.MailboxGuid);
         return(false);
     }
     SharingPolicyAssistantType.Tracer.TraceDebug <Guid>((long)this.GetHashCode(), "{0}: mailbox is not GroupMailbox/PublicFolderMailbox and is active too. Adding to the list of mailboxes to process.", mailboxInformation.MailboxGuid);
     return(true);
 }
Example #4
0
        // Token: 0x06000B60 RID: 2912 RVA: 0x00049420 File Offset: 0x00047620
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            if (mailboxInformation.IsPublicFolderMailbox())
            {
                return(false);
            }
            object mailboxProperty = mailboxInformation.GetMailboxProperty(MailboxSchema.JunkEmailSafeListDirty);

            if (mailboxProperty == null || (int)mailboxProperty < 1)
            {
                JunkEmailOptionsCommiterAssistantType.Tracer.TraceDebug <string>((long)this.GetHashCode(), "Mailbox {0} is not interesting.  Either doesn't have JunkEmailSafeListDirty or number of attempts is zero.", mailboxInformation.DisplayName);
                return(false);
            }
            JunkEmailOptionsCommiterAssistantType.Tracer.TraceDebug <string>((long)this.GetHashCode(), "Mailbox {0} is interesting.", mailboxInformation.DisplayName);
            return(true);
        }
Example #5
0
        // Token: 0x06000F99 RID: 3993 RVA: 0x0005C464 File Offset: 0x0005A664
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            if (mailboxInformation.IsPublicFolderMailbox())
            {
                return(false);
            }
            object mailboxProperty = mailboxInformation.GetMailboxProperty(MailboxSchema.IsTopNEnabled);

            if (mailboxProperty == null || !(bool)mailboxProperty)
            {
                TopNAssistantType.Tracer.TraceDebug <string, string>((long)this.GetHashCode(), "Mailbox with Display name {0} has IsTopNEnabled extended property {1}.", mailboxInformation.DisplayName, (mailboxProperty == null) ? "not set" : "false");
                return(false);
            }
            TopNAssistantType.Tracer.TraceDebug <string>((long)this.GetHashCode(), "Mailbox with Display name {0} has IsTopNEnabled extended property set to true.", mailboxInformation.DisplayName);
            return(true);
        }
        // Token: 0x06000239 RID: 569 RVA: 0x0000DD84 File Offset: 0x0000BF84
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            if (mailboxInformation.IsPublicFolderMailbox())
            {
                return(false);
            }
            if (VariantConfiguration.InvariantNoFlightingSnapshot.MailboxAssistants.ElcAssistantAlwaysProcessMailbox.Enabled)
            {
                return(true);
            }
            object mailboxProperty = mailboxInformation.GetMailboxProperty((PropertyTagPropertyDefinition)StoreObjectSchema.RetentionFlags);

            if (mailboxProperty != null && mailboxProperty is int && (RetentionAndArchiveFlags)mailboxProperty == RetentionAndArchiveFlags.EHAMigration)
            {
                ELCAssistantType.Tracer.TraceDebug <string>((long)this.GetHashCode(), "Mailbox with Display name {0} is an eha migration mailbox, ELC is processing it.", mailboxInformation.DisplayName);
                return(true);
            }
            object mailboxProperty2 = mailboxInformation.GetMailboxProperty(MailboxSchema.QuotaUsedExtended);

            if (mailboxProperty2 == null)
            {
                return(true);
            }
            object mailboxProperty3 = mailboxInformation.GetMailboxProperty(MailboxSchema.DumpsterQuotaUsedExtended);
            long   num  = (long)mailboxProperty2;
            long   num2 = (mailboxProperty3 == null) ? 0L : ((long)mailboxProperty3);
            long   num3 = num + num2;

            if (num3 >= this.minMailboxSizeInBytesToProcess)
            {
                ELCAssistantType.Tracer.TraceDebug <string, long, long>((long)this.GetHashCode(), "Mailbox with Display name {0} has size {1} bytes which is equal or bigger than {2} bytes, processing it.", mailboxInformation.DisplayName, num3, this.minMailboxSizeInBytesToProcess);
                return(true);
            }
            ELCAssistantType.Tracer.TraceDebug <string, long, long>((long)this.GetHashCode(), "Mailbox with Display name {0} has size {1} bytes which is smaller than {2} bytes, skip processing it.", mailboxInformation.DisplayName, num3, this.minMailboxSizeInBytesToProcess);
            Globals.Logger.LogEvent(InfoWorkerEventLogConstants.Tuple_ELCSkipProcessingMailbox, null, new object[]
            {
                mailboxInformation.DisplayName,
                num3,
                this.minMailboxSizeInBytesToProcess
            });
            EventNotificationItem.Publish(ExchangeComponent.Elc.Name, "ELC.MailboxSizeSkipped", null, string.Format("Mailbox with Display name {0} has size {1} bytes which is smaller than {2} bytes, skip processing it.", mailboxInformation.DisplayName, num3, this.minMailboxSizeInBytesToProcess), ResultSeverityLevel.Warning, false);
            return(false);
        }
Example #7
0
        // Token: 0x06001182 RID: 4482 RVA: 0x000665E0 File Offset: 0x000647E0
        public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
        {
            if (mailboxInformation.IsPublicFolderMailbox())
            {
                return(false);
            }
            object mailboxProperty = mailboxInformation.GetMailboxProperty(MailboxSchema.HasUMReportData);

            if (mailboxProperty == null || !(bool)mailboxProperty)
            {
                CallIdTracer.TraceDebug(UMReportingAssistantType.Tracer, this.GetHashCode(), "Mailbox with Display name {0} has UM extended property {1}.", new object[]
                {
                    mailboxInformation.DisplayName,
                    (mailboxProperty == null) ? "not set" : "false"
                });
                return(false);
            }
            CallIdTracer.TraceDebug(UMReportingAssistantType.Tracer, this.GetHashCode(), "Mailbox with Display name {0} has UM extended property set to true.", new object[]
            {
                mailboxInformation.DisplayName
            });
            return(true);
        }
Example #8
0
 // Token: 0x060007D4 RID: 2004 RVA: 0x00038D00 File Offset: 0x00036F00
 public bool IsMailboxInteresting(MailboxInformation mailboxInformation)
 {
     CalendarSyncAssistantHelper.Tracer.TraceDebug <object, string>((long)this.GetHashCode(), "{0}: CalendarSyncAssistantHelper.IsMailboxInteresting: called for mailbox {1}.", TraceContext.Get(), mailboxInformation.DisplayName);
     return(!mailboxInformation.IsPublicFolderMailbox() && this.AreExtendedPropertiesInteresting(mailboxInformation.DisplayName, mailboxInformation));
 }