/// <summary>
        /// Notifies the email interaction.
        /// </summary>
        /// <param name="message">The message.</param>
        public void NotifyEmailInteraction(Genesyslab.Platform.Commons.Protocols.IMessage message)
        {
            try
            {
                switch (message.Id)
                {
                case EventInvite.MessageId:

                    // Newly Added
                    // Start
                    CheckAutoAnswer(message as EventInvite);
                    // Stop

                    //Old Code
                    // Start
                    //  EventInvite eventInvite = message as EventInvite;
                    //if (ConfigContainer.Instance().AllKeys.Contains("email.enable.auto-answer")
                    //    && ((string)ConfigContainer.Instance().GetValue("email.enable.auto-answer")).ToLower().Equals("true"))
                    //{
                    //    //EmailNotifier.needPerformAccept = true;
                    //    _taskbarNotifier.eventInvite = eventInvite;
                    //    _taskbarNotifier.ReadContactName();
                    //    _taskbarNotifier.DoEmailAccept();
                    //}
                    //else
                    //    ShowEmailNotifier(eventInvite);
                    // Stop

                    break;

                case EventRevoked.MessageId:
                    EventRevoked eventRevoked = message as EventRevoked;
                    if (_taskbarNotifier != null)
                    {
                        _taskbarNotifier.BindInfo(eventRevoked);
                    }

                    break;

                case EventAck.MessageId:
                    EventAck eventAck = message as EventAck;

                    break;

                case EventPulledInteractions.MessageId:
                    EventPulledInteractions puledIteraction = message as EventPulledInteractions;
                    if (puledIteraction.Interactions != null && puledIteraction.Interactions.Count > 0)
                    {
                        string[] keys           = puledIteraction.Interactions.AllKeys;
                        var      _interactionID = keys[0];
                        if (_interactionID != null)
                        {
                            EmailMainWindow mailWindow = new EmailMainWindow(puledIteraction);
                            mailWindow.Show();
                        }
                    }
                    break;
                }
            }
            catch (Exception exception)
            {
                logger.Error("NotifyEmailInteraction" + exception.ToString());
            }
        }