Renames a mailbox on the IMAP server.
Namespace: Jscape.EmailAssembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0
Syntax
C# |
---|
public void RenameMailbox( string mailbox, string newMailbox ) |
Visual Basic |
---|
Public Sub RenameMailbox ( _ mailbox As String, _ newMailbox As String _ ) |
Visual C++ |
---|
public: void RenameMailbox( String^ mailbox, String^ newMailbox ) |
Parameters
- mailbox
- Type: System..::..String
The name of the mailbox to rename.
- newMailbox
- Type: System..::..String
The new name of the mailbox.
Examples
This example renames the Test mailbox to oldTest.
CopyImap RenameMailbox
CopyImap RenameMailbox

myImap.RenameMailbox("Test", "oldTest");

myImap.RenameMailbox("Test", "oldTest")