Imap.GetFolderList Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
GetFolderList(String, ImapFolderListMode, Boolean)
Gets the list of subfolders in the specified folder.
Declaration
public ImapFolderCollection GetFolderList(string folder, ImapFolderListMode mode, bool recursive)
Parameters
Type | Name | Description |
---|---|---|
String | folder | The path to folder for which a list of subfolders is returned. |
ImapFolderListMode | mode | List mode that specifies whether to return all folders or subscribed only. |
Boolean | recursive | Specifies whether to return the whole subfolder tree. |
Returns
Type | Description |
---|---|
ImapFolderCollection | A list of subfolders. |
Remarks
To subscribe and unsubscribe to folders, use Subscribe(String) and Unsubscribe(String) methods.
To get a list of root subfolders, use an empty string for folder.
This method represents IMAP LIST and LSUB commands.
GetFolderList(String, ImapFolderListMode)
Gets the list of subfolders in the specified folder.
Declaration
public ImapFolderCollection GetFolderList(string folder, ImapFolderListMode mode)
Parameters
Type | Name | Description |
---|---|---|
String | folder | The path to folder for which a list of subfolders is returned. |
ImapFolderListMode | mode | List mode that specifies whether to return all folders or subscribed only. |
Returns
Type | Description |
---|---|
ImapFolderCollection | A list of subfolders. |
Remarks
To subscribe and unsubscribe to folders, use Subscribe(String) and Unsubscribe(String) methods.
To get a list of root subfolders, use an empty string for folder.
This method represents IMAP LIST and LSUB commands.
GetFolderList(String)
Gets the list of subfolders in the specified folder.
Declaration
public ImapFolderCollection GetFolderList(string folder)
Parameters
Type | Name | Description |
---|---|---|
String | folder | The path to folder for which a list of subfolders is returned. |
Returns
Type | Description |
---|---|
ImapFolderCollection | A list of subfolders. |
Remarks
To get a list of root subfolders, use an empty string for folder.
This method represents IMAP LIST and LSUB commands.
GetFolderList()
Gets the list of root subfolders.
Declaration
public ImapFolderCollection GetFolderList()
Returns
Type | Description |
---|---|
ImapFolderCollection | A list of subfolders. |
Remarks
This method represents IMAP LIST and LSUB commands.