public NoOp ( |
||
cancellationToken | The cancellation token. | |
리턴 | void |
The NOOP
command is typically used to keep the connection with the IMAP server alive. When a client goes too long (typically 30 minutes) without sending any commands to the IMAP server, the IMAP server will close the connection with the client, forcing the client to reconnect before it can send any more commands.
The NOOP
command also provides a great way for a client to check for new messages.
When the IMAP server receives a NOOP
command, it will reply to the client with a list of pending updates such as EXISTS
and RECENT
counts on the currently selected folder. To receive these notifications, subscribe to the MailFolder.CountChanged and MailFolder.RecentChanged events, respectively.
For more information about the NOOP
command, see rfc3501.
public NoOp ( |
||
cancellationToken | The cancellation token. | |
리턴 | void |