Beispiel #1
0
        public static void NewMessageReceived(object source, NewMessageReceivedEventArgs e)
        {
            //thisForm.AddLogEntry("New message received :" + e.MessageCount);
            MessageBox.Show("New message received :" + e.MessageCount);

            //imap4.StopIdle();
        }
 public static void NewMessageReceived(object source, NewMessageReceivedEventArgs e)
 {
     //int offset = e.MessageCount - 2;
     System.Console.WriteLine("message count" + e.MessageCount);
     //var p = new MvcApplication();
     MvcApplication.ConnectToGmailAccountAndGetOrUpdateMails();
     System.Console.WriteLine("email received and list updated");
 }
Beispiel #3
0
        private void OnNewMessageReceived(object sender, NewMessageReceivedEventArgs e)
        {
            ConsoleExtensions.WriteLineWithColor(ConsoleColor.Green, $"New Message {e.MessageCount}");

            PrintInbox();
        }