Unsubscribes from a specified folder, removing it to a list of active folders that
appear in the folder listings with ImapFolderListMode set
to Subscribed.
Namespace:
Rebex.Net
Assembly:
Rebex.Imap (in Rebex.Imap.dll)
Syntax
Visual Basic |
---|
Public Sub Unsubscribe ( _ folder As String _ ) |
C# |
---|
public void Unsubscribe( string folder ) |
Parameters
- folder
- Type: System..::..String
Folder to unsubscribe from.
Remarks
The only difference between those folders that are subscribed and those that aren't is that a call to GetFolderList(String, ImapFolderListMode, Boolean) using the ImapFolderListMode.Subscribed will only return the subscribed (active) folders. This has absolutely NOTHING to do with notifications.
This method represents IMAP UNSUBSCRIBE command.