Hunny Software Library Reference

Imap4Client.Rename Method 

Sends a RENAME command.

[Visual Basic]
Public Sub Rename( _
   ByVal oldMailboxName As String, _
   ByVal newMailboxName As String _
)
[C#]
public void Rename(
   string oldMailboxName,
   string newMailboxName
);

Parameters

oldMailboxName
The name of mailbox to be renamed.
newMailboxName
The new name for the mailbox.

Remarks

A RENAME command is used to change the name of an existing mailbox.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | RENAME command in the IMAP4 specification