ActiveUp.Net.Mail.Mailbox.CreateChild C# (CSharp) Method

CreateChild() public method

Creates a child mailbox.
public CreateChild ( string mailboxName ) : IMailbox
mailboxName string The name of the child mailbox to be created.
return IMailbox
		public IMailbox CreateChild(string mailboxName)
		{
			try
			{
				string separator = this.SourceClient.Command("list \"\" \"\"").Split('\"')[1].Split('\"')[0];
				return this.SourceClient.CreateMailbox(this.Name+separator+mailboxName);
			}
			catch(System.Net.Sockets.SocketException)
			{
				throw new Imap4Exception("CreateChild failed.\nThe mailbox' source client wasn't connected anymore.");
			}
		}