public Rename ( string newMailboxName ) : string | ||
newMailboxName | string | The new name of the mailbox. |
Résultat | string |
public string Rename(string newMailboxName)
{
try
{
string response = this.SourceClient.RenameMailbox(this.Name,newMailboxName);
this.Name = newMailboxName;
return response;
}
catch(System.Net.Sockets.SocketException)
{
throw new Imap4Exception("Rename failed.\nThe mailbox' source client wasn't connected anymore.");
}
}