StartIdle() public method

This method is blocking. The IDLE command may be used with any IMAP4 server implementation that returns "IDLE" as one of the supported capabilities to the CAPABILITY command. If the server does not advertise the IDLE capability, the client MUST NOT use the IDLE command and must poll for mailbox updates. http://tools.ietf.org/html/rfc2177
public StartIdle ( ) : void
return void
Exemplo n.º 1
0
        public void ThreadStart()
        {
            _clientIdle = AccountController.CreateClientByAccount(AccountController.Account);
            Thread.Sleep(1000);

            _clientIdle.StatusUpdateReceived += OnStatusUpdateReceived;
            _clientIdle.Select("INBOX");
            _clientIdle.StartIdle();
        }