Subscribes to a specified folder, adding 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 Subscribe ( _
	folder As String _
)
C#
public void Subscribe(
	string folder
)

Parameters

folder
Type: System..::..String
Folder to subscribe to.

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 SUBSCRIBE command.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also