Пример #1
0
        // Token: 0x06000B34 RID: 2868 RVA: 0x00048374 File Offset: 0x00046574
        private static bool LogFailedToEnsureJunkEmailRule(Exception e, bool transient, MailboxSession session)
        {
            JunkEmailOptionsAssistant.Tracer.TraceError <ADObjectId, Exception>(0L, "Failed to ensure junk e-mail rule for mailbox {0}.  Exception: {1}", session.MailboxOwner.ObjectId, e);
            if (transient)
            {
                return(true);
            }
            if (e is ObjectNotFoundException)
            {
                return(false);
            }
            JunkEmailOptionsAssistant.EventLogger.LogEvent(InfoWorkerEventLogConstants.Tuple_FailedToEnsureJunkEmailRule, session.MailboxOwner.MailboxInfo.MailboxGuid.ToString(), new object[]
            {
                session.MailboxOwner.ObjectId,
                e
            });
            StoragePermanentException ex = e as StoragePermanentException;

            if (ex != null)
            {
                MapiExceptionFilter.ThrowInnerIfMapiExceptionHandledbyAI(ex);
                Exception innerException = ex.InnerException;
                if (innerException != null && innerException is NonUniqueRecipientException)
                {
                    return(false);
                }
            }
            return(true);
        }