Changes the name of the specified mailbox.

Namespace: S22.Imap
Assembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public void RenameMailbox(
	string mailbox,
	string newName
)

Parameters

mailbox
Type: System..::..String
The mailbox to rename.
newName
Type: System..::..String
The new name the mailbox will be renamed to.

Implements

IImapClient..::..RenameMailbox(String, String)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe mailbox parameter or the newName parameter is null.
S22.Imap..::..BadServerResponseExceptionThe mailbox could not be renamed; The message property of the exception contains the error message returned by the server.
System.IO..::..IOExceptionThere was a failure writing to or reading from the network.
System..::..ObjectDisposedExceptionThe ImapClient object has been disposed.
S22.Imap..::..NotAuthenticatedExceptionThe method was called in non-authenticated state, i.e. before logging in.

See Also