Hunny Software Library Reference

Imap4Client.Unsubscribe Method 

Sends an UNSUBSCRIBE command.

[Visual Basic]
Public Sub Unsubscribe( _
   ByVal mailboxName As String _
)
[C#]
public void Unsubscribe(
   string mailboxName
);

Parameters

mailboxName
The name of the mailbox to unsubscribe from.

Remarks

The UNSUBSCRIBE command removes a mailbox from the server's list of subscribed mailboxes for the current user.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | Subscribe method | UNSUBSCRIBE command in the IMAP4 specification