ImapFolder Class
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9083)
Represents an IMAP folder.
Syntax
public class ImapFolder
Inherited Members
Remarks
Instances of this class occur in a folder list returned by GetFolderList() methods, are returned by GetFolderInfo(String) method and by a CurrentFolder property. Not all of these three methods/properties return the same set of information - for example, only GetFolderList() methods return the Delimiter, but it is also the only one that doesn't return the TotalMessageCount, RecentMessageCount, etc. Please see the description of specific property to learn when it is available.
Properties
Name | Description |
---|---|
CanContainInferiors | Gets a value indicating whether any subfolders can exist under this folder. This value is only set for folders returned by a call to GetFolderList() methods. |
Delimiter | Gets a string that is used to delimit levels of hierarchy under this folder. It usually contains either '/' or '.'. This value is only set for folders returned by a call to GetFolderList() methods. For GetFolderInfo(String) method and CurrentFolder property, this will throw an exception. |
FirstUnseenMessageNumber | Gets the number of messages that have not been read. This property is not set for folders returned by a call to GetFolderList() and GetFolderInfo(String) methods and will contain a value of 0. |
IsInteresting | Gets a value indicating whether this folder contains messages that have been added since the last time the folder was selected. |
IsSelectable | Gets a value indicating whether it is possible to select this folder. |
Name | Gets the name of the folder. |
NextUniqueId | Gets the unique ID to be assigned to a next message that arrives into this folder. This property is not set for folders returned by a call to GetFolderList() methods and will contain a value of 0. Also, some servers don't support this, and null (Nothing in Visual Basic) will be returned for these as well. |
NotSeenMessageCount | Gets the number of messages that have not been read. This property is not set for folders returned by a call to GetFolderList() methods and will contain a value of 0. |
PermanentFlags | Gets message flags that can be changed permanently. |
ReadOnly | Gets a value indicating whether the folder is read-only. |
RecentMessageCount | Gets the number of messages that arrived recently. This property is not set for folders returned by a call to GetFolderList() methods and will contain a value of 0. |
SpecialUse | Returns folder purpose if known. This property only contains useful information if the IMAP server supports the XLIST command or extended LIST command (RFC 6154) and the folder list was returned using the GetFolderList() method. At the moment, this is not suppored in ImapFolderListMode.Subscribed mode. |
SupportedFlags | Gets supported message flags. |
TotalMessageCount | Gets the number of messages in the folder. |
ValidityId | Gets the validity ID of the mailbox. This property is not set for folders returned by a call to GetFolderList() methods and will contain a value of 0. |