ImapClient.ListMessages
ListMessages(string, ImapListFields, int)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(string folderName, ImapListFields fieldsList,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
fieldsList | ImapListFields | Fields that may be retrieved from the server. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- enum ImapListFields
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, ImapListFields, int)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
ImapListFields fieldsList, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
fieldsList | ImapListFields | Fields that may be retrieved from the server. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- interface IConnection
- enum ImapListFields
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string, IEnumerable<string>)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(string folderName, IEnumerable<string> uniqueIdLst)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
uniqueIdLst | IEnumerable`1 | UniqueId list for ImapMessageInfo to retrieve from a server. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string, IEnumerable<int>)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(string folderName, IEnumerable<int> sequenceNumberLst)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
sequenceNumberLst | IEnumerable`1 | sequenceNumber list for ImapMessageInfo to retrieve from a server. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, IEnumerable<string>)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
IEnumerable<string> uniqueIdLst)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
uniqueIdLst | IEnumerable`1 | UniqueId list for ImapMessageInfo to retrieve from a server. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, IEnumerable<int>)
Lists the messages. Gets an information for earch message
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
IEnumerable<int> sequenceNumberLst)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
sequenceNumberLst | IEnumerable`1 | sequenceNumber list for ImapMessageInfo to retrieve from a server. |
Return Value
ImapMessageInfoCollection
Remarks
Note that messages marked as deleted are not listed
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, long, bool, IEnumerable<string>)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
long modificationSequence, bool retrieveRecursively, IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
modificationSequence | Int64 | Modification sequence |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection)
Gets the list of messages in the current folder
public ImapMessageInfoCollection ListMessages(IConnection connection)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, bool)
Gets the list of messages in the current folder
public ImapMessageInfoCollection ListMessages(IConnection connection, bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, long)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public ImapMessageInfoCollection ListMessages(IConnection connection, long modificationSequence)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
modificationSequence | Int64 | Modification sequence |
Return Value
Collection of ImapMessageInfo
representing the messages information.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, bool)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages()
Gets the list of messages in the current folder
public ImapMessageInfoCollection ListMessages()
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IEnumerable<string>)
Gets the list of messages in the current folder
public ImapMessageInfoCollection ListMessages(IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(bool)
Gets the list of messages in the current folder
public ImapMessageInfoCollection ListMessages(bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(string folderName)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string, bool)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(string folderName, bool retrieveRecursively)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string, bool, IEnumerable<string>)
Gets the list of messages in the specified folder
public ImapMessageInfoCollection ListMessages(string folderName, bool retrieveRecursively,
IEnumerable<string> messageExtraFields)
Parameter | Type | Description |
---|---|---|
folderName | String | Folder to retrieve messages. |
retrieveRecursively | Boolean | Indicates, if messages have to be retrieved recursively. |
messageExtraFields | IEnumerable`1 | List of extra parameters for a message wich will be requested. |
Return Value
Collection of ImapMessageInfo objects
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(long)
Gets the list of messages in the current folder that have a modification sequence bigger than specified value. Please, see more https://tools.ietf.org/html/rfc7162
public ImapMessageInfoCollection ListMessages(long modificationSequence)
Parameter | Type | Description |
---|---|---|
modificationSequence | Int64 | Modification sequence |
Return Value
Collection of ImapMessageInfo
representing the messages information.
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, string, MailQuery, int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(IConnection connection, string folderName,
MailQuery query, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, MailQuery)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(IConnection connection, MailQuery query)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, MailQuery, int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(IConnection connection, MailQuery query,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(MailQuery)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(MailQuery query)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(string, MailQuery, int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(string folderName, MailQuery query,
int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
folderName | String | Messages location |
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(MailQuery, int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(MailQuery query, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
query | MailQuery | MailQuery that represents search query. |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo objects.
See Also
- class ImapMessageInfoCollection
- class MailQuery
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(IConnection, int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(IConnection connection, int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
connection | IConnection | Connection to a server |
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo
representing the messages information.
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- interface IConnection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email
ListMessages(int)
Gets the list of messages in the current folder.
public ImapMessageInfoCollection ListMessages(int maxNumberOfMessages)
Parameter | Type | Description |
---|---|---|
maxNumberOfMessages | Int32 | Maximum number of messages. |
Return Value
Collection of ImapMessageInfo
representing the messages information.
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | maxNumberOfMessages is negative. |
See Also
- class ImapMessageInfoCollection
- class ImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email