Click or drag to resize
MimeKit

IImapClientEnableUTF8 Method

Enable the UTF8=ACCEPT extension.

Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
void EnableUTF8(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ObjectDisposedException The ImapClient has been disposed.
ServiceNotConnectedException The ImapClient is not connected.
ServiceNotAuthenticatedException The ImapClient is not authenticated.
InvalidOperationException UTF8=ACCEPT needs to be enabled before selecting a folder.
NotSupportedException The IMAP server does not support the UTF8=ACCEPT extension.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.
ImapCommandException The server replied to the ENABLE command with a NO or BAD response.
ImapProtocolException An IMAP protocol error occurred.
Remarks
Enables the UTF8=ACCEPT extension.
See Also