Ejemplo n.º 1
0
        // Token: 0x06000ABA RID: 2746 RVA: 0x00046080 File Offset: 0x00044280
        private void ProcessMailboxForMWI(MailboxInfo mailbox, MailboxSession session, StoreObject item, UMDialPlan dialPlan)
        {
            bool flag = mailbox.MapiEvent == null;

            if (dialPlan.SubscriberType == UMSubscriberType.Consumer)
            {
                ExTraceGlobals.MWITracer.TraceDebug <MailboxInfo>((long)this.GetHashCode(), "MwiAssistant.ProcessMailboxForMWI: Skipping for {0} (MWI N/A for consumer dialplan)", mailbox);
                return;
            }
            if (!flag && !MwiAssistant.IsVoicemailSearchFolderEvent(mailbox.MapiEvent))
            {
                ExTraceGlobals.MWITracer.TraceDebug <MailboxInfo>((long)this.GetHashCode(), "MwiAssistant.ProcessMailboxForMWI: Skipping for {0} (MWI only av. for healing/search folder events)", mailbox);
                return;
            }
            mailbox.EventTimeUtc = (flag ? ExDateTime.UtcNow : new ExDateTime(ExTimeZone.UtcTimeZone, mailbox.MapiEvent.CreateTime));
            this.delayTable.EnqueueMailbox(mailbox, session);
        }
Ejemplo n.º 2
0
 // Token: 0x06000AAB RID: 2731 RVA: 0x000459C4 File Offset: 0x00043BC4
 public bool IsEventInteresting(MapiEvent mapiEvent)
 {
     return((MwiAssistant.IsVoicemailSearchFolderEvent(mapiEvent) && mapiEvent.CreateTime >= (DateTime)this.assistantUtcStartTime && (mapiEvent.ItemCount != -1L || mapiEvent.UnreadItemCount != -1L)) || (mapiEvent.ItemType == ObjectType.MAPI_MESSAGE && mapiEvent.EventMask == MapiEventTypeFlags.NewMail && (MwiAssistant.IsMissedCallMessageEvent(mapiEvent) || MwiAssistant.IsVoiceMessageEvent(mapiEvent))));
 }