
**Inheritance:**
java.lang.Object, [com.aspose.email.EmailClient](../../com.aspose.email/emailclient)
```
public final class ImapClient extends EmailClient
```

Allows applications to access and manipulate messages by using the Internet Message Access Protocol (IMAP).
## Constructors

| Constructor | Description |
| --- | --- |
| [ImapClient()](#ImapClient--) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host)](#ImapClient-java.lang.String-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, short securityOptions)](#ImapClient-java.lang.String-short-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port)](#ImapClient-java.lang.String-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, int securityOptions)](#ImapClient-java.lang.String-int-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, String password)](#ImapClient-java.lang.String-java.lang.String-java.lang.String-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, String password, int securityOptions)](#ImapClient-java.lang.String-java.lang.String-java.lang.String-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, String password)](#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, String password, int securityOptions)](#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, String authInfo, boolean useOAuth)](#ImapClient-java.lang.String-java.lang.String-java.lang.String-boolean-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, String authInfo, boolean useOAuth, int securityOptions)](#ImapClient-java.lang.String-java.lang.String-java.lang.String-boolean-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, String authInfo, boolean useOAuth)](#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-boolean-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, String authInfo, boolean useOAuth, int securityOptions)](#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-boolean-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, ITokenProvider tokenProvider)](#ImapClient-java.lang.String-java.lang.String-com.aspose.email.ITokenProvider-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, String username, ITokenProvider tokenProvider, int securityOptions)](#ImapClient-java.lang.String-java.lang.String-com.aspose.email.ITokenProvider-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, ITokenProvider tokenProvider)](#ImapClient-java.lang.String-int-java.lang.String-com.aspose.email.ITokenProvider-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
| [ImapClient(String host, int port, String username, ITokenProvider tokenProvider, int securityOptions)](#ImapClient-java.lang.String-int-java.lang.String-com.aspose.email.ITokenProvider-int-) | Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class |
## Methods

| Method | Description |
| --- | --- |
| [addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#addMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message |
| [addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message |
| [addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#addMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#addMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#addMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message |
| [addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message |
| [addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#addMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#addMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message |
| [addMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message |
| [addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#addMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#addMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlags(String uniqueId, ImapMessageFlags flags)](#addMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message |
| [addMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message |
| [addMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#addMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#addMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#addMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#addMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#addMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#addMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message |
| [addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#addMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message |
| [appendMessage(IConnection connection, MailMessage message)](#appendMessage-com.aspose.email.IConnection-com.aspose.email.MailMessage-) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessage(IConnection connection, String fileName)](#appendMessage-com.aspose.email.IConnection-java.lang.String-) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessage(IConnection connection, String folderName, MailMessage message)](#appendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-) | Uploads the mail message to the specified folder |
| [appendMessage(IConnection connection, String folderName, String fileName)](#appendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Uploads the mail message to the specified folder |
| [appendMessage(MailMessage message)](#appendMessage-com.aspose.email.MailMessage-) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessage(String fileName)](#appendMessage-java.lang.String-) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessage(String folderName, MailMessage message)](#appendMessage-java.lang.String-com.aspose.email.MailMessage-) | Uploads the mail message to the specified folder |
| [appendMessage(String folderName, String fileName)](#appendMessage-java.lang.String-java.lang.String-) | Uploads the mail message to the specified folder |
| [appendMessages(IConnection connection, Iterable<MailMessage> messages)](#appendMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.MailMessage--) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages)](#appendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--) | Uploads the mail message to the specified folder |
| [appendMessages(Iterable<MailMessage> messages)](#appendMessages-java.lang.Iterable-com.aspose.email.MailMessage--) | Uploads the mail message to the current folder If current folder hasn't been specified default folder is used. |
| [appendMessages(String folderName, Iterable<MailMessage> messages)](#appendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--) | Uploads the mail message to the specified folder |
| [backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)](#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-) | Backups the content of the specified folders |
| [backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options)](#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-) | Backups the content of the specified folders |
| [backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options)](#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-) | Backups the content of the specified folders |
| [backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options)](#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-) | Backups the content of the specified folders |
| [backup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)](#backup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-) | Backups the content of the specified folders |
| [backup(ImapFolderInfoCollection folders, OutputStream stream, int options)](#backup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-) | Backups the content of the specified folders |
| [backup(ImapFolderInfoCollection folders, String fileName, BackupSettings options)](#backup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-) | Backups the content of the specified folders |
| [backup(ImapFolderInfoCollection folders, String fileName, int options)](#backup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-) | Backups the content of the specified folders |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags to the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Adds the flags of the message asynchronously |
| [beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Adds the flags of the message asynchronously |
| [beginAppendMessage(IConnection connection, MailMessage message)](#beginAppendMessage-com.aspose.email.IConnection-com.aspose.email.MailMessage-) | Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessage(IConnection connection, String fileName)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-) | Begins append message to the end of the current folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessage(IConnection connection, String folderName, MailMessage message)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback, Object state)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(IConnection connection, String folderName, String fileName)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback, Object state)](#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(MailMessage message)](#beginAppendMessage-com.aspose.email.MailMessage-) | Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessage(String fileName)](#beginAppendMessage-java.lang.String-) | Begins append message to the end of the current folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessage(String folderName, MailMessage message)](#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback)](#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback, Object state)](#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(String folderName, String fileName)](#beginAppendMessage-java.lang.String-java.lang.String-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback)](#beginAppendMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback, Object state)](#beginAppendMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessages(IConnection connection, Iterable<MailMessage> messages)](#beginAppendMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.MailMessage--) | Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages)](#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--) | Begins append message to the end of the specified folder |
| [beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback)](#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state)](#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessages(Iterable<MailMessage> messages)](#beginAppendMessages-java.lang.Iterable-com.aspose.email.MailMessage--) | Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessages(String folderName, Iterable<MailMessage> messages)](#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--) | Begins append message to the end of the specified folder |
| [beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback)](#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state)](#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(IConnection connection, Iterable<String> fileNames)](#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Begins append message to the end of the current folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames)](#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback)](#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state)](#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(Iterable<String> fileNames)](#beginAppendMessagesByName-java.lang.Iterable-java.lang.String--) | Begins append message to the end of the current folder If current folder hasn't been specified default folder is used. |
| [beginAppendMessagesByName(String folderName, Iterable<String> fileNames)](#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback)](#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins append message to the end of the specified folder |
| [beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state)](#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins append message to the end of the specified folder |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, int options)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins to backup the content of the specified folders |
| [beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state)](#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to backup the content of the specified folders |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Changes the flags of the message |
| [beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Changes the flags of the message |
| [beginClientCapabilities(IConnection connection, String[] capabilityNames)](#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String...-) | Notifies server which extensions are supported by client asyncronously. |
| [beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback)](#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String---com.aspose.ms.System.AsyncCallback-) | Notifies server which extensions are supported by client asyncronously. |
| [beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback, Object state)](#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String---com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Notifies server which extensions are supported by client asyncronously. |
| [beginClientCapabilities(String[] capabilityNames)](#beginClientCapabilities-java.lang.String...-) | Notifies server which extensions are supported by client asyncronously. |
| [beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback)](#beginClientCapabilities-java.lang.String---com.aspose.ms.System.AsyncCallback-) | Notifies server which extensions are supported by client asyncronously. |
| [beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback, Object state)](#beginClientCapabilities-java.lang.String---com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Notifies server which extensions are supported by client asyncronously. |
| [beginCommitDeletes()](#beginCommitDeletes--) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection)](#beginCommitDeletes-com.aspose.email.IConnection-) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection, System.AsyncCallback callback)](#beginCommitDeletes-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection, System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection, int sleep)](#beginCommitDeletes-com.aspose.email.IConnection-int-) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection, int sleep, System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions |
| [beginCommitDeletes(IConnection connection, Iterable<String> uidSet)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String uniqueId)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String startUid, String endUid)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(System.AsyncCallback callback)](#beginCommitDeletes-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions |
| [beginCommitDeletes(System.AsyncCallback callback, Object state)](#beginCommitDeletes-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions |
| [beginCommitDeletes(int sleep)](#beginCommitDeletes-int-) | Begins to commit the deletions |
| [beginCommitDeletes(int sleep, System.AsyncCallback callback, Object state)](#beginCommitDeletes-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions |
| [beginCommitDeletes(Iterable<String> uidSet)](#beginCommitDeletes-java.lang.Iterable-java.lang.String--) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback)](#beginCommitDeletes-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback, Object state)](#beginCommitDeletes-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String uniqueId)](#beginCommitDeletes-java.lang.String-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String uniqueId, System.AsyncCallback callback)](#beginCommitDeletes-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String uniqueId, System.AsyncCallback callback, Object state)](#beginCommitDeletes-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String startUid, String endUid)](#beginCommitDeletes-java.lang.String-java.lang.String-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback)](#beginCommitDeletes-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback, Object state)](#beginCommitDeletes-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to commit the deletions This method works only if server supports UIDPLUS extension. |
| [beginCopyMessage(IConnection connection, int sequenceNumber, String folderName)](#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-) | Begins an asynchronous copying. |
| [beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback)](#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous copying. |
| [beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous copying. |
| [beginCopyMessage(IConnection connection, String uniqueId, String folderName)](#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins an asynchronous copying. |
| [beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback)](#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous copying. |
| [beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous copying. |
| [beginCopyMessage(int sequenceNumber, String folderName)](#beginCopyMessage-int-java.lang.String-) | Begins an asynchronous copying. |
| [beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback)](#beginCopyMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous copying. |
| [beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous copying. |
| [beginCopyMessage(String uniqueId, String folderName)](#beginCopyMessage-java.lang.String-java.lang.String-) | Begins an asynchronous copying. |
| [beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback)](#beginCopyMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous copying. |
| [beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous copying. |
| [beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName)](#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback)](#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessages(int startSequence, int endSequence, String folderName)](#beginCopyMessages-int-int-java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback)](#beginCopyMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)](#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessages(String startUid, String endUid, String folderName)](#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback)](#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)](#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)](#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)](#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)](#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)](#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback)](#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(Iterable<String> uidSet, String folderName)](#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback)](#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins copy operation asynchronously. |
| [beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)](#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins copy operation asynchronously. |
| [beginCreateFolder(IConnection connection, String folderName)](#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-) | Begins an asynchronous folder creation. |
| [beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder creation. |
| [beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder creation. |
| [beginCreateFolder(String folderName)](#beginCreateFolder-java.lang.String-) | Begins an asynchronous folder creation. |
| [beginCreateFolder(String folderName, System.AsyncCallback callback)](#beginCreateFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder creation. |
| [beginCreateFolder(String folderName, System.AsyncCallback callback, Object state)](#beginCreateFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder creation. |
| [beginDeleteFolder(IConnection connection, String folderName)](#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-) | Begins an asynchronous folder deletion. |
| [beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder deletion. |
| [beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder deletion. |
| [beginDeleteFolder(String folderName)](#beginDeleteFolder-java.lang.String-) | Begins an asynchronous folder deletion. |
| [beginDeleteFolder(String folderName, System.AsyncCallback callback)](#beginDeleteFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder deletion. |
| [beginDeleteFolder(String folderName, System.AsyncCallback callback, Object state)](#beginDeleteFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder deletion. |
| [beginDeleteMessage(IConnection connection, int sequenceNumber)](#beginDeleteMessage-com.aspose.email.IConnection-int-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)](#beginDeleteMessage-com.aspose.email.IConnection-int-long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(IConnection connection, String uniqueId)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(int sequenceNumber)](#beginDeleteMessage-int-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback)](#beginDeleteMessage-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state)](#beginDeleteMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(int sequenceNumber, long modificationSequence)](#beginDeleteMessage-int-long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessage(String uniqueId)](#beginDeleteMessage-java.lang.String-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, boolean commitNow)](#beginDeleteMessage-java.lang.String-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessage-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessage-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, System.AsyncCallback callback)](#beginDeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, System.AsyncCallback callback, Object state)](#beginDeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence)](#beginDeleteMessage-java.lang.String-long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow)](#beginDeleteMessage-java.lang.String-long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessage-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessage-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(int startSequence, int endSequence)](#beginDeleteMessages-int-int-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback)](#beginDeleteMessages-int-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(int startSequence, int endSequence, long modificationSequence)](#beginDeleteMessages-int-int-long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-int-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-int-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-) | Begins an asynchronous messages deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid)](#beginDeleteMessages-java.lang.String-java.lang.String-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, boolean commitNow)](#beginDeleteMessages-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous messages deletion. |
| [beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence)](#beginDeleteMessages-java.lang.String-java.lang.String-long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow)](#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessages-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessages-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as deleted asynchronously |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-) | Begins an asynchronous messages deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message deletion. |
| [beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state)](#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message deletion. |
| [beginExistFolder(IConnection connection, String folderName)](#beginExistFolder-com.aspose.email.IConnection-java.lang.String-) | Check whether this folder exists |
| [beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginExistFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Check whether this folder exists |
| [beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginExistFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Check whether this folder exists |
| [beginExistFolder(String folderName)](#beginExistFolder-java.lang.String-) | Check whether this folder exists |
| [beginExistFolder(String folderName, System.AsyncCallback callback)](#beginExistFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Check whether this folder exists |
| [beginExistFolder(String folderName, System.AsyncCallback callback, Object state)](#beginExistFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Check whether this folder exists |
| [beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName)](#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-) | Begins fetch an attachment. |
| [beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback)](#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins fetch an attachment. |
| [beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state)](#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins fetch an attachment. |
| [beginFetchAttachment(int sequenceNumber, String attachmentName)](#beginFetchAttachment-int-java.lang.String-) | Begins fetch an attachment. |
| [beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback)](#beginFetchAttachment-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins fetch an attachment. |
| [beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state)](#beginFetchAttachment-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins fetch an attachment. |
| [beginFetchMessage(IConnection connection, int sequenceNumber)](#beginFetchMessage-com.aspose.email.IConnection-int-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment)](#beginFetchMessage-com.aspose.email.IConnection-int-boolean-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback)](#beginFetchMessage-com.aspose.email.IConnection-int-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state)](#beginFetchMessage-com.aspose.email.IConnection-int-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)](#beginFetchMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)](#beginFetchMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, String uniqueId)](#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)](#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)](#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber)](#beginFetchMessage-int-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber, boolean ignoreAttachment)](#beginFetchMessage-int-boolean-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback)](#beginFetchMessage-int-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state)](#beginFetchMessage-int-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber, System.AsyncCallback callback)](#beginFetchMessage-int-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(int sequenceNumber, System.AsyncCallback callback, Object state)](#beginFetchMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(String uniqueId)](#beginFetchMessage-java.lang.String-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(String uniqueId, System.AsyncCallback callback)](#beginFetchMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous message fetching. |
| [beginFetchMessage(String uniqueId, System.AsyncCallback callback, Object state)](#beginFetchMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous message fetching. |
| [beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers)](#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback)](#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state)](#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers)](#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback)](#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state)](#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(IConnection connection, Iterable<String> uids)](#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback)](#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback, Object state)](#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(Iterable<String> uids)](#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback)](#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins FetchMessages operation asynchronously |
| [beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback, Object state)](#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins FetchMessages operation asynchronously |
| [beginGetFolderInfo(IConnection connection, String folderName)](#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-) | Begins an asynchronous folder listing. |
| [beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback)](#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder listing. |
| [beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder listing. |
| [beginGetFolderInfo(String folderName)](#beginGetFolderInfo-java.lang.String-) | Begins an asynchronous folder listing. |
| [beginGetFolderInfo(String folderName, System.AsyncCallback callback)](#beginGetFolderInfo-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous folder listing. |
| [beginGetFolderInfo(String folderName, System.AsyncCallback callback, Object state)](#beginGetFolderInfo-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous folder listing. |
| [beginGetMessageThreads(BaseSearchConditions conditions, System.AsyncCallback callback, Object state)](#beginGetMessageThreads-com.aspose.email.BaseSearchConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting message threads asynchronously. |
| [beginGetMessageThreads(IConnection connection, BaseSearchConditions conditions, System.AsyncCallback callback, Object state)](#beginGetMessageThreads-com.aspose.email.IConnection-com.aspose.email.BaseSearchConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting message threads asynchronously. |
| [beginGetNamespaces()](#beginGetNamespaces--) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetNamespaces(IConnection connection)](#beginGetNamespaces-com.aspose.email.IConnection-) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetNamespaces(IConnection connection, System.AsyncCallback callback)](#beginGetNamespaces-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetNamespaces(IConnection connection, System.AsyncCallback callback, Object state)](#beginGetNamespaces-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetNamespaces(System.AsyncCallback callback)](#beginGetNamespaces-com.aspose.ms.System.AsyncCallback-) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetNamespaces(System.AsyncCallback callback, Object state)](#beginGetNamespaces-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting namespaces that are available on a server asynchronously. |
| [beginGetQuota(IConnection connection, String quotaRootName)](#beginGetQuota-com.aspose.email.IConnection-java.lang.String-) | Begins getting quota information |
| [beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback)](#beginGetQuota-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins getting quota information |
| [beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback, Object state)](#beginGetQuota-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting quota information |
| [beginGetQuota(String quotaRootName)](#beginGetQuota-java.lang.String-) | Begins getting quota information |
| [beginGetQuota(String quotaRootName, System.AsyncCallback callback)](#beginGetQuota-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins getting quota information |
| [beginGetQuota(String quotaRootName, System.AsyncCallback callback, Object state)](#beginGetQuota-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting quota information |
| [beginGetQuotaRoot(IConnection connection, String mailboxName)](#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-) | Begins getting quota root information for mailbox |
| [beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback)](#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins getting quota root information for mailbox |
| [beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback, Object state)](#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting quota root information for mailbox |
| [beginGetQuotaRoot(String mailboxName)](#beginGetQuotaRoot-java.lang.String-) | Begins getting quota root information for mailbox |
| [beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback)](#beginGetQuotaRoot-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins getting quota root information for mailbox |
| [beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback, Object state)](#beginGetQuotaRoot-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting quota root information for mailbox |
| [beginIntroduceClient()](#beginIntroduceClient--) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection)](#beginIntroduceClient-com.aspose.email.IConnection-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo)](#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback)](#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state)](#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection, System.AsyncCallback callback)](#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(IConnection connection, System.AsyncCallback callback, Object state)](#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo)](#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback)](#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state)](#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(System.AsyncCallback callback)](#beginIntroduceClient-com.aspose.ms.System.AsyncCallback-) | Begins introduce client information to a server asynchronously. |
| [beginIntroduceClient(System.AsyncCallback callback, Object state)](#beginIntroduceClient-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins introduce client information to a server asynchronously. |
| [beginListAttachments(int sequenceNumber, System.AsyncCallback callback, Object state)](#beginListAttachments-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) |  |
| [beginListFolders()](#beginListFolders--) | Begins to get the list of folders in the mailbox |
| [beginListFolders(boolean loadFullInfo)](#beginListFolders-boolean-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(boolean loadFullInfo, System.AsyncCallback callback)](#beginListFolders-boolean-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(boolean loadFullInfo, System.AsyncCallback callback, Object state)](#beginListFolders-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection)](#beginListFolders-com.aspose.email.IConnection-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, boolean loadFullInfo)](#beginListFolders-com.aspose.email.IConnection-boolean-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback)](#beginListFolders-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, System.AsyncCallback callback)](#beginListFolders-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(IConnection connection, String parentFolder)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(System.AsyncCallback callback)](#beginListFolders-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(System.AsyncCallback callback, Object state)](#beginListFolders-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of folders in the mailbox |
| [beginListFolders(String parentFolder)](#beginListFolders-java.lang.String-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo)](#beginListFolders-java.lang.String-boolean-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback)](#beginListFolders-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state)](#beginListFolders-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions)](#beginListFolders-java.lang.String-boolean-int-int-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback)](#beginListFolders-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state)](#beginListFolders-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, System.AsyncCallback callback)](#beginListFolders-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to get the list of subfolders in the specified folder |
| [beginListFolders(String parentFolder, System.AsyncCallback callback, Object state)](#beginListFolders-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get the list of subfolders in the specified folder |
| [beginListMessage(IConnection connection, int sequenceNumber)](#beginListMessage-com.aspose.email.IConnection-int-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)](#beginListMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)](#beginListMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields)](#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback)](#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber)](#beginListMessage-int-) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber, System.AsyncCallback callback)](#beginListMessage-int-com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber, System.AsyncCallback callback, Object state)](#beginListMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields)](#beginListMessage-int-java.lang.Iterable-java.lang.String--) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback)](#beginListMessage-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessage-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(String uniqueId)](#beginListMessage-java.lang.String-) | Begins to get information about a message. |
| [beginListMessage(String uniqueId, System.AsyncCallback callback)](#beginListMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(String uniqueId, System.AsyncCallback callback, Object state)](#beginListMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessage(String uniqueId, Iterable<String> messageExtraFields)](#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--) | Begins to get information about a message. |
| [beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback)](#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-) | Begins to get information about a message. |
| [beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to get information about a message. |
| [beginListMessages()](#beginListMessages--) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(IConnection connection, int maxNumberOfMessages)](#beginListMessages-com.aspose.email.IConnection-int-) | Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162 |
| [beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback)](#beginListMessages-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162 |
| [beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162 |
| [beginListMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.IConnection-java.lang.String-long-boolean-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(IConnection connection, long modificationSequence)](#beginListMessages-com.aspose.email.IConnection-long-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback)](#beginListMessages-com.aspose.email.IConnection-long-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.IConnection-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(MailQuery query)](#beginListMessages-com.aspose.email.MailQuery-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(MailQuery query, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.MailQuery-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(MailQuery query, int maxNumberOfMessages)](#beginListMessages-com.aspose.email.MailQuery-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(System.AsyncCallback callback)](#beginListMessages-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(System.AsyncCallback callback, Object state)](#beginListMessages-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName)](#beginListMessages-java.lang.String-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, MailQuery query)](#beginListMessages-java.lang.String-com.aspose.email.MailQuery-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, MailQuery query, System.AsyncCallback callback, Object state)](#beginListMessages-java.lang.String-com.aspose.email.MailQuery-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously |
| [beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages)](#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback)](#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state)](#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, System.AsyncCallback callback)](#beginListMessages-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(String folderName, System.AsyncCallback callback, Object state)](#beginListMessages-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessages(long modificationSequence)](#beginListMessages-long-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(long modificationSequence, System.AsyncCallback callback)](#beginListMessages-long-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessages(long modificationSequence, System.AsyncCallback callback, Object state)](#beginListMessages-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [beginListMessagesByPage(IConnection connection, PageInfo page)](#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage)](#beginListMessagesByPage-com.aspose.email.IConnection-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset)](#beginListMessagesByPage-com.aspose.email.IConnection-int-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettingsAsync settings)](#beginListMessagesByPage-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.email.PageSettingsAsync-) | Begins getting the list of messages asynchronously |
| [beginListMessagesByPage(PageInfo page)](#beginListMessagesByPage-com.aspose.email.PageInfo-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(PageInfo page, System.AsyncCallback callback)](#beginListMessagesByPage-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(PageInfo page, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage)](#beginListMessagesByPage-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback)](#beginListMessagesByPage-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage, int pageOffset)](#beginListMessagesByPage-int-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage, int pageOffset, PageSettingsAsync settings)](#beginListMessagesByPage-int-int-com.aspose.email.PageSettingsAsync-) | Begins getting the list of messages asynchronously |
| [beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback)](#beginListMessagesByPage-int-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-) | Begins getting the list of messages asynchronously in the current folder |
| [beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state)](#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins getting the list of messages asynchronously in the current folder |
| [beginMoveFolder(IConnection connection, String newParentFolder, String folderName)](#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback)](#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback, Object state)](#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveFolder(String newParentFolder, String folderName)](#beginMoveFolder-java.lang.String-java.lang.String-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback)](#beginMoveFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback, Object state)](#beginMoveFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Moves specified folder and its subfolders to new location asynchronously. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName)](#beginMoveMessage-int-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions)](#beginMoveMessage-int-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessage-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessage-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback)](#beginMoveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName)](#beginMoveMessage-java.lang.String-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions)](#beginMoveMessage-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessage-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessage-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback)](#beginMoveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName)](#beginMoveMessages-int-int-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions)](#beginMoveMessages-int-int-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback)](#beginMoveMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins an asynchronous moving. |
| [beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)](#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins an asynchronous moving. |
| [beginNoop()](#beginNoop--) | Begins to execute 'No operation' command |
| [beginNoop(IConnection connection)](#beginNoop-com.aspose.email.IConnection-) | Begins to execute 'No operation' command |
| [beginNoop(IConnection connection, System.AsyncCallback callback)](#beginNoop-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins to execute 'No operation' command |
| [beginNoop(IConnection connection, System.AsyncCallback callback, Object state)](#beginNoop-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to execute 'No operation' command |
| [beginNoop(System.AsyncCallback callback)](#beginNoop-com.aspose.ms.System.AsyncCallback-) | Begins to execute 'No operation' command |
| [beginNoop(System.AsyncCallback callback, Object state)](#beginNoop-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to execute 'No operation' command |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-) | Removes the flags of the message asynchronously |
| [beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)](#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Removes the flags of the message asynchronously |
| [beginRenameFolder(IConnection connection, String folderName, String newFolderName)](#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins RenameFolder operation asynchronously |
| [beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback)](#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins RenameFolder operation asynchronously |
| [beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback, Object state)](#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins RenameFolder operation asynchronously |
| [beginRenameFolder(String folderName, String newFolderName)](#beginRenameFolder-java.lang.String-java.lang.String-) | Begins RenameFolder operation asynchronously |
| [beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback)](#beginRenameFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins RenameFolder operation asynchronously |
| [beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback, Object state)](#beginRenameFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins RenameFolder operation asynchronously |
| [beginRequestCheckpoint()](#beginRequestCheckpoint--) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRequestCheckpoint(IConnection connection)](#beginRequestCheckpoint-com.aspose.email.IConnection-) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback)](#beginRequestCheckpoint-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback, Object state)](#beginRequestCheckpoint-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRequestCheckpoint(System.AsyncCallback callback)](#beginRequestCheckpoint-com.aspose.ms.System.AsyncCallback-) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRequestCheckpoint(System.AsyncCallback callback, Object state)](#beginRequestCheckpoint-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins request a checkpoint of the currently selected mailbox. |
| [beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(IConnection connection, PersonalStorage pst, int options)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(IConnection connection, InputStream stream, int options)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-) | Begins to restore imap folders from the given stream. |
| [beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the given stream. |
| [beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the given stream. |
| [beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options)](#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(IConnection connection, String fileName, int options)](#beginRestore-com.aspose.email.IConnection-java.lang.String-int-) | Begins to restore imap folders from the specified personal storage file. |
| [beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.IConnection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the specified personal storage file. |
| [beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.IConnection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the specified personal storage file. |
| [beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options)](#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, ImapRestoreSettingsAsync settings)](#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapRestoreSettingsAsync-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, int options)](#beginRestore-com.aspose.email.PersonalStorage-int-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback)](#beginRestore-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback, Object state)](#beginRestore-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the given personal storage. |
| [beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options)](#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the given stream. |
| [beginRestore(InputStream stream, int options)](#beginRestore-java.io.InputStream-int-) | Begins to restore imap folders from the given stream. |
| [beginRestore(InputStream stream, int options, System.AsyncCallback callback)](#beginRestore-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the given stream. |
| [beginRestore(InputStream stream, int options, System.AsyncCallback callback, Object state)](#beginRestore-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the given stream. |
| [beginRestore(String fileName, ImapFolderInfoCollection folders, int options)](#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)](#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)](#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore the specified imap folders from the specified personal storage file. |
| [beginRestore(String fileName, int options)](#beginRestore-java.lang.String-int-) | Begins to restore imap folders from the specified personal storage file. |
| [beginRestore(String fileName, int options, System.AsyncCallback callback)](#beginRestore-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins to restore imap folders from the specified personal storage file. |
| [beginRestore(String fileName, int options, System.AsyncCallback callback, Object state)](#beginRestore-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to restore imap folders from the specified personal storage file. |
| [beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream)](#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback)](#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state)](#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, int sequenceNumber, String fileName)](#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback)](#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback, Object state)](#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, String fileName)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback, Object state)](#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, OutputStream resultStream)](#beginSaveMessage-int-java.io.OutputStream-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback)](#beginSaveMessage-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state)](#beginSaveMessage-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, String fileName)](#beginSaveMessage-int-java.lang.String-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback)](#beginSaveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback, Object state)](#beginSaveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, OutputStream resultStream)](#beginSaveMessage-java.lang.String-java.io.OutputStream-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback)](#beginSaveMessage-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state)](#beginSaveMessage-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, String fileName)](#beginSaveMessage-java.lang.String-java.lang.String-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback)](#beginSaveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins SaveMessage operation asynchronously |
| [beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback, Object state)](#beginSaveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins SaveMessage operation asynchronously |
| [beginSelectFolder(IConnection connection, String folderName)](#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(IConnection connection, String folderName, Boolean readOnly, System.AsyncCallback callback, Object state)](#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-java.lang.Boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(String folderName)](#beginSelectFolder-java.lang.String-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(String folderName, System.AsyncCallback callback)](#beginSelectFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(String folderName, System.AsyncCallback callback, Object state)](#beginSelectFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins select the specified folder asynchronously. |
| [beginSelectFolder(String folderName, Boolean readOnly, System.AsyncCallback callback, Object state)](#beginSelectFolder-java.lang.String-java.lang.Boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins select the specified folder asynchronously. |
| [beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit)](#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-) | Begins setting quota information |
| [beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback)](#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins setting quota information |
| [beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state)](#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins setting quota information |
| [beginSetQuota(String quotaRootName, String resourceName, int resourceLimit)](#beginSetQuota-java.lang.String-java.lang.String-int-) | Begins setting quota information |
| [beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback)](#beginSetQuota-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-) | Begins setting quota information |
| [beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state)](#beginSetQuota-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins setting quota information |
| [beginSortMessageThreads(IConnection connection, SortConditions conditions, System.AsyncCallback callback, Object state)](#beginSortMessageThreads-com.aspose.email.IConnection-com.aspose.email.SortConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins sorting message threads asynchronously. |
| [beginSortMessageThreads(SortConditions conditions, System.AsyncCallback callback, Object state)](#beginSortMessageThreads-com.aspose.email.SortConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins sorting message threads asynchronously. |
| [beginSubscribeFolder(IConnection connection, String folderName)](#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginSubscribeFolder(String folderName)](#beginSubscribeFolder-java.lang.String-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginSubscribeFolder(String folderName, System.AsyncCallback callback)](#beginSubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginSubscribeFolder(String folderName, System.AsyncCallback callback, Object state)](#beginSubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber)](#beginUndeleteMessage-com.aspose.email.IConnection-int-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)](#beginUndeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)](#beginUndeleteMessage-com.aspose.email.IConnection-int-long-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback)](#beginUndeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber)](#beginUndeleteMessage-int-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback)](#beginUndeleteMessage-int-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber, long modificationSequence)](#beginUndeleteMessage-int-long-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback)](#beginUndeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId)](#beginUndeleteMessage-java.lang.String-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId, System.AsyncCallback callback)](#beginUndeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId, long modificationSequence)](#beginUndeleteMessage-java.lang.String-long-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback)](#beginUndeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-) | Marks a message with the specified sequence number as not deleted. |
| [beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)](#beginUndeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Marks a message with the specified sequence number as not deleted. |
| [beginUnselectFolder()](#beginUnselectFolder--) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnselectFolder(boolean doNotExpunge)](#beginUnselectFolder-boolean-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback)](#beginUnselectFolder-boolean-com.aspose.ms.System.AsyncCallback-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback, Object state)](#beginUnselectFolder-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(IConnection connection)](#beginUnselectFolder-com.aspose.email.IConnection-) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnselectFolder(IConnection connection, boolean doNotExpunge)](#beginUnselectFolder-com.aspose.email.IConnection-boolean-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback)](#beginUnselectFolder-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback, Object state)](#beginUnselectFolder-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Unselects folder which are currently selected asyncronously. |
| [beginUnselectFolder(IConnection connection, System.AsyncCallback callback)](#beginUnselectFolder-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnselectFolder(IConnection connection, System.AsyncCallback callback, Object state)](#beginUnselectFolder-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnselectFolder(System.AsyncCallback callback)](#beginUnselectFolder-com.aspose.ms.System.AsyncCallback-) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnselectFolder(System.AsyncCallback callback, Object state)](#beginUnselectFolder-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously. |
| [beginUnsubscribeFolder(IConnection connection, String folderName)](#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback)](#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)](#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginUnsubscribeFolder(String folderName)](#beginUnsubscribeFolder-java.lang.String-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginUnsubscribeFolder(String folderName, System.AsyncCallback callback)](#beginUnsubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginUnsubscribeFolder(String folderName, System.AsyncCallback callback, Object state)](#beginUnsubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes |
| [beginValidateCredentials()](#beginValidateCredentials--) | Begins to execute credentials validation |
| [beginValidateCredentials(IConnection connection)](#beginValidateCredentials-com.aspose.email.IConnection-) | Begins to execute credentials validation |
| [beginValidateCredentials(IConnection connection, System.AsyncCallback callback)](#beginValidateCredentials-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-) | Begins to execute credentials validation |
| [beginValidateCredentials(IConnection connection, System.AsyncCallback callback, Object state)](#beginValidateCredentials-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to execute credentials validation |
| [beginValidateCredentials(System.AsyncCallback callback)](#beginValidateCredentials-com.aspose.ms.System.AsyncCallback-) | Begins to execute credentials validation |
| [beginValidateCredentials(System.AsyncCallback callback, Object state)](#beginValidateCredentials-com.aspose.ms.System.AsyncCallback-java.lang.Object-) | Begins to execute credentials validation |
| [bindIPEndPoint(BindIPEndPointHandler handler)](#bindIPEndPoint-com.aspose.email.BindIPEndPointHandler-) | Associates a Socket with a local endpoint. |
| [cancelAsyncOperation(System.IAsyncResult asyncResult)](#cancelAsyncOperation-com.aspose.ms.System.IAsyncResult-) | Cancels asynchronous operation. |
| [changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#changeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#changeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#changeMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#changeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#changeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(String uniqueId, ImapMessageFlags flags)](#changeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#changeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#changeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#changeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#changeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#changeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Changes the flags of the message |
| [changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#changeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Changes the flags of the message |
| [clientCapabilities(IConnection connection, String[] capabilityNames)](#clientCapabilities-com.aspose.email.IConnection-java.lang.String...-) | Notifies server which extensions are supported by client. |
| [clientCapabilities(String[] capabilityNames)](#clientCapabilities-java.lang.String...-) | Notifies server which extensions are supported by client. |
| [close()](#close--) |  |
| [commitDeletes()](#commitDeletes--) | Commit the deletions |
| [commitDeletes(IConnection connection)](#commitDeletes-com.aspose.email.IConnection-) | Commit the deletions |
| [commitDeletes(IConnection connection, int sleep)](#commitDeletes-com.aspose.email.IConnection-int-) | Commit the deletions |
| [commitDeletes(IConnection connection, Iterable<String> uidSet)](#commitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Commit the deletions This method works only if server supports UIDPLUS extension. |
| [commitDeletes(IConnection connection, String uniqueId)](#commitDeletes-com.aspose.email.IConnection-java.lang.String-) | Commit the deletions |
| [commitDeletes(IConnection connection, String startUid, String endUid)](#commitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Commit the deletions This method works only if server supports UIDPLUS extension. |
| [commitDeletes(int sleep)](#commitDeletes-int-) | Commit the deletions |
| [commitDeletes(Iterable<String> uidSet)](#commitDeletes-java.lang.Iterable-java.lang.String--) | Commit the deletions This method works only if server supports UIDPLUS extension. |
| [commitDeletes(String uniqueId)](#commitDeletes-java.lang.String-) | Commit the deletions This method works only if server supports UIDPLUS extension. |
| [commitDeletes(String startUid, String endUid)](#commitDeletes-java.lang.String-java.lang.String-) | Commit the deletions This method works only if server supports UIDPLUS extension. |
| [connectIPEndPoint(BindIPEndPointHandler handler)](#connectIPEndPoint-com.aspose.email.BindIPEndPointHandler-) | Associates a Socket with a remote endpoint. |
| [copyMessage(IConnection connection, int sequenceNumber, String folderName)](#copyMessage-com.aspose.email.IConnection-int-java.lang.String-) | Copies the message |
| [copyMessage(IConnection connection, String uniqueId, String folderName)](#copyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Copies the message |
| [copyMessage(int sequenceNumber, String folderName)](#copyMessage-int-java.lang.String-) | Copies the message |
| [copyMessage(String uniqueId, String folderName)](#copyMessage-java.lang.String-java.lang.String-) | Copies the message |
| [copyMessages(IConnection connection, int startSequence, int endSequence, String folderName)](#copyMessages-com.aspose.email.IConnection-int-int-java.lang.String-) | Copy the messaeg |
| [copyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#copyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Copy messages |
| [copyMessages(IConnection connection, String startUid, String endUid, String folderName)](#copyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-) | Copy messages |
| [copyMessages(int startSequence, int endSequence, String folderName)](#copyMessages-int-int-java.lang.String-) | Copy messages |
| [copyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#copyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Copy messages |
| [copyMessages(String startUid, String endUid, String folderName)](#copyMessages-java.lang.String-java.lang.String-java.lang.String-) | Copy messages |
| [copyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)](#copyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Copy the messaeg |
| [copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)](#copyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Copy messages |
| [copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)](#copyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-) | Copy messages |
| [copyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)](#copyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-) | Copy messages |
| [copyMessagesByUids(Iterable<String> uidSet, String folderName)](#copyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-) | Copy messages |
| [createConnection()](#createConnection--) | Creates new independent connection for operations not linked to threads (not default connection). |
| [createConnection(boolean createAsDefaultConnection)](#createConnection-boolean-) | Creates new (default or independent) connection for operations. |
| [createFolder(IConnection connection, String folderName)](#createFolder-com.aspose.email.IConnection-java.lang.String-) | Creates a folder with the specified name |
| [createFolder(String folderName)](#createFolder-java.lang.String-) | Creates a folder with the specified name |
| [deleteFolder(IConnection connection, String folderName)](#deleteFolder-com.aspose.email.IConnection-java.lang.String-) | Deletes a specified folder. |
| [deleteFolder(String folderName)](#deleteFolder-java.lang.String-) | Deletes a specified folder. |
| [deleteMessage(IConnection connection, int sequenceNumber)](#deleteMessage-com.aspose.email.IConnection-int-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)](#deleteMessage-com.aspose.email.IConnection-int-long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(IConnection connection, String uniqueId)](#deleteMessage-com.aspose.email.IConnection-java.lang.String-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(IConnection connection, String uniqueId, boolean commitNow)](#deleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessage(IConnection connection, String uniqueId, long modificationSequence)](#deleteMessage-com.aspose.email.IConnection-java.lang.String-long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow)](#deleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessage(int sequenceNumber)](#deleteMessage-int-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(int sequenceNumber, long modificationSequence)](#deleteMessage-int-long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(String uniqueId)](#deleteMessage-java.lang.String-) | Marks a message with the specified sequence number as deleted |
| [deleteMessage(String uniqueId, boolean commitNow)](#deleteMessage-java.lang.String-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessage(String uniqueId, long modificationSequence)](#deleteMessage-java.lang.String-long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessage(String uniqueId, long modificationSequence, boolean commitNow)](#deleteMessage-java.lang.String-long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(IConnection connection, int startSequence, int endSequence)](#deleteMessages-com.aspose.email.IConnection-int-int-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence)](#deleteMessages-com.aspose.email.IConnection-int-int-long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet)](#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)](#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)](#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)](#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(IConnection connection, String startUid, String endUid)](#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow)](#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence)](#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow)](#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(int startSequence, int endSequence)](#deleteMessages-int-int-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(int startSequence, int endSequence, long modificationSequence)](#deleteMessages-int-int-long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(Iterable<ImapMessageInfo> messageInfoSet)](#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)](#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)](#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)](#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(String startUid, String endUid)](#deleteMessages-java.lang.String-java.lang.String-) | Marks a message with the specified sequence number as deleted |
| [deleteMessages(String startUid, String endUid, boolean commitNow)](#deleteMessages-java.lang.String-java.lang.String-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessages(String startUid, String endUid, long modificationSequence)](#deleteMessages-java.lang.String-java.lang.String-long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow)](#deleteMessages-java.lang.String-java.lang.String-long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet)](#deleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence)](#deleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesBySequences(Iterable<Integer> sequenceSet)](#deleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence)](#deleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesByUids(IConnection connection, Iterable<String> uidSet)](#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow)](#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence)](#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow)](#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessagesByUids(Iterable<String> uidSet)](#deleteMessagesByUids-java.lang.Iterable-java.lang.String--) | Marks a message with the specified sequence number as deleted |
| [deleteMessagesByUids(Iterable<String> uidSet, boolean commitNow)](#deleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence)](#deleteMessagesByUids-java.lang.Iterable-java.lang.String--long-) | Marks a message with the specified unique identifier as deleted |
| [deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow)](#deleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-) | Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. |
| [dispose()](#dispose--) | Finalizes all operations with a server. |
| [endAddMessageFlags(System.IAsyncResult asyncResult)](#endAddMessageFlags-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endAppendMessage(System.IAsyncResult asyncResult)](#endAppendMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endAppendMessages(System.IAsyncResult asyncResult)](#endAppendMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endBackup(System.IAsyncResult asyncResult)](#endBackup-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endChangeMessageFlags(System.IAsyncResult asyncResult)](#endChangeMessageFlags-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endClientCapabilities(System.IAsyncResult asyncResult)](#endClientCapabilities-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endCommitDeletes(System.IAsyncResult asyncResult)](#endCommitDeletes-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endCopyMessage(System.IAsyncResult asyncResult)](#endCopyMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endCopyMessages(System.IAsyncResult asyncResult)](#endCopyMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endCreateFolder(System.IAsyncResult asyncResult)](#endCreateFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous folder creation to complete. |
| [endDeleteFolder(System.IAsyncResult asyncResult)](#endDeleteFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous folder deletion to complete. |
| [endDeleteMessage(System.IAsyncResult asyncResult)](#endDeleteMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous message deletion to complete. |
| [endDeleteMessages(System.IAsyncResult asyncResult)](#endDeleteMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous message deletion to complete. |
| [endExistFolder(System.IAsyncResult asyncResult)](#endExistFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endExistFolder(System.IAsyncResult asyncResult, ImapFolderInfo[] folderInfo)](#endExistFolder-com.aspose.ms.System.IAsyncResult-com.aspose.email.ImapFolderInfo---) | Waits for the pending asynchronous operation to complete. |
| [endFetchAttachment(System.IAsyncResult asyncResult)](#endFetchAttachment-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous operation to complete. |
| [endFetchMessage(System.IAsyncResult asyncResult)](#endFetchMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous message fetching to complete. |
| [endFetchMessages(System.IAsyncResult asyncResult)](#endFetchMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous operation to complete. |
| [endGetFolderInfo(System.IAsyncResult asyncResult)](#endGetFolderInfo-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous folder listing to complete. |
| [endGetMessageThreads(System.IAsyncResult asyncResult)](#endGetMessageThreads-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous folder deletion to complete. |
| [endGetNamespaces(System.IAsyncResult asyncResult)](#endGetNamespaces-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endGetQuota(System.IAsyncResult asyncResult)](#endGetQuota-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endGetQuotaRoot(System.IAsyncResult asyncResult)](#endGetQuotaRoot-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endIntroduceClient(System.IAsyncResult asyncResult)](#endIntroduceClient-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endListAttachments(System.IAsyncResult asyncResult)](#endListAttachments-com.aspose.ms.System.IAsyncResult-) |  |
| [endListFolders(System.IAsyncResult asyncResult)](#endListFolders-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endListMessage(System.IAsyncResult asyncResult)](#endListMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous ListMessage operation to complete. |
| [endListMessages(System.IAsyncResult asyncResult)](#endListMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous ListMessages operation to complete. |
| [endListMessagesByPage(System.IAsyncResult asyncResult)](#endListMessagesByPage-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous ListMessagesByPage operation to complete. |
| [endMoveFolder(System.IAsyncResult asyncResult)](#endMoveFolder-com.aspose.ms.System.IAsyncResult-) | Waits for completion of the asynchronous operation. |
| [endMoveMessage(System.IAsyncResult asyncResult)](#endMoveMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endMoveMessages(System.IAsyncResult asyncResult)](#endMoveMessages-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endNoop(System.IAsyncResult asyncResult)](#endNoop-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endRemoveMessageFlags(System.IAsyncResult asyncResult)](#endRemoveMessageFlags-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endRenameFolder(System.IAsyncResult asyncResult)](#endRenameFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous operation to complete. |
| [endRequestCheckpoint(System.IAsyncResult asyncResult)](#endRequestCheckpoint-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endRestore(System.IAsyncResult asyncResult)](#endRestore-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endSaveMessage(System.IAsyncResult asyncResult)](#endSaveMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the asynchronous operation to complete. |
| [endSelectFolder(System.IAsyncResult asyncResult)](#endSelectFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous message fetching to complete. |
| [endSetQuota(System.IAsyncResult asyncResult)](#endSetQuota-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endSortMessageThreads(System.IAsyncResult asyncResult)](#endSortMessageThreads-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous folder deletion to complete. |
| [endSubscribeFolder(System.IAsyncResult asyncResult)](#endSubscribeFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endUndeleteMessage(System.IAsyncResult asyncResult)](#endUndeleteMessage-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endUnselectFolder(System.IAsyncResult asyncResult)](#endUnselectFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endUnsubscribeFolder(System.IAsyncResult asyncResult)](#endUnsubscribeFolder-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [endValidateCredentials(System.IAsyncResult asyncResult)](#endValidateCredentials-com.aspose.ms.System.IAsyncResult-) | Waits for the pending asynchronous operation to complete. |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [existFolder(IConnection connection, String folderName)](#existFolder-com.aspose.email.IConnection-java.lang.String-) | Check whether this folder exists |
| [existFolder(IConnection connection, String folderName, ImapFolderInfo[] folderInfo)](#existFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfo---) | Check whether this folder exists, extract folder info if so |
| [existFolder(String folderName)](#existFolder-java.lang.String-) | Check whether this folder exists |
| [existFolder(String folderName, ImapFolderInfo[] folderInfo)](#existFolder-java.lang.String-com.aspose.email.ImapFolderInfo---) | Check whether this folder exists, extract folder info if so |
| [fetchAttachment(IConnection connection, int sequenceNumber, String attachmentName)](#fetchAttachment-com.aspose.email.IConnection-int-java.lang.String-) | Fetches the specified attachment |
| [fetchAttachment(int sequenceNumber, String attachmentName)](#fetchAttachment-int-java.lang.String-) | Fetches the specified attachment |
| [fetchMessage(IConnection connection, int sequenceNumber)](#fetchMessage-com.aspose.email.IConnection-int-) | Fetches the message |
| [fetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment)](#fetchMessage-com.aspose.email.IConnection-int-boolean-) | Fetches the message |
| [fetchMessage(IConnection connection, String uniqueId)](#fetchMessage-com.aspose.email.IConnection-java.lang.String-) | Fetches the message |
| [fetchMessage(int sequenceNumber)](#fetchMessage-int-) | Fetches the message |
| [fetchMessage(int sequenceNumber, boolean ignoreAttachment)](#fetchMessage-int-boolean-) | Fetches the message |
| [fetchMessage(String uniqueId)](#fetchMessage-java.lang.String-) | Fetches the message |
| [fetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers)](#fetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--) | Fetches the messages |
| [fetchMessagesBySequences(Iterable<Integer> sequenceNumbers)](#fetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--) | Fetches the messages |
| [fetchMessagesByUids(IConnection connection, Iterable<String> uids)](#fetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--) | Fetches the messages |
| [fetchMessagesByUids(Iterable<String> uids)](#fetchMessagesByUids-java.lang.Iterable-java.lang.String--) | Fetches the messages |
| [getAccessToken()](#getAccessToken--) | Gets or sets the access token. |
| [getAllowedAuthentication()](#getAllowedAuthentication--) | Gets or sets enumeration of allowed by user authentication types |
| [getAnnotateSupported()](#getAnnotateSupported--) | Gets information whether ANNOTATE extension is supported See more: https://tools.ietf.org/html/rfc5257 |
| [getAutoCommit()](#getAutoCommit--) | Indicates, whether commit operation are executed automatically when folder is changed or before connection is closed. |
| [getCapabilities()](#getCapabilities--) | Get Capabilities. |
| [getChildrenSupported()](#getChildrenSupported--) | Gets information whether CHILDREN extension is supported See more: https://tools.ietf.org/html/rfc3348 |
| [getClass()](#getClass--) |  |
| [getClientCertificates()](#getClientCertificates--) | Contains collection of clients certificates |
| [getClientIdentificationInfo()](#getClientIdentificationInfo--) | Gets or sets client identification information See more: https://tools.ietf.org/html/rfc2971 |
| [getCompressSupported()](#getCompressSupported--) | Gets information whether COMPRESS extension is supported See more: https://tools.ietf.org/html/rfc4978 |
| [getCondstoreSupported()](#getCondstoreSupported--) | Gets information whether CONDSTORE extension is supported See more: https://tools.ietf.org/html/rfc7162 |
| [getConnectionAsgmtMode()](#getConnectionAsgmtMode--) | Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can't be created or disposed manually. |
| [getConnectionCheckupPeriod()](#getConnectionCheckupPeriod--) | Period of connection checking up in milliseconds. |
| [getConnectionState()](#getConnectionState--) | Gets the current state of the connection. |
| [getConnectionsQuantity()](#getConnectionsQuantity--) | Gets or sets quantity of connections in multy-connection mode |
| [getCredentialsEncoding()](#getCredentialsEncoding--) | Gets or sets Credentials Encoding |
| [getCurrentConnection()](#getCurrentConnection--) | Gets current connection according to ConnectionAsgmtMode option |
| [getCurrentFolder()](#getCurrentFolder--) | Gets the current folder |
| [getDefaultFolder()](#getDefaultFolder--) | Default folder for ImapClients |
| [getDefaultPort()](#getDefaultPort--) | Gets default port for client |
| [getDelimiter()](#getDelimiter--) | Gets or sets delimiter of folders hierarhy. |
| [getESearchSupported()](#getESearchSupported--) | Gets information whether ESEARCH extension is supported See more: https://tools.ietf.org/html/rfc4731 |
| [getEnableLogger()](#getEnableLogger--) | Gets or sets value which allows enable/disable logger |
| [getEnableSupported()](#getEnableSupported--) | Gets information whether ENABLE extension is supported See more: https://tools.ietf.org/html/rfc5161 |
| [getExchangeIdAutomatically()](#getExchangeIdAutomatically--) | Gets or sets value which indicates whether client should to introduce information about itself to a server automatically. |
| [getExtendedListSupported()](#getExtendedListSupported--) | Gets information whether LIST Command Extension is supported See more https://tools.ietf.org/html/rfc5258 |
| [getFolderInfo(IConnection connection, String folderName)](#getFolderInfo-com.aspose.email.IConnection-java.lang.String-) | Returns information about the specified folder without selecting it |
| [getFolderInfo(String folderName)](#getFolderInfo-java.lang.String-) | Returns information about the specified folder without selecting it |
| [getGmExt1Supported()](#getGmExt1Supported--) | Defines if Google X-GM-EXT-1 extension is supported |
| [getGreetingTimeout()](#getGreetingTimeout--) | Gets or sets the greeting timeout that is used when establishing a connection. |
| [getHost()](#getHost--) | Gets or sets the host name. |
| [getIdSupported()](#getIdSupported--) | Gets information whether ID extension is supported See more: https://tools.ietf.org/html/rfc2971 |
| [getLogFileName()](#getLogFileName--) | Gets or sets log file name |
| [getMailboxInfo()](#getMailboxInfo--) | Gets set of special-use mailboxes See more: http://tools.ietf.org/html/rfc6154 and https://tools.ietf.org/html/rfc8457 |
| [getMessageThreads(BaseSearchConditions conditions)](#getMessageThreads-com.aspose.email.BaseSearchConditions-) | Get message threads. |
| [getMessageThreads(IConnection connection, BaseSearchConditions conditions)](#getMessageThreads-com.aspose.email.IConnection-com.aspose.email.BaseSearchConditions-) | Get message threads. |
| [getMoveSupported()](#getMoveSupported--) | Gets information whether MOVE extension is supported See more: https://tools.ietf.org/html/rfc6851 |
| [getNamespaceSupported()](#getNamespaceSupported--) | Gets information whether NAMESPACE extension is supported See more: https://tools.ietf.org/html/rfc2342 |
| [getNamespaces()](#getNamespaces--) | Gets namespaces that are available on a server. |
| [getNamespaces(IConnection connection)](#getNamespaces-com.aspose.email.IConnection-) | Gets namespaces that are available on a server. |
| [getPassword()](#getPassword--) | Gets or sets the password. |
| [getPort()](#getPort--) | Gets or sets the port. |
| [getProxy()](#getProxy--) | Gets or sets proxy for the client |
| [getQresyncSupported()](#getQresyncSupported--) | Gets information whether QRESYNC extension is supported See more: https://tools.ietf.org/html/rfc7162 |
| [getQuota(IConnection connection, String quotaRootName)](#getQuota-com.aspose.email.IConnection-java.lang.String-) | Gets quota information |
| [getQuota(String quotaRootName)](#getQuota-java.lang.String-) | Gets quota information |
| [getQuotaRoot(IConnection connection, String mailboxName)](#getQuotaRoot-com.aspose.email.IConnection-java.lang.String-) | Gets quota root information for mailbox |
| [getQuotaRoot(String mailboxName)](#getQuotaRoot-java.lang.String-) | Gets quota root information for mailbox |
| [getQuotaSupported()](#getQuotaSupported--) | Gets information whether quota is supported |
| [getReadOnly()](#getReadOnly--) | Gets or sets value which indicates if changes to the permanent state of the mailbox, including per-user state, are permitted. |
| [getSaslIrSupported()](#getSaslIrSupported--) | Gets information whether SASL Initial Client Response extension is supported See more: https://tools.ietf.org/html/rfc4959 |
| [getSecurityOptions()](#getSecurityOptions--) | Security mode for a mail client |
| [getServerIdentificationInfo()](#getServerIdentificationInfo--) | Gets server identification information See more: https://tools.ietf.org/html/rfc2971 |
| [getServerSupportedCompression()](#getServerSupportedCompression--) | Gets information which compression types are supported by a server. |
| [getSortSupported()](#getSortSupported--) | Gets information whether Sort command are supported |
| [getSpecialUseSupported()](#getSpecialUseSupported--) | Gets information whether Special-Use Mailboxes is supported See more: https://tools.ietf.org/html/rfc6154 |
| [getSupportOldServer()](#getSupportOldServer--) | Indicates whether the old servers need to be supported when receiving messages. |
| [getSupportedAuthentication()](#getSupportedAuthentication--) | Gets enumeration of supported by server authentication types |
| [getSupportedEncryption()](#getSupportedEncryption--) | Defines the versions of SSL/TLS encryption protocols to be used. |
| [getThreadAlgorithms()](#getThreadAlgorithms--) | Gets supported thread algorithms |
| [getThreadSupported()](#getThreadSupported--) | Gets information whether Thread command are supported |
| [getTimeout()](#getTimeout--) | Gets or sets the timeout for mail operations |
| [getTokenProvider()](#getTokenProvider--) | Gets or sets TokenProvider allowing to retrieve access token. |
| [getUidPlusSupported()](#getUidPlusSupported--) | Gets information whether UIDPLUS extension is supported See more: https://tools.ietf.org/html/rfc4315 |
| [getUnselectSupported()](#getUnselectSupported--) | Gets information whether UNSELECT extension is supported See more: https://tools.ietf.org/html/rfc2342 |
| [getUseAuthentication()](#getUseAuthentication--) | Indicates whether authentication is used. |
| [getUseDateInLogFileName()](#getUseDateInLogFileName--) | Gets or sets value which indicates if date has to be used in log file name. |
| [getUseDefaultCredentials()](#getUseDefaultCredentials--) | Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. |
| [getUseMultiConnection()](#getUseMultiConnection--) | Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. |
| [getUsePipelining()](#getUsePipelining--) | Gets or sets object which indicates whether the pipelining mode is enabled. |
| [getUsername()](#getUsername--) | Gets or sets the username. |
| [hashCode()](#hashCode--) |  |
| [introduceClient()](#introduceClient--) | Introduces client information to a server. |
| [introduceClient(IConnection connection)](#introduceClient-com.aspose.email.IConnection-) | Introduces client information to a server. |
| [introduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo)](#introduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-) | Introduces client information to a server. |
| [introduceClient(ImapIdentificationInfo clientIdentificationInfo)](#introduceClient-com.aspose.email.ImapIdentificationInfo-) | Introduces client information to a server. |
| [listAttachments(int sequenceNumber)](#listAttachments-int-) | Gets the message attachments list. |
| [listFolders()](#listFolders--) | Gets the list of folders in the mailbox |
| [listFolders(boolean loadFullInfo)](#listFolders-boolean-) | Gets the list of folders in the mailbox |
| [listFolders(IConnection connection)](#listFolders-com.aspose.email.IConnection-) | Gets the list of folders in the mailbox |
| [listFolders(IConnection connection, boolean loadFullInfo)](#listFolders-com.aspose.email.IConnection-boolean-) | Gets the list of folders in the mailbox |
| [listFolders(IConnection connection, String parentFolder)](#listFolders-com.aspose.email.IConnection-java.lang.String-) | Gets the list of subfolders in the specified folder |
| [listFolders(IConnection connection, String parentFolder, boolean loadFullInfo)](#listFolders-com.aspose.email.IConnection-java.lang.String-boolean-) | Gets the list of subfolders in the specified folder |
| [listFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions)](#listFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-) | Gets the list of subfolders in the specified folder |
| [listFolders(String parentFolder)](#listFolders-java.lang.String-) | Gets the list of subfolders in the specified folder |
| [listFolders(String parentFolder, boolean loadFullInfo)](#listFolders-java.lang.String-boolean-) | Gets the list of subfolders in the specified folder |
| [listFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions)](#listFolders-java.lang.String-boolean-int-int-) | Gets the list of subfolders in the specified folder |
| [listMessage(IConnection connection, int sequenceNumber)](#listMessage-com.aspose.email.IConnection-int-) | Gets information about a message. |
| [listMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields)](#listMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--) | Gets information about a message. |
| [listMessage(IConnection connection, String uniqueId)](#listMessage-com.aspose.email.IConnection-java.lang.String-) | Gets information about a message. |
| [listMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields)](#listMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--) | Gets information about a message. |
| [listMessage(int sequenceNumber)](#listMessage-int-) | Gets information about a message. |
| [listMessage(int sequenceNumber, Iterable<String> messageExtraFields)](#listMessage-int-java.lang.Iterable-java.lang.String--) | Gets information about a message. |
| [listMessage(String uniqueId)](#listMessage-java.lang.String-) | Gets information about a message. |
| [listMessage(String uniqueId, Iterable<String> messageExtraFields)](#listMessage-java.lang.String-java.lang.Iterable-java.lang.String--) | Gets information about a message. |
| [listMessages()](#listMessages--) | Gets the list of messages in the current folder |
| [listMessages(boolean retrieveRecursively)](#listMessages-boolean-) | Gets the list of messages in the current folder |
| [listMessages(IConnection connection)](#listMessages-com.aspose.email.IConnection-) | Gets the list of messages in the current folder |
| [listMessages(IConnection connection, boolean retrieveRecursively)](#listMessages-com.aspose.email.IConnection-boolean-) | Gets the list of messages in the current folder |
| [listMessages(IConnection connection, MailQuery query)](#listMessages-com.aspose.email.IConnection-com.aspose.email.MailQuery-) | Gets the list of messages in the current folder. |
| [listMessages(IConnection connection, MailQuery query, int maxNumberOfMessages)](#listMessages-com.aspose.email.IConnection-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessages(IConnection connection, int maxNumberOfMessages)](#listMessages-com.aspose.email.IConnection-int-) | Gets the list of messages in the current folder. |
| [listMessages(IConnection connection, String folderName)](#listMessages-com.aspose.email.IConnection-java.lang.String-) | Gets the list of messages in the specified folder |
| [listMessages(IConnection connection, String folderName, boolean retrieveRecursively)](#listMessages-com.aspose.email.IConnection-java.lang.String-boolean-) | Gets the list of messages in the specified folder |
| [listMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages)](#listMessages-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessages(IConnection connection, String folderName, int fieldsList, int maxNumberOfMessages)](#listMessages-com.aspose.email.IConnection-java.lang.String-int-int-) | Lists the messages. |
| [listMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields)](#listMessages-com.aspose.email.IConnection-java.lang.String-long-boolean-java.lang.Iterable-java.lang.String--) | Gets the list of messages in the specified folder |
| [listMessages(IConnection connection, long modificationSequence)](#listMessages-com.aspose.email.IConnection-long-) | Gets the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [listMessages(MailQuery query)](#listMessages-com.aspose.email.MailQuery-) | Gets the list of messages in the current folder. |
| [listMessages(MailQuery query, int maxNumberOfMessages)](#listMessages-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessages(int maxNumberOfMessages)](#listMessages-int-) | Gets the list of messages in the current folder. |
| [listMessages(Iterable<String> messageExtraFields)](#listMessages-java.lang.Iterable-java.lang.String--) | Gets the list of messages in the current folder |
| [listMessages(String folderName)](#listMessages-java.lang.String-) | Gets the list of messages in the specified folder |
| [listMessages(String folderName, boolean retrieveRecursively)](#listMessages-java.lang.String-boolean-) | Gets the list of messages in the specified folder |
| [listMessages(String folderName, boolean retrieveRecursively, Iterable<String> messageExtraFields)](#listMessages-java.lang.String-boolean-java.lang.Iterable-java.lang.String--) | Gets the list of messages in the specified folder |
| [listMessages(String folderName, MailQuery query, int maxNumberOfMessages)](#listMessages-java.lang.String-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessages(String folderName, int fieldsList, int maxNumberOfMessages)](#listMessages-java.lang.String-int-int-) | Lists the messages. |
| [listMessages(long modificationSequence)](#listMessages-long-) | Gets the list of messages in the current folder that have a modification sequence bigger than specified value. |
| [listMessagesByPage(IConnection connection, PageInfo page)](#listMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(IConnection connection, int itemsPerPage)](#listMessagesByPage-com.aspose.email.IConnection-int-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset)](#listMessagesByPage-com.aspose.email.IConnection-int-int-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo)](#listMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage)](#listMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettings settings)](#listMessagesByPage-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.email.PageSettings-) | Gets the list of messages |
| [listMessagesByPage(PageInfo page)](#listMessagesByPage-com.aspose.email.PageInfo-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(PageInfo pageInfo, PageSettings settings)](#listMessagesByPage-com.aspose.email.PageInfo-com.aspose.email.PageSettings-) | Gets the list of messages |
| [listMessagesByPage(int itemsPerPage)](#listMessagesByPage-int-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(int itemsPerPage, PageSettings settings)](#listMessagesByPage-int-com.aspose.email.PageSettings-) | Gets the list of messages |
| [listMessagesByPage(int itemsPerPage, int pageOffset)](#listMessagesByPage-int-int-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(int itemsPerPage, int pageOffset, PageSettings settings)](#listMessagesByPage-int-int-com.aspose.email.PageSettings-) | Gets the list of messages |
| [listMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo)](#listMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-) | Gets the list of messages in the current folder. |
| [listMessagesByPage(String folderName, MailQuery query, int itemsPerPage)](#listMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-) | Gets the list of messages in the current folder. |
| [listMessagesBySequences(IConnection connection, String folderName, Iterable<Integer> sequenceNumberLst)](#listMessagesBySequences-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.Integer--) | Lists the messages. |
| [listMessagesBySequences(String folderName, Iterable<Integer> sequenceNumberLst)](#listMessagesBySequences-java.lang.String-java.lang.Iterable-java.lang.Integer--) | Lists the messages. |
| [listMessagesByUids(IConnection connection, String folderName, Iterable<String> uniqueIdLst)](#listMessagesByUids-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--) | Lists the messages. |
| [listMessagesByUids(String folderName, Iterable<String> uniqueIdLst)](#listMessagesByUids-java.lang.String-java.lang.Iterable-java.lang.String--) | Lists the messages. |
| [moveFolder(IConnection connection, String newParentFolder, String folderName)](#moveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Moves specified folder and its subfolders to new location. |
| [moveFolder(String newParentFolder, String folderName)](#moveFolder-java.lang.String-java.lang.String-) | Moves specified folder and its subfolders to new location. |
| [moveMessage(IConnection connection, int sequenceNumber, String folderName)](#moveMessage-com.aspose.email.IConnection-int-java.lang.String-) | Moves the messaeg |
| [moveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions)](#moveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-) | Moves the messaeg |
| [moveMessage(IConnection connection, String uniqueId, String folderName)](#moveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Moves the message |
| [moveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions)](#moveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-) | Moves the message |
| [moveMessage(int sequenceNumber, String folderName)](#moveMessage-int-java.lang.String-) | Moves the message |
| [moveMessage(int sequenceNumber, String folderName, boolean commitDeletions)](#moveMessage-int-java.lang.String-boolean-) | Moves the message |
| [moveMessage(String uniqueId, String folderName)](#moveMessage-java.lang.String-java.lang.String-) | Moves the message |
| [moveMessage(String uniqueId, String folderName, boolean commitDeletions)](#moveMessage-java.lang.String-java.lang.String-boolean-) | Moves the message |
| [moveMessages(IConnection connection, int startSequence, int endSequence, String folderName)](#moveMessages-com.aspose.email.IConnection-int-int-java.lang.String-) | Moves the messaeg |
| [moveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions)](#moveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-) | Moves the messaeg |
| [moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#moveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Moves the message |
| [moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)](#moveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-) | Moves the message |
| [moveMessages(IConnection connection, String startUid, String endUid, String folderName)](#moveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-) | Moves the message |
| [moveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions)](#moveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-) | Moves the message |
| [moveMessages(int startSequence, int endSequence, String folderName)](#moveMessages-int-int-java.lang.String-) | Moves the message |
| [moveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions)](#moveMessages-int-int-java.lang.String-boolean-) | Moves the message |
| [moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)](#moveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-) | Moves the message |
| [moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)](#moveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-) | Moves the message |
| [moveMessages(String startUid, String endUid, String folderName)](#moveMessages-java.lang.String-java.lang.String-java.lang.String-) | Moves the message |
| [moveMessages(String startUid, String endUid, String folderName, boolean commitDeletions)](#moveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-) | Moves the message |
| [moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)](#moveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Moves the messaeg |
| [moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)](#moveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-) | Moves the messaeg |
| [moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)](#moveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-) | Moves the message |
| [moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)](#moveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-) | Moves the message |
| [moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)](#moveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-) | Moves the message |
| [moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions)](#moveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-) | Moves the message |
| [moveMessagesByUids(Iterable<String> uidSet, String folderName)](#moveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-) | Moves the message |
| [moveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions)](#moveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-) | Moves the message |
| [noop()](#noop--) | 'No operation' command |
| [noop(IConnection connection)](#noop-com.aspose.email.IConnection-) | 'No operation' command |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)](#removeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)](#removeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(int sequenceNumber, ImapMessageFlags flags)](#removeMessageFlags-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)](#removeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)](#removeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(String uniqueId, ImapMessageFlags flags)](#removeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)](#removeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#removeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)](#removeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)](#removeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)](#removeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-) | Removes the flags of the message |
| [removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)](#removeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-) | Removes the flags of the message |
| [renameFolder(IConnection connection, String folderName, String newFolderName)](#renameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Renames a specified folder to a new name |
| [renameFolder(String folderName, String newFolderName)](#renameFolder-java.lang.String-java.lang.String-) | Renames a specified folder to a new name |
| [requestCheckpoint()](#requestCheckpoint--) | Requests a checkpoint of the currently selected mailbox. |
| [requestCheckpoint(IConnection connection)](#requestCheckpoint-com.aspose.email.IConnection-) | Requests a checkpoint of the currently selected mailbox. |
| [resetLogSettings()](#resetLogSettings--) | Resets logging settings to default. |
| [restore(PersonalStorage pst, ImapRestoreSettings settings)](#restore-com.aspose.email.PersonalStorage-com.aspose.email.ImapRestoreSettings-) | Begins to restore imap folders from the given personal storage. |
| [resumeMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, IImapMonitoringState monitoringState)](#resumeMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-com.aspose.email.IImapMonitoringState-) | Resumes monitoring of message changes for specified folder. |
| [saveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream)](#saveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-) | Downloads the message with the specified sequence number and writes its data into a supplied stream |
| [saveMessage(IConnection connection, int sequenceNumber, String fileName)](#saveMessage-com.aspose.email.IConnection-int-java.lang.String-) | Downloads the message with the specified sequence number and writes its data into a local file |
| [saveMessage(IConnection connection, String uniqueId, OutputStream resultStream)](#saveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-) | Downloads the message with the specified sequence number and writes its data into a supplied stream |
| [saveMessage(IConnection connection, String uniqueId, String fileName)](#saveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-) | Downloads the message with the specified sequence number and writes its data into a local file |
| [saveMessage(int sequenceNumber, OutputStream resultStream)](#saveMessage-int-java.io.OutputStream-) | Downloads the message with the specified sequence number and writes its data into a supplied stream |
| [saveMessage(int sequenceNumber, String fileName)](#saveMessage-int-java.lang.String-) | Downloads the message with the specified sequence number and writes its data into a local file |
| [saveMessage(String uniqueId, OutputStream resultStream)](#saveMessage-java.lang.String-java.io.OutputStream-) | Downloads the message with the specified sequence number and writes its data into a supplied stream |
| [saveMessage(String uniqueId, String fileName)](#saveMessage-java.lang.String-java.lang.String-) | Downloads the message with the specified sequence number and writes its data into a local file |
| [selectFolder(IConnection connection, String folderName)](#selectFolder-com.aspose.email.IConnection-java.lang.String-) | Selects the specified folder |
| [selectFolder(IConnection connection, String folderName, Boolean readOnly)](#selectFolder-com.aspose.email.IConnection-java.lang.String-java.lang.Boolean-) | Selects the specified folder |
| [selectFolder(String folderName)](#selectFolder-java.lang.String-) | Selects the specified folder |
| [selectFolder(String folderName, Boolean readOnly)](#selectFolder-java.lang.String-java.lang.Boolean-) | Selects the specified folder |
| [setAccessToken(String value)](#setAccessToken-java.lang.String-) | Gets or sets the access token. |
| [setAllowedAuthentication(long value)](#setAllowedAuthentication-long-) | Gets or sets enumeration of allowed by user authentication types |
| [setAnnotateSupported(boolean value)](#setAnnotateSupported-boolean-) | Gets information whether ANNOTATE extension is supported See more: https://tools.ietf.org/html/rfc5257 |
| [setAutoCommit(boolean value)](#setAutoCommit-boolean-) | Indicates, whether commit operation are executed automatically when folder is changed or before connection is closed. |
| [setChildrenSupported(boolean value)](#setChildrenSupported-boolean-) | Gets information whether CHILDREN extension is supported See more: https://tools.ietf.org/html/rfc3348 |
| [setClientIdentificationInfo(ImapIdentificationInfo value)](#setClientIdentificationInfo-com.aspose.email.ImapIdentificationInfo-) | Gets or sets client identification information See more: https://tools.ietf.org/html/rfc2971 |
| [setCompressSupported(boolean value)](#setCompressSupported-boolean-) | Gets information whether COMPRESS extension is supported See more: https://tools.ietf.org/html/rfc4978 |
| [setCondstoreSupported(boolean value)](#setCondstoreSupported-boolean-) | Gets information whether CONDSTORE extension is supported See more: https://tools.ietf.org/html/rfc7162 |
| [setConnectionAsgmtMode(int value)](#setConnectionAsgmtMode-int-) | Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can't be created or disposed manually. |
| [setConnectionCheckupPeriod(int value)](#setConnectionCheckupPeriod-int-) | Period of connection checking up in milliseconds. |
| [setConnectionsQuantity(int value)](#setConnectionsQuantity-int-) | Gets or sets quantity of connections in multy-connection mode |
| [setCredentialsEncoding(String value)](#setCredentialsEncoding-java.lang.String-) | Gets or sets Credentials Encoding |
| [setCurrentFolder(ImapFolderInfo value)](#setCurrentFolder-com.aspose.email.ImapFolderInfo-) | Gets the current folder |
| [setDefaultFolder(String value)](#setDefaultFolder-java.lang.String-) | Default folder for ImapClients |
| [setDelimiter(String value)](#setDelimiter-java.lang.String-) | Gets or sets delimiter of folders hierarhy. |
| [setESearchSupported(boolean value)](#setESearchSupported-boolean-) | Gets information whether ESEARCH extension is supported See more: https://tools.ietf.org/html/rfc4731 |
| [setEnableLogger(boolean value)](#setEnableLogger-boolean-) | Gets or sets value which allows enable/disable logger |
| [setEnableSupported(boolean value)](#setEnableSupported-boolean-) | Gets information whether ENABLE extension is supported See more: https://tools.ietf.org/html/rfc5161 |
| [setExchangeIdAutomatically(boolean value)](#setExchangeIdAutomatically-boolean-) | Gets or sets value which indicates whether client should to introduce information about itself to a server automatically. |
| [setExtendedListSupported(boolean value)](#setExtendedListSupported-boolean-) | Gets information whether LIST Command Extension is supported See more https://tools.ietf.org/html/rfc5258 |
| [setGmExt1Supported(boolean value)](#setGmExt1Supported-boolean-) | Defines if Google X-GM-EXT-1 extension is supported |
| [setGreetingTimeout(int value)](#setGreetingTimeout-int-) | Gets or sets the greeting timeout that is used when establishing a connection. |
| [setHost(String value)](#setHost-java.lang.String-) | Gets or sets the host name. |
| [setIdSupported(boolean value)](#setIdSupported-boolean-) | Gets information whether ID extension is supported See more: https://tools.ietf.org/html/rfc2971 |
| [setLogFileName(String value)](#setLogFileName-java.lang.String-) | Gets or sets log file name |
| [setLogFileName(String value, boolean showDebugLog)](#setLogFileName-java.lang.String-boolean-) | Gets or sets log file name |
| [setMoveSupported(boolean value)](#setMoveSupported-boolean-) | Gets information whether MOVE extension is supported See more: https://tools.ietf.org/html/rfc6851 |
| [setNamespaceSupported(boolean value)](#setNamespaceSupported-boolean-) | Gets information whether NAMESPACE extension is supported See more: https://tools.ietf.org/html/rfc2342 |
| [setPassword(String value)](#setPassword-java.lang.String-) | Gets or sets the password. |
| [setPort(int value)](#setPort-int-) | Gets or sets the port. |
| [setProxy(Proxy value)](#setProxy-com.aspose.email.Proxy-) | Gets or sets proxy for the client |
| [setQresyncSupported(boolean value)](#setQresyncSupported-boolean-) | Gets information whether QRESYNC extension is supported See more: https://tools.ietf.org/html/rfc7162 |
| [setQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit)](#setQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-) | Sets quota information |
| [setQuota(String quotaRootName, String resourceName, int resourceLimit)](#setQuota-java.lang.String-java.lang.String-int-) | Sets quota information |
| [setQuotaSupported(boolean value)](#setQuotaSupported-boolean-) | Gets information whether quota is supported |
| [setReadOnly(boolean value)](#setReadOnly-boolean-) | Gets or sets value which indicates if changes to the permanent state of the mailbox, including per-user state, are permitted. |
| [setSaslIrSupported(boolean value)](#setSaslIrSupported-boolean-) | Gets information whether SASL Initial Client Response extension is supported See more: https://tools.ietf.org/html/rfc4959 |
| [setSecurityOptions(int value)](#setSecurityOptions-int-) | Security mode for a mail client |
| [setShowCredentialsInLog(boolean value)](#setShowCredentialsInLog-boolean-) | Sets value indicating whether Credentials should be displayed in the log. |
| [setSocketsLayerVersion2(boolean value)](#setSocketsLayerVersion2-boolean-) | Sets value indicating whether Sockets Layer version 2 is used. |
| [setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value)](#setSocketsLayerVersion2DisableSSLCertificateValidation-boolean-) | Disable SSL certificate validation for Sockets Layer version 2 |
| [setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value)](#setSocketsLayerVersion2SSLSocketFactory-javax.net.ssl.SSLSocketFactory-) | Set SSL Socket Factory for Sockets Layer version 2 |
| [setSortSupported(boolean value)](#setSortSupported-boolean-) | Gets information whether Sort command are supported |
| [setSpecialUseSupported(boolean value)](#setSpecialUseSupported-boolean-) | Gets information whether Special-Use Mailboxes is supported See more: https://tools.ietf.org/html/rfc6154 |
| [setSupportOldServer(boolean value)](#setSupportOldServer-boolean-) | Indicates whether the old servers need to be supported when receiving messages. |
| [setSupportedEncryption(int value)](#setSupportedEncryption-int-) | Defines the versions of SSL/TLS encryption protocols to be used. |
| [setSupportedEncryptionUnsafe(int value)](#setSupportedEncryptionUnsafe-int-) | Defines the versions of SSL/TLS encryption protocols to be used. |
| [setThreadSupported(boolean value)](#setThreadSupported-boolean-) | Gets information whether Thread command are supported |
| [setTimeout(int value)](#setTimeout-int-) | Gets or sets the timeout for mail operations |
| [setTokenProvider(ITokenProvider value)](#setTokenProvider-com.aspose.email.ITokenProvider-) | Gets or sets TokenProvider allowing to retrieve access token. |
| [setUidPlusSupported(boolean value)](#setUidPlusSupported-boolean-) | Gets information whether UIDPLUS extension is supported See more: https://tools.ietf.org/html/rfc4315 |
| [setUnselectSupported(boolean value)](#setUnselectSupported-boolean-) | Gets information whether UNSELECT extension is supported See more: https://tools.ietf.org/html/rfc2342 |
| [setUseAuthentication(boolean value)](#setUseAuthentication-boolean-) | Indicates whether authentication is used. |
| [setUseDateInLogFileName(boolean value)](#setUseDateInLogFileName-boolean-) | Gets or sets value which indicates if date has to be used in log file name. |
| [setUseDefaultCredentials(boolean value)](#setUseDefaultCredentials-boolean-) | Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. |
| [setUseMultiConnection(int value)](#setUseMultiConnection-int-) | Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. |
| [setUsePipelining(PipeliningStatus value)](#setUsePipelining-com.aspose.email.PipeliningStatus-) | Gets or sets object which indicates whether the pipelining mode is enabled. |
| [setUsername(String value)](#setUsername-java.lang.String-) | Gets or sets the username. |
| [sortMessageThreads(IConnection connection, SortConditions conditions)](#sortMessageThreads-com.aspose.email.IConnection-com.aspose.email.SortConditions-) | Get message threads. |
| [sortMessageThreads(SortConditions conditions)](#sortMessageThreads-com.aspose.email.SortConditions-) | Get message threads. |
| [startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback)](#startMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-) | Starts monitoring of message changes for "Inbox" folder. |
| [startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, String folderName)](#startMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-java.lang.String-) | Starts monitoring of message changes for specified folder. |
| [stopMonitoring()](#stopMonitoring--) | Stops any monitoring of changes. |
| [stopMonitoring(String folderName)](#stopMonitoring-java.lang.String-) | Stops monitoring of message changes for specified folder. |
| [subscribeFolder(IConnection connection, String folderName)](#subscribeFolder-com.aspose.email.IConnection-java.lang.String-) | Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [subscribeFolder(String folderName)](#subscribeFolder-java.lang.String-) | Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes. |
| [toString()](#toString--) |  |
| [undeleteMessage(IConnection connection, int sequenceNumber)](#undeleteMessage-com.aspose.email.IConnection-int-) | Marks a message with the specified sequence number as not deleted |
| [undeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)](#undeleteMessage-com.aspose.email.IConnection-int-long-) | Marks a message with the specified sequence number as not deleted |
| [undeleteMessage(IConnection connection, String uniqueId)](#undeleteMessage-com.aspose.email.IConnection-java.lang.String-) | Marks a message with the specified sequence number as not deleted. |
| [undeleteMessage(IConnection connection, String uniqueId, long modificationSequence)](#undeleteMessage-com.aspose.email.IConnection-java.lang.String-long-) | Marks a message with the specified sequence number as not deleted. |
| [undeleteMessage(int sequenceNumber)](#undeleteMessage-int-) | Marks a message with the specified sequence number as not deleted |
| [undeleteMessage(int sequenceNumber, long modificationSequence)](#undeleteMessage-int-long-) | Marks a message with the specified sequence number as not deleted |
| [undeleteMessage(String uniqueId)](#undeleteMessage-java.lang.String-) | Marks a message with the specified sequence number as not deleted. |
| [undeleteMessage(String uniqueId, long modificationSequence)](#undeleteMessage-java.lang.String-long-) | Marks a message with the specified sequence number as not deleted. |
| [unselectFolder()](#unselectFolder--) | Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder. |
| [unselectFolder(boolean doNotExpunge)](#unselectFolder-boolean-) | Unselects folder which are currently selected. |
| [unselectFolder(IConnection connection)](#unselectFolder-com.aspose.email.IConnection-) | Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder. |
| [unselectFolder(IConnection connection, boolean doNotExpunge)](#unselectFolder-com.aspose.email.IConnection-boolean-) | Unselects folder which are currently selected. |
| [unsubscribeFolder(IConnection connection, String folderName)](#unsubscribeFolder-com.aspose.email.IConnection-java.lang.String-) | Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes |
| [unsubscribeFolder(String folderName)](#unsubscribeFolder-java.lang.String-) | Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes |
| [usePasswordQuotes(boolean value)](#usePasswordQuotes-boolean-) | Sets a value indicating whether Quotes should be used in login password syntax with special characters. |
| [validateCredentials()](#validateCredentials--) | Executes credentials validation |
| [validateCredentials(IConnection connection)](#validateCredentials-com.aspose.email.IConnection-) | Executes credentials validation |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### ImapClient() {#ImapClient--}
```
public ImapClient()
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

### ImapClient(String host) {#ImapClient-java.lang.String-}
```
public ImapClient(String host)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |

### ImapClient(String host, short securityOptions) {#ImapClient-java.lang.String-short-}
```
public ImapClient(String host, short securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| securityOptions | short | Security mode for a mail client |

### ImapClient(String host, int port) {#ImapClient-java.lang.String-int-}
```
public ImapClient(String host, int port)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |

### ImapClient(String host, int port, int securityOptions) {#ImapClient-java.lang.String-int-int-}
```
public ImapClient(String host, int port, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, String username, String password) {#ImapClient-java.lang.String-java.lang.String-java.lang.String-}
```
public ImapClient(String host, String username, String password)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| password | java.lang.String | The password |

### ImapClient(String host, String username, String password, int securityOptions) {#ImapClient-java.lang.String-java.lang.String-java.lang.String-int-}
```
public ImapClient(String host, String username, String password, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| password | java.lang.String | The password |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, int port, String username, String password) {#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-}
```
public ImapClient(String host, int port, String username, String password)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| password | java.lang.String | The password |

### ImapClient(String host, int port, String username, String password, int securityOptions) {#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-int-}
```
public ImapClient(String host, int port, String username, String password, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| password | java.lang.String | The password |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, String username, String authInfo, boolean useOAuth) {#ImapClient-java.lang.String-java.lang.String-java.lang.String-boolean-}
```
public ImapClient(String host, String username, String authInfo, boolean useOAuth)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| authInfo | java.lang.String | The user password or XOAUTH2 access token |
| useOAuth | boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |

### ImapClient(String host, String username, String authInfo, boolean useOAuth, int securityOptions) {#ImapClient-java.lang.String-java.lang.String-java.lang.String-boolean-int-}
```
public ImapClient(String host, String username, String authInfo, boolean useOAuth, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| authInfo | java.lang.String | The user password or XOAUTH2 access token |
| useOAuth | boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, int port, String username, String authInfo, boolean useOAuth) {#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-boolean-}
```
public ImapClient(String host, int port, String username, String authInfo, boolean useOAuth)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| authInfo | java.lang.String | The user password or XOAUTH2 access token |
| useOAuth | boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |

### ImapClient(String host, int port, String username, String authInfo, boolean useOAuth, int securityOptions) {#ImapClient-java.lang.String-int-java.lang.String-java.lang.String-boolean-int-}
```
public ImapClient(String host, int port, String username, String authInfo, boolean useOAuth, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| authInfo | java.lang.String | The user password or XOAUTH2 access token |
| useOAuth | boolean | Defines whether SASL XOAUTH2 mechanism is used to login to the server |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, String username, ITokenProvider tokenProvider) {#ImapClient-java.lang.String-java.lang.String-com.aspose.email.ITokenProvider-}
```
public ImapClient(String host, String username, ITokenProvider tokenProvider)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| tokenProvider | [ITokenProvider](../../com.aspose.email/itokenprovider) | TokenProvider allowing to retrieve access token. |

### ImapClient(String host, String username, ITokenProvider tokenProvider, int securityOptions) {#ImapClient-java.lang.String-java.lang.String-com.aspose.email.ITokenProvider-int-}
```
public ImapClient(String host, String username, ITokenProvider tokenProvider, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| username | java.lang.String | The user name |
| tokenProvider | [ITokenProvider](../../com.aspose.email/itokenprovider) | TokenProvider allowing to retrieve access token. |
| securityOptions | int | Security mode for a mail client |

### ImapClient(String host, int port, String username, ITokenProvider tokenProvider) {#ImapClient-java.lang.String-int-java.lang.String-com.aspose.email.ITokenProvider-}
```
public ImapClient(String host, int port, String username, ITokenProvider tokenProvider)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| tokenProvider | [ITokenProvider](../../com.aspose.email/itokenprovider) | TokenProvider allowing to retrieve access token. |

### ImapClient(String host, int port, String username, ITokenProvider tokenProvider, int securityOptions) {#ImapClient-java.lang.String-int-java.lang.String-com.aspose.email.ITokenProvider-int-}
```
public ImapClient(String host, int port, String username, ITokenProvider tokenProvider, int securityOptions)
```


Initializes a new instance of the [ImapClient](../../com.aspose.email/imapclient) class

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| host | java.lang.String | The host name |
| port | int | The port number |
| username | java.lang.String | The user name |
| tokenProvider | [ITokenProvider](../../com.aspose.email/itokenprovider) | TokenProvider allowing to retrieve access token. |
| securityOptions | int | Security mode for a mail client |

### addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#addMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#addMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#addMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#addMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#addMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#addMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### addMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#addMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#addMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(String uniqueId, ImapMessageFlags flags) {#addMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### addMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#addMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#addMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#addMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#addMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#addMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#addMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#addMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void addMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### appendMessage(IConnection connection, MailMessage message) {#appendMessage-com.aspose.email.IConnection-com.aspose.email.MailMessage-}
```
public final String appendMessage(IConnection connection, MailMessage message)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(IConnection connection, String fileName) {#appendMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final String appendMessage(IConnection connection, String fileName)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(IConnection connection, String folderName, MailMessage message) {#appendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-}
```
public final String appendMessage(IConnection connection, String folderName, MailMessage message)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(IConnection connection, String folderName, String fileName) {#appendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final String appendMessage(IConnection connection, String folderName, String fileName)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(MailMessage message) {#appendMessage-com.aspose.email.MailMessage-}
```
public final String appendMessage(MailMessage message)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(String fileName) {#appendMessage-java.lang.String-}
```
public final String appendMessage(String fileName)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(String folderName, MailMessage message) {#appendMessage-java.lang.String-com.aspose.email.MailMessage-}
```
public final String appendMessage(String folderName, MailMessage message)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessage(String folderName, String fileName) {#appendMessage-java.lang.String-java.lang.String-}
```
public final String appendMessage(String folderName, String fileName)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
java.lang.String - An unique id of appended message
### appendMessages(IConnection connection, Iterable<MailMessage> messages) {#appendMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final AppendMessagesResult appendMessages(IConnection connection, Iterable<MailMessage> messages)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
[AppendMessagesResult](../../com.aspose.email/appendmessagesresult) - An unique id of appended message
### appendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages) {#appendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final AppendMessagesResult appendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
[AppendMessagesResult](../../com.aspose.email/appendmessagesresult) - An unique id of appended message
### appendMessages(Iterable<MailMessage> messages) {#appendMessages-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final AppendMessagesResult appendMessages(Iterable<MailMessage> messages)
```


Uploads the mail message to the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
[AppendMessagesResult](../../com.aspose.email/appendmessagesresult) - An unique id of appended message
### appendMessages(String folderName, Iterable<MailMessage> messages) {#appendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final AppendMessagesResult appendMessages(String folderName, Iterable<MailMessage> messages)
```


Uploads the mail message to the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
[AppendMessagesResult](../../com.aspose.email/appendmessagesresult) - An unique id of appended message
### backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options) {#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-}
```
public final void backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

### backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options) {#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-}
```
public final void backup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |

### backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options) {#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-}
```
public final void backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

### backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options) {#backup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-}
```
public final void backup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |

### backup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options) {#backup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-}
```
public final void backup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

### backup(ImapFolderInfoCollection folders, OutputStream stream, int options) {#backup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-}
```
public final void backup(ImapFolderInfoCollection folders, OutputStream stream, int options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |

### backup(ImapFolderInfoCollection folders, String fileName, BackupSettings options) {#backup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-}
```
public final void backup(ImapFolderInfoCollection folders, String fileName, BackupSettings options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

### backup(ImapFolderInfoCollection folders, String fileName, int options) {#backup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-}
```
public final void backup(ImapFolderInfoCollection folders, String fileName, int options)
```


Backups the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |

### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags to the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginAddMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAddMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Adds the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, MailMessage message) {#beginAppendMessage-com.aspose.email.IConnection-com.aspose.email.MailMessage-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, MailMessage message)
```


Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String fileName) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String fileName)
```


Begins append message to the end of the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, MailMessage message) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, MailMessage message)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback, Object state) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, MailMessage message, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, String fileName) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, String fileName)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback, Object state) {#beginAppendMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessage(IConnection connection, String folderName, String fileName, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(MailMessage message) {#beginAppendMessage-com.aspose.email.MailMessage-}
```
public final System.IAsyncResult beginAppendMessage(MailMessage message)
```


Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String fileName) {#beginAppendMessage-java.lang.String-}
```
public final System.IAsyncResult beginAppendMessage(String fileName)
```


Begins append message to the end of the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, MailMessage message) {#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, MailMessage message)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback) {#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback, Object state) {#beginAppendMessage-java.lang.String-com.aspose.email.MailMessage-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, MailMessage message, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| message | [MailMessage](../../com.aspose.email/mailmessage) | Mail message to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, String fileName) {#beginAppendMessage-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, String fileName)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback) {#beginAppendMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback, Object state) {#beginAppendMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessage(String folderName, String fileName, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileName | java.lang.String | File name (\*.eml) of the mail message that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(IConnection connection, Iterable<MailMessage> messages) {#beginAppendMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final System.IAsyncResult beginAppendMessages(IConnection connection, Iterable<MailMessage> messages)
```


Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages) {#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final System.IAsyncResult beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback) {#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state) {#beginAppendMessages-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessages(IConnection connection, String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(Iterable<MailMessage> messages) {#beginAppendMessages-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final System.IAsyncResult beginAppendMessages(Iterable<MailMessage> messages)
```


Begins append message to the end of the specified folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(String folderName, Iterable<MailMessage> messages) {#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--}
```
public final System.IAsyncResult beginAppendMessages(String folderName, Iterable<MailMessage> messages)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback) {#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state) {#beginAppendMessages-java.lang.String-java.lang.Iterable-com.aspose.email.MailMessage--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessages(String folderName, Iterable<MailMessage> messages, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| messages | java.lang.Iterable<com.aspose.email.MailMessage> | Enumeration of email messages to be upload |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(IConnection connection, Iterable<String> fileNames) {#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginAppendMessagesByName(IConnection connection, Iterable<String> fileNames)
```


Begins append message to the end of the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames) {#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback) {#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state) {#beginAppendMessagesByName-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessagesByName(IConnection connection, String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(Iterable<String> fileNames) {#beginAppendMessagesByName-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginAppendMessagesByName(Iterable<String> fileNames)
```


Begins append message to the end of the current folder If current folder hasn't been specified default folder is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(String folderName, Iterable<String> fileNames) {#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginAppendMessagesByName(String folderName, Iterable<String> fileNames)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback) {#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state) {#beginAppendMessagesByName-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginAppendMessagesByName(String folderName, Iterable<String> fileNames, System.AsyncCallback callback, Object state)
```


Begins append message to the end of the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder that will receive the mail message |
| fileNames | java.lang.Iterable<java.lang.String> | File names (\*.eml) of an email messages that will be uploaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.IConnection-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(IConnection connection, ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, BackupSettings options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.io.OutputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, OutputStream stream, int options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| stream | java.io.OutputStream | A stream to write into |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-com.aspose.email.BackupSettings-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, BackupSettings options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | [BackupSettings](../../com.aspose.email/backupsettings) | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, int options) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, int options)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state) {#beginBackup-com.aspose.email.ImapFolderInfoCollection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginBackup(ImapFolderInfoCollection folders, String fileName, int options, System.AsyncCallback callback, Object state)
```


Begins to backup the content of the specified folders

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to backup |
| fileName | java.lang.String | A path to the presonal storage file |
| options | int | A backup options |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginChangeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginChangeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(IConnection connection, String[] capabilityNames) {#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String...-}
```
public final System.IAsyncResult beginClientCapabilities(IConnection connection, String[] capabilityNames)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback) {#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String---com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback, Object state) {#beginClientCapabilities-com.aspose.email.IConnection-java.lang.String---com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginClientCapabilities(IConnection connection, String[] capabilityNames, System.AsyncCallback callback, Object state)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(String[] capabilityNames) {#beginClientCapabilities-java.lang.String...-}
```
public final System.IAsyncResult beginClientCapabilities(String[] capabilityNames)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback) {#beginClientCapabilities-java.lang.String---com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback, Object state) {#beginClientCapabilities-java.lang.String---com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginClientCapabilities(String[] capabilityNames, System.AsyncCallback callback, Object state)
```


Notifies server which extensions are supported by client asyncronously. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes() {#beginCommitDeletes--}
```
public final System.IAsyncResult beginCommitDeletes()
```


Begins to commit the deletions

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection) {#beginCommitDeletes-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, System.AsyncCallback callback) {#beginCommitDeletes-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, System.AsyncCallback callback)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, int sleep) {#beginCommitDeletes-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, int sleep)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sleep | int | Wait time complete the operation in milliseconds |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, int sleep, System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, int sleep, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sleep | int | Wait time complete the operation in milliseconds |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, Iterable<String> uidSet) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, Iterable<String> uidSet)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String uniqueId) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String uniqueId)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of a message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of a message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of a message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String startUid, String endUid) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String startUid, String endUid)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(System.AsyncCallback callback) {#beginCommitDeletes-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(System.AsyncCallback callback)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(System.AsyncCallback callback, Object state) {#beginCommitDeletes-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(System.AsyncCallback callback, Object state)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(int sleep) {#beginCommitDeletes-int-}
```
public final System.IAsyncResult beginCommitDeletes(int sleep)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sleep | int | Wait time complete the operation in milliseconds |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(int sleep, System.AsyncCallback callback, Object state) {#beginCommitDeletes-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(int sleep, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sleep | int | Wait time complete the operation in milliseconds |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(Iterable<String> uidSet) {#beginCommitDeletes-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginCommitDeletes(Iterable<String> uidSet)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback) {#beginCommitDeletes-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback, Object state) {#beginCommitDeletes-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(Iterable<String> uidSet, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String uniqueId) {#beginCommitDeletes-java.lang.String-}
```
public final System.IAsyncResult beginCommitDeletes(String uniqueId)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of a message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String uniqueId, System.AsyncCallback callback) {#beginCommitDeletes-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(String uniqueId, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of a message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String uniqueId, System.AsyncCallback callback, Object state) {#beginCommitDeletes-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(String uniqueId, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of a message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String startUid, String endUid) {#beginCommitDeletes-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCommitDeletes(String startUid, String endUid)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback) {#beginCommitDeletes-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback, Object state) {#beginCommitDeletes-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCommitDeletes(String startUid, String endUid, System.AsyncCallback callback, Object state)
```


Begins to commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, int sequenceNumber, String folderName) {#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, int sequenceNumber, String folderName)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback) {#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, String uniqueId, String folderName) {#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, String uniqueId, String folderName)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback) {#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(int sequenceNumber, String folderName) {#beginCopyMessage-int-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessage(int sequenceNumber, String folderName)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback) {#beginCopyMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(String uniqueId, String folderName) {#beginCopyMessage-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessage(String uniqueId, String folderName)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback) {#beginCopyMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous copying.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName) {#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback) {#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(int startSequence, int endSequence, String folderName) {#beginCopyMessages-int-int-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(int startSequence, int endSequence, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback) {#beginCopyMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback) {#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(String startUid, String endUid, String folderName) {#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginCopyMessages(String startUid, String endUid, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback) {#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName) {#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback) {#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName) {#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback) {#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName) {#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback) {#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(Iterable<String> uidSet, String folderName) {#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final System.IAsyncResult beginCopyMessagesByUids(Iterable<String> uidSet, String folderName)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback) {#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state) {#beginCopyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCopyMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins copy operation asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(IConnection connection, String folderName) {#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginCreateFolder(IConnection connection, String folderName)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginCreateFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCreateFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(String folderName) {#beginCreateFolder-java.lang.String-}
```
public final System.IAsyncResult beginCreateFolder(String folderName)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(String folderName, System.AsyncCallback callback) {#beginCreateFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginCreateFolder(String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginCreateFolder(String folderName, System.AsyncCallback callback, Object state) {#beginCreateFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginCreateFolder(String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder creation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(IConnection connection, String folderName) {#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginDeleteFolder(IConnection connection, String folderName)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginDeleteFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(String folderName) {#beginDeleteFolder-java.lang.String-}
```
public final System.IAsyncResult beginDeleteFolder(String folderName)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(String folderName, System.AsyncCallback callback) {#beginDeleteFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteFolder(String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteFolder(String folderName, System.AsyncCallback callback, Object state) {#beginDeleteFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteFolder(String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber) {#beginDeleteMessage-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence) {#beginDeleteMessage-com.aspose.email.IConnection-int-long-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber) {#beginDeleteMessage-int-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback) {#beginDeleteMessage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state) {#beginDeleteMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber, long modificationSequence) {#beginDeleteMessage-int-long-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId) {#beginDeleteMessage-java.lang.String-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, boolean commitNow) {#beginDeleteMessage-java.lang.String-boolean-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessage-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessage-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, System.AsyncCallback callback) {#beginDeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, System.AsyncCallback callback, Object state) {#beginDeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence) {#beginDeleteMessage-java.lang.String-long-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow) {#beginDeleteMessage-java.lang.String-long-boolean-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessage-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessage-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-int-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence) {#beginDeleteMessages-int-int-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback) {#beginDeleteMessages-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence, long modificationSequence) {#beginDeleteMessages-int-int-long-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-int-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-int-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(int startSequence, int endSequence, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)
```


Begins an asynchronous messages deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid) {#beginDeleteMessages-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, boolean commitNow) {#beginDeleteMessages-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, boolean commitNow)
```


Begins an asynchronous messages deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence) {#beginDeleteMessages-java.lang.String-java.lang.String-long-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow) {#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.String-java.lang.String-long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessages-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessages-java.lang.String-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessages(String startUid, String endUid, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as deleted asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow)
```


Begins an asynchronous messages deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state) {#beginDeleteMessagesByUids-java.lang.Iterable-java.lang.String--long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginDeleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message deletion.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(IConnection connection, String folderName) {#beginExistFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginExistFolder(IConnection connection, String folderName)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginExistFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginExistFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginExistFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(String folderName) {#beginExistFolder-java.lang.String-}
```
public final System.IAsyncResult beginExistFolder(String folderName)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(String folderName, System.AsyncCallback callback) {#beginExistFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginExistFolder(String folderName, System.AsyncCallback callback)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginExistFolder(String folderName, System.AsyncCallback callback, Object state) {#beginExistFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginExistFolder(String folderName, System.AsyncCallback callback, Object state)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName) {#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-}
```
public final System.IAsyncResult beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback) {#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state) {#beginFetchAttachment-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchAttachment(IConnection connection, int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchAttachment(int sequenceNumber, String attachmentName) {#beginFetchAttachment-int-java.lang.String-}
```
public final System.IAsyncResult beginFetchAttachment(int sequenceNumber, String attachmentName)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback) {#beginFetchAttachment-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state) {#beginFetchAttachment-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchAttachment(int sequenceNumber, String attachmentName, System.AsyncCallback callback, Object state)
```


Begins fetch an attachment.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | Attachment name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - Fetched attachment.
### beginFetchMessage(IConnection connection, int sequenceNumber) {#beginFetchMessage-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment) {#beginFetchMessage-com.aspose.email.IConnection-int-boolean-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback) {#beginFetchMessage-com.aspose.email.IConnection-int-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state) {#beginFetchMessage-com.aspose.email.IConnection-int-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback) {#beginFetchMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state) {#beginFetchMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, String uniqueId) {#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, String uniqueId)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique id of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback) {#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique id of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state) {#beginFetchMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique id of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber) {#beginFetchMessage-int-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber, boolean ignoreAttachment) {#beginFetchMessage-int-boolean-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber, boolean ignoreAttachment)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback) {#beginFetchMessage-int-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state) {#beginFetchMessage-int-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber, boolean ignoreAttachment, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber, System.AsyncCallback callback) {#beginFetchMessage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(int sequenceNumber, System.AsyncCallback callback, Object state) {#beginFetchMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(int sequenceNumber, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(String uniqueId) {#beginFetchMessage-java.lang.String-}
```
public final System.IAsyncResult beginFetchMessage(String uniqueId)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique id of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(String uniqueId, System.AsyncCallback callback) {#beginFetchMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessage(String uniqueId, System.AsyncCallback callback)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique id of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessage(String uniqueId, System.AsyncCallback callback, Object state) {#beginFetchMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessage(String uniqueId, System.AsyncCallback callback, Object state)
```


Begins an asynchronous message fetching.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique id of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers) {#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--}
```
public final System.IAsyncResult beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback) {#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state) {#beginFetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers) {#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--}
```
public final System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback) {#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state) {#beginFetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers, System.AsyncCallback callback, Object state)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> |  |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(IConnection connection, Iterable<String> uids) {#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginFetchMessagesByUids(IConnection connection, Iterable<String> uids)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback) {#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback, Object state) {#beginFetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessagesByUids(IConnection connection, Iterable<String> uids, System.AsyncCallback callback, Object state)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(Iterable<String> uids) {#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback) {#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback, Object state) {#beginFetchMessagesByUids-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids, System.AsyncCallback callback, Object state)
```


Begins FetchMessages operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(IConnection connection, String folderName) {#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginGetFolderInfo(IConnection connection, String folderName)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve information about |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback) {#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve information about |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginGetFolderInfo-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetFolderInfo(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve information about |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(String folderName) {#beginGetFolderInfo-java.lang.String-}
```
public final System.IAsyncResult beginGetFolderInfo(String folderName)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve information about |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(String folderName, System.AsyncCallback callback) {#beginGetFolderInfo-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetFolderInfo(String folderName, System.AsyncCallback callback)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve information about |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetFolderInfo(String folderName, System.AsyncCallback callback, Object state) {#beginGetFolderInfo-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetFolderInfo(String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous folder listing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve information about |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetMessageThreads(BaseSearchConditions conditions, System.AsyncCallback callback, Object state) {#beginGetMessageThreads-com.aspose.email.BaseSearchConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetMessageThreads(BaseSearchConditions conditions, System.AsyncCallback callback, Object state)
```


Begins getting message threads asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| conditions | [BaseSearchConditions](../../com.aspose.email/basesearchconditions) | Thread conditions. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetMessageThreads(IConnection connection, BaseSearchConditions conditions, System.AsyncCallback callback, Object state) {#beginGetMessageThreads-com.aspose.email.IConnection-com.aspose.email.BaseSearchConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetMessageThreads(IConnection connection, BaseSearchConditions conditions, System.AsyncCallback callback, Object state)
```


Begins getting message threads asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| conditions | [BaseSearchConditions](../../com.aspose.email/basesearchconditions) | Thread conditions. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces() {#beginGetNamespaces--}
```
public final System.IAsyncResult beginGetNamespaces()
```


Begins getting namespaces that are available on a server asynchronously.

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces(IConnection connection) {#beginGetNamespaces-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginGetNamespaces(IConnection connection)
```


Begins getting namespaces that are available on a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces(IConnection connection, System.AsyncCallback callback) {#beginGetNamespaces-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetNamespaces(IConnection connection, System.AsyncCallback callback)
```


Begins getting namespaces that are available on a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces(IConnection connection, System.AsyncCallback callback, Object state) {#beginGetNamespaces-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetNamespaces(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins getting namespaces that are available on a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces(System.AsyncCallback callback) {#beginGetNamespaces-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetNamespaces(System.AsyncCallback callback)
```


Begins getting namespaces that are available on a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetNamespaces(System.AsyncCallback callback, Object state) {#beginGetNamespaces-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetNamespaces(System.AsyncCallback callback, Object state)
```


Begins getting namespaces that are available on a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(IConnection connection, String quotaRootName) {#beginGetQuota-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginGetQuota(IConnection connection, String quotaRootName)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback) {#beginGetQuota-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback, Object state) {#beginGetQuota-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetQuota(IConnection connection, String quotaRootName, System.AsyncCallback callback, Object state)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(String quotaRootName) {#beginGetQuota-java.lang.String-}
```
public final System.IAsyncResult beginGetQuota(String quotaRootName)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(String quotaRootName, System.AsyncCallback callback) {#beginGetQuota-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetQuota(String quotaRootName, System.AsyncCallback callback)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuota(String quotaRootName, System.AsyncCallback callback, Object state) {#beginGetQuota-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetQuota(String quotaRootName, System.AsyncCallback callback, Object state)
```


Begins getting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(IConnection connection, String mailboxName) {#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginGetQuotaRoot(IConnection connection, String mailboxName)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| mailboxName | java.lang.String | mailbox name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback) {#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| mailboxName | java.lang.String | mailbox name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback, Object state) {#beginGetQuotaRoot-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetQuotaRoot(IConnection connection, String mailboxName, System.AsyncCallback callback, Object state)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| mailboxName | java.lang.String | mailbox name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(String mailboxName) {#beginGetQuotaRoot-java.lang.String-}
```
public final System.IAsyncResult beginGetQuotaRoot(String mailboxName)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailboxName | java.lang.String | mailbox name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback) {#beginGetQuotaRoot-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailboxName | java.lang.String | mailbox name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback, Object state) {#beginGetQuotaRoot-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginGetQuotaRoot(String mailboxName, System.AsyncCallback callback, Object state)
```


Begins getting quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailboxName | java.lang.String | mailbox name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient() {#beginIntroduceClient--}
```
public final System.IAsyncResult beginIntroduceClient()
```


Begins introduce client information to a server asynchronously.

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection) {#beginIntroduceClient-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo) {#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback) {#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state) {#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection, System.AsyncCallback callback) {#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection, System.AsyncCallback callback)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(IConnection connection, System.AsyncCallback callback, Object state) {#beginIntroduceClient-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginIntroduceClient(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo) {#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-}
```
public final System.IAsyncResult beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback) {#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state) {#beginIntroduceClient-com.aspose.email.ImapIdentificationInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginIntroduceClient(ImapIdentificationInfo clientIdentificationInfo, System.AsyncCallback callback, Object state)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(System.AsyncCallback callback) {#beginIntroduceClient-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginIntroduceClient(System.AsyncCallback callback)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginIntroduceClient(System.AsyncCallback callback, Object state) {#beginIntroduceClient-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginIntroduceClient(System.AsyncCallback callback, Object state)
```


Begins introduce client information to a server asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListAttachments(int sequenceNumber, System.AsyncCallback callback, Object state) {#beginListAttachments-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListAttachments(int sequenceNumber, System.AsyncCallback callback, Object state)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int |  |
| callback | com.aspose.ms.System.AsyncCallback |  |
| state | java.lang.Object |  |

**Returns:**
com.aspose.ms.System.IAsyncResult
### beginListFolders() {#beginListFolders--}
```
public final System.IAsyncResult beginListFolders()
```


Begins to get the list of folders in the mailbox

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(boolean loadFullInfo) {#beginListFolders-boolean-}
```
public final System.IAsyncResult beginListFolders(boolean loadFullInfo)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(boolean loadFullInfo, System.AsyncCallback callback) {#beginListFolders-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(boolean loadFullInfo, System.AsyncCallback callback)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(boolean loadFullInfo, System.AsyncCallback callback, Object state) {#beginListFolders-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(boolean loadFullInfo, System.AsyncCallback callback, Object state)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection) {#beginListFolders-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginListFolders(IConnection connection)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, boolean loadFullInfo) {#beginListFolders-com.aspose.email.IConnection-boolean-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, boolean loadFullInfo)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback) {#beginListFolders-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, boolean loadFullInfo, System.AsyncCallback callback, Object state)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, System.AsyncCallback callback) {#beginListFolders-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, System.AsyncCallback callback)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(IConnection connection, String parentFolder, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(System.AsyncCallback callback) {#beginListFolders-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(System.AsyncCallback callback)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(System.AsyncCallback callback, Object state) {#beginListFolders-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(System.AsyncCallback callback, Object state)
```


Begins to get the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder) {#beginListFolders-java.lang.String-}
```
public final System.IAsyncResult beginListFolders(String parentFolder)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo) {#beginListFolders-java.lang.String-boolean-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback) {#beginListFolders-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state) {#beginListFolders-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions) {#beginListFolders-java.lang.String-boolean-int-int-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback) {#beginListFolders-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state) {#beginListFolders-java.lang.String-boolean-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, System.AsyncCallback callback) {#beginListFolders-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, System.AsyncCallback callback)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListFolders(String parentFolder, System.AsyncCallback callback, Object state) {#beginListFolders-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListFolders(String parentFolder, System.AsyncCallback callback, Object state)
```


Begins to get the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber) {#beginListMessage-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback) {#beginListMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state) {#beginListMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields) {#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback) {#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber) {#beginListMessage-int-}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber, System.AsyncCallback callback) {#beginListMessage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber, System.AsyncCallback callback, Object state) {#beginListMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields) {#beginListMessage-int-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback) {#beginListMessage-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessage-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(int sequenceNumber, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId) {#beginListMessage-java.lang.String-}
```
public final System.IAsyncResult beginListMessage(String uniqueId)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId, System.AsyncCallback callback) {#beginListMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(String uniqueId, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId, System.AsyncCallback callback, Object state) {#beginListMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(String uniqueId, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId, Iterable<String> messageExtraFields) {#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final System.IAsyncResult beginListMessage(String uniqueId, Iterable<String> messageExtraFields)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback) {#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessage-java.lang.String-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessage(String uniqueId, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins to get information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages() {#beginListMessages--}
```
public final System.IAsyncResult beginListMessages()
```


Begins getting the list of messages asynchronously in the current folder

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, int maxNumberOfMessages) {#beginListMessages-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, int maxNumberOfMessages)
```


Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback) {#beginListMessages-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback)
```


Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| maxNumberOfMessages | int | Maximum number of messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, int maxNumberOfMessages, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages in the current folder Please, see more https://tools.ietf.org/html/rfc7162

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| maxNumberOfMessages | int | Maximum number of messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.IConnection-java.lang.String-long-boolean-java.lang.Iterable-java.lang.String--com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields, System.AsyncCallback callback, Object state)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| modificationSequence | long | Modification sequence |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, long modificationSequence) {#beginListMessages-com.aspose.email.IConnection-long-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, long modificationSequence)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| modificationSequence | long | Modification sequence |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback) {#beginListMessages-com.aspose.email.IConnection-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| modificationSequence | long | Modification sequence |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.IConnection-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(IConnection connection, long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| modificationSequence | long | Modification sequence |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(MailQuery query) {#beginListMessages-com.aspose.email.MailQuery-}
```
public final System.IAsyncResult beginListMessages(MailQuery query)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(MailQuery query, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.MailQuery-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(MailQuery query, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(MailQuery query, int maxNumberOfMessages) {#beginListMessages-com.aspose.email.MailQuery-int-}
```
public final System.IAsyncResult beginListMessages(MailQuery query, int maxNumberOfMessages)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(System.AsyncCallback callback) {#beginListMessages-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(System.AsyncCallback callback, Object state) {#beginListMessages-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName) {#beginListMessages-java.lang.String-}
```
public final System.IAsyncResult beginListMessages(String folderName)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, MailQuery query) {#beginListMessages-java.lang.String-com.aspose.email.MailQuery-}
```
public final System.IAsyncResult beginListMessages(String folderName, MailQuery query)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, MailQuery query, System.AsyncCallback callback, Object state) {#beginListMessages-java.lang.String-com.aspose.email.MailQuery-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(String folderName, MailQuery query, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages) {#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final System.IAsyncResult beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback) {#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state) {#beginListMessages-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(String folderName, MailQuery query, int maxNumberOfMessages, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, System.AsyncCallback callback) {#beginListMessages-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(String folderName, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(String folderName, System.AsyncCallback callback, Object state) {#beginListMessages-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(String folderName, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(long modificationSequence) {#beginListMessages-long-}
```
public final System.IAsyncResult beginListMessages(long modificationSequence)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| modificationSequence | long | Modification sequence |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(long modificationSequence, System.AsyncCallback callback) {#beginListMessages-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessages(long modificationSequence, System.AsyncCallback callback)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| modificationSequence | long | Modification sequence |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessages(long modificationSequence, System.AsyncCallback callback, Object state) {#beginListMessages-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessages(long modificationSequence, System.AsyncCallback callback, Object state)
```


Begins getting 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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| modificationSequence | long | Modification sequence |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, PageInfo page) {#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, PageInfo page)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, PageInfo page, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage) {#beginListMessagesByPage-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset) {#beginListMessagesByPage-com.aspose.email.IConnection-int-int-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.IConnection-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettingsAsync settings) {#beginListMessagesByPage-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.email.PageSettingsAsync-}
```
public final System.IAsyncResult beginListMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettingsAsync settings)
```


Begins getting the list of messages asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | The next page to retrieve. |
| settings | [PageSettingsAsync](../../com.aspose.email/pagesettingsasync) | The settings. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(PageInfo page) {#beginListMessagesByPage-com.aspose.email.PageInfo-}
```
public final System.IAsyncResult beginListMessagesByPage(PageInfo page)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(PageInfo page, System.AsyncCallback callback) {#beginListMessagesByPage-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(PageInfo page, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(PageInfo page, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(PageInfo page, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage) {#beginListMessagesByPage-int-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback) {#beginListMessagesByPage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, int pageOffset) {#beginListMessagesByPage-int-int-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, int pageOffset)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, int pageOffset, PageSettingsAsync settings) {#beginListMessagesByPage-int-int-com.aspose.email.PageSettingsAsync-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, int pageOffset, PageSettingsAsync settings)
```


Begins getting the list of messages asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| settings | [PageSettingsAsync](../../com.aspose.email/pagesettingsasync) | The settings. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback) {#beginListMessagesByPage-int-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-int-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(int itemsPerPage, int pageOffset, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state) {#beginListMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginListMessagesByPage(String folderName, MailQuery query, int itemsPerPage, System.AsyncCallback callback, Object state)
```


Begins getting the list of messages asynchronously in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(IConnection connection, String newParentFolder, String folderName) {#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveFolder(IConnection connection, String newParentFolder, String folderName)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback) {#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback, Object state) {#beginMoveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveFolder(IConnection connection, String newParentFolder, String folderName, System.AsyncCallback callback, Object state)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(String newParentFolder, String folderName) {#beginMoveFolder-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveFolder(String newParentFolder, String folderName)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback) {#beginMoveFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback, Object state) {#beginMoveFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveFolder(String newParentFolder, String folderName, System.AsyncCallback callback, Object state)
```


Moves specified folder and its subfolders to new location asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(IConnection connection, String uniqueId, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName) {#beginMoveMessage-int-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions) {#beginMoveMessage-int-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessage-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessage-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback) {#beginMoveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(int sequenceNumber, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName) {#beginMoveMessage-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions) {#beginMoveMessage-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessage-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessage-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback) {#beginMoveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessage(String uniqueId, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(IConnection connection, String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName) {#beginMoveMessages-int-int-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions) {#beginMoveMessages-int-int-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-int-int-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback) {#beginMoveMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-int-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(int startSequence, int endSequence, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessages-java.lang.String-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessages(String startUid, String endUid, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state) {#beginMoveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginMoveMessagesByUids(Iterable<String> uidSet, String folderName, System.AsyncCallback callback, Object state)
```


Begins an asynchronous moving.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop() {#beginNoop--}
```
public final System.IAsyncResult beginNoop()
```


Begins to execute 'No operation' command

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop(IConnection connection) {#beginNoop-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginNoop(IConnection connection)
```


Begins to execute 'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop(IConnection connection, System.AsyncCallback callback) {#beginNoop-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginNoop(IConnection connection, System.AsyncCallback callback)
```


Begins to execute 'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop(IConnection connection, System.AsyncCallback callback, Object state) {#beginNoop-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginNoop(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins to execute 'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop(System.AsyncCallback callback) {#beginNoop-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginNoop(System.AsyncCallback callback)
```


Begins to execute 'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginNoop(System.AsyncCallback callback, Object state) {#beginNoop-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginNoop(System.AsyncCallback callback, Object state)
```


Begins to execute 'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state) {#beginRemoveMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRemoveMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence, System.AsyncCallback callback, Object state)
```


Removes the flags of the message asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | Flag value |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(IConnection connection, String folderName, String newFolderName) {#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginRenameFolder(IConnection connection, String folderName, String newFolderName)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback) {#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback, Object state) {#beginRenameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRenameFolder(IConnection connection, String folderName, String newFolderName, System.AsyncCallback callback, Object state)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(String folderName, String newFolderName) {#beginRenameFolder-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginRenameFolder(String folderName, String newFolderName)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback) {#beginRenameFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback, Object state) {#beginRenameFolder-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRenameFolder(String folderName, String newFolderName, System.AsyncCallback callback, Object state)
```


Begins RenameFolder operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint() {#beginRequestCheckpoint--}
```
public final System.IAsyncResult beginRequestCheckpoint()
```


Begins request a checkpoint of the currently selected mailbox.

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint(IConnection connection) {#beginRequestCheckpoint-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginRequestCheckpoint(IConnection connection)
```


Begins request a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback) {#beginRequestCheckpoint-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback)
```


Begins request a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback, Object state) {#beginRequestCheckpoint-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRequestCheckpoint(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins request a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint(System.AsyncCallback callback) {#beginRequestCheckpoint-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRequestCheckpoint(System.AsyncCallback callback)
```


Begins request a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRequestCheckpoint(System.AsyncCallback callback, Object state) {#beginRequestCheckpoint-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRequestCheckpoint(System.AsyncCallback callback, Object state)
```


Begins request a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, int options) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, int options)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, PersonalStorage pst, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, int options) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, int options)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, InputStream stream, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options) {#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, int options) {#beginRestore-com.aspose.email.IConnection-java.lang.String-int-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, int options)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.IConnection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.IConnection-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(IConnection connection, String fileName, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options) {#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, ImapRestoreSettingsAsync settings) {#beginRestore-com.aspose.email.PersonalStorage-com.aspose.email.ImapRestoreSettingsAsync-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, ImapRestoreSettingsAsync settings)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| settings | [ImapRestoreSettingsAsync](../../com.aspose.email/imaprestoresettingsasync) | The restore settings |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, int options) {#beginRestore-com.aspose.email.PersonalStorage-int-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, int options)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback) {#beginRestore-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback, Object state) {#beginRestore-com.aspose.email.PersonalStorage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(PersonalStorage pst, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options) {#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-java.io.InputStream-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(InputStream stream, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, int options) {#beginRestore-java.io.InputStream-int-}
```
public final System.IAsyncResult beginRestore(InputStream stream, int options)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, int options, System.AsyncCallback callback) {#beginRestore-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(InputStream stream, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(InputStream stream, int options, System.AsyncCallback callback, Object state) {#beginRestore-java.io.InputStream-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(InputStream stream, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the given stream.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| stream | java.io.InputStream | A stream containing personal storage. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, ImapFolderInfoCollection folders, int options) {#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-}
```
public final System.IAsyncResult beginRestore(String fileName, ImapFolderInfoCollection folders, int options)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback) {#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state) {#beginRestore-java.lang.String-com.aspose.email.ImapFolderInfoCollection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(String fileName, ImapFolderInfoCollection folders, int options, System.AsyncCallback callback, Object state)
```


Begins to restore the specified imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| folders | [ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) | A folders to be restored. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, int options) {#beginRestore-java.lang.String-int-}
```
public final System.IAsyncResult beginRestore(String fileName, int options)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, int options, System.AsyncCallback callback) {#beginRestore-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginRestore(String fileName, int options, System.AsyncCallback callback)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginRestore(String fileName, int options, System.AsyncCallback callback, Object state) {#beginRestore-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginRestore(String fileName, int options, System.AsyncCallback callback, Object state)
```


Begins to restore imap folders from the specified personal storage file.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| fileName | java.lang.String | A path to personal storage file. |
| options | int | Restore options. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream) {#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback) {#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state) {#beginSaveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, String fileName) {#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, String fileName)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback) {#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback, Object state) {#beginSaveMessage-com.aspose.email.IConnection-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, int sequenceNumber, String fileName, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, String fileName) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, String fileName)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback, Object state) {#beginSaveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(IConnection connection, String uniqueId, String fileName, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, OutputStream resultStream) {#beginSaveMessage-int-java.io.OutputStream-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, OutputStream resultStream)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback) {#beginSaveMessage-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state) {#beginSaveMessage-int-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, OutputStream resultStream, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, String fileName) {#beginSaveMessage-int-java.lang.String-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, String fileName)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback) {#beginSaveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback, Object state) {#beginSaveMessage-int-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(int sequenceNumber, String fileName, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, OutputStream resultStream) {#beginSaveMessage-java.lang.String-java.io.OutputStream-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, OutputStream resultStream)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback) {#beginSaveMessage-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state) {#beginSaveMessage-java.lang.String-java.io.OutputStream-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, OutputStream resultStream, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, String fileName) {#beginSaveMessage-java.lang.String-java.lang.String-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, String fileName)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback) {#beginSaveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback, Object state) {#beginSaveMessage-java.lang.String-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSaveMessage(String uniqueId, String fileName, System.AsyncCallback callback, Object state)
```


Begins SaveMessage operation asynchronously

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(IConnection connection, String folderName) {#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginSelectFolder(IConnection connection, String folderName)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSelectFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(IConnection connection, String folderName, Boolean readOnly, System.AsyncCallback callback, Object state) {#beginSelectFolder-com.aspose.email.IConnection-java.lang.String-java.lang.Boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSelectFolder(IConnection connection, String folderName, Boolean readOnly, System.AsyncCallback callback, Object state)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder. |
| readOnly | java.lang.Boolean | Specifies whether the folder is to be selected as read-only |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(String folderName) {#beginSelectFolder-java.lang.String-}
```
public final System.IAsyncResult beginSelectFolder(String folderName)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(String folderName, System.AsyncCallback callback) {#beginSelectFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSelectFolder(String folderName, System.AsyncCallback callback)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(String folderName, System.AsyncCallback callback, Object state) {#beginSelectFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSelectFolder(String folderName, System.AsyncCallback callback, Object state)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSelectFolder(String folderName, Boolean readOnly, System.AsyncCallback callback, Object state) {#beginSelectFolder-java.lang.String-java.lang.Boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSelectFolder(String folderName, Boolean readOnly, System.AsyncCallback callback, Object state)
```


Begins select the specified folder asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder. |
| readOnly | java.lang.Boolean | Specifies whether the folder is to be selected as read-only |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit) {#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-}
```
public final System.IAsyncResult beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback) {#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state) {#beginSetQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSetQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(String quotaRootName, String resourceName, int resourceLimit) {#beginSetQuota-java.lang.String-java.lang.String-int-}
```
public final System.IAsyncResult beginSetQuota(String quotaRootName, String resourceName, int resourceLimit)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback) {#beginSetQuota-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state) {#beginSetQuota-java.lang.String-java.lang.String-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSetQuota(String quotaRootName, String resourceName, int resourceLimit, System.AsyncCallback callback, Object state)
```


Begins setting quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | Resource name. |
| resourceLimit | int | Resource limit. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSortMessageThreads(IConnection connection, SortConditions conditions, System.AsyncCallback callback, Object state) {#beginSortMessageThreads-com.aspose.email.IConnection-com.aspose.email.SortConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSortMessageThreads(IConnection connection, SortConditions conditions, System.AsyncCallback callback, Object state)
```


Begins sorting message threads asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| conditions | [SortConditions](../../com.aspose.email/sortconditions) | Sort conditions. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSortMessageThreads(SortConditions conditions, System.AsyncCallback callback, Object state) {#beginSortMessageThreads-com.aspose.email.SortConditions-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSortMessageThreads(SortConditions conditions, System.AsyncCallback callback, Object state)
```


Begins sorting message threads asynchronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| conditions | [SortConditions](../../com.aspose.email/sortconditions) | Sort conditions. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(IConnection connection, String folderName) {#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginSubscribeFolder(IConnection connection, String folderName)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginSubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(String folderName) {#beginSubscribeFolder-java.lang.String-}
```
public final System.IAsyncResult beginSubscribeFolder(String folderName)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(String folderName, System.AsyncCallback callback) {#beginSubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginSubscribeFolder(String folderName, System.AsyncCallback callback)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginSubscribeFolder(String folderName, System.AsyncCallback callback, Object state) {#beginSubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginSubscribeFolder(String folderName, System.AsyncCallback callback, Object state)
```


Begins subscribe operation that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber) {#beginUndeleteMessage-com.aspose.email.IConnection-int-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback) {#beginUndeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-com.aspose.email.IConnection-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence) {#beginUndeleteMessage-com.aspose.email.IConnection-int-long-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback) {#beginUndeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-com.aspose.email.IConnection-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-com.aspose.email.IConnection-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(IConnection connection, String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber) {#beginUndeleteMessage-int-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback) {#beginUndeleteMessage-int-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-int-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber, long modificationSequence) {#beginUndeleteMessage-int-long-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback) {#beginUndeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-int-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(int sequenceNumber, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId) {#beginUndeleteMessage-java.lang.String-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId, System.AsyncCallback callback) {#beginUndeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId, long modificationSequence) {#beginUndeleteMessage-java.lang.String-long-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback) {#beginUndeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state) {#beginUndeleteMessage-java.lang.String-long-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUndeleteMessage(String uniqueId, long modificationSequence, System.AsyncCallback callback, Object state)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder() {#beginUnselectFolder--}
```
public final System.IAsyncResult beginUnselectFolder()
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(boolean doNotExpunge) {#beginUnselectFolder-boolean-}
```
public final System.IAsyncResult beginUnselectFolder(boolean doNotExpunge)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback) {#beginUnselectFolder-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback, Object state) {#beginUnselectFolder-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnselectFolder(boolean doNotExpunge, System.AsyncCallback callback, Object state)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection) {#beginUnselectFolder-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection)
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection, boolean doNotExpunge) {#beginUnselectFolder-com.aspose.email.IConnection-boolean-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection, boolean doNotExpunge)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback) {#beginUnselectFolder-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback, Object state) {#beginUnselectFolder-com.aspose.email.IConnection-boolean-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection, boolean doNotExpunge, System.AsyncCallback callback, Object state)
```


Unselects folder which are currently selected asyncronously. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection, System.AsyncCallback callback) {#beginUnselectFolder-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection, System.AsyncCallback callback)
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(IConnection connection, System.AsyncCallback callback, Object state) {#beginUnselectFolder-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnselectFolder(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(System.AsyncCallback callback) {#beginUnselectFolder-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnselectFolder(System.AsyncCallback callback)
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnselectFolder(System.AsyncCallback callback, Object state) {#beginUnselectFolder-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnselectFolder(System.AsyncCallback callback, Object state)
```


Begins permanently removes all messages marked as deleted for currently selected folder and removes selected-state for current folder asyncronously.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(IConnection connection, String folderName) {#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final System.IAsyncResult beginUnsubscribeFolder(IConnection connection, String folderName)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback) {#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state) {#beginUnsubscribeFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnsubscribeFolder(IConnection connection, String folderName, System.AsyncCallback callback, Object state)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(String folderName) {#beginUnsubscribeFolder-java.lang.String-}
```
public final System.IAsyncResult beginUnsubscribeFolder(String folderName)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(String folderName, System.AsyncCallback callback) {#beginUnsubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginUnsubscribeFolder(String folderName, System.AsyncCallback callback)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginUnsubscribeFolder(String folderName, System.AsyncCallback callback, Object state) {#beginUnsubscribeFolder-java.lang.String-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginUnsubscribeFolder(String folderName, System.AsyncCallback callback, Object state)
```


Begins unsubscribe operation that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials() {#beginValidateCredentials--}
```
public final System.IAsyncResult beginValidateCredentials()
```


Begins to execute credentials validation

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials(IConnection connection) {#beginValidateCredentials-com.aspose.email.IConnection-}
```
public final System.IAsyncResult beginValidateCredentials(IConnection connection)
```


Begins to execute credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials(IConnection connection, System.AsyncCallback callback) {#beginValidateCredentials-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginValidateCredentials(IConnection connection, System.AsyncCallback callback)
```


Begins to execute credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials(IConnection connection, System.AsyncCallback callback, Object state) {#beginValidateCredentials-com.aspose.email.IConnection-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginValidateCredentials(IConnection connection, System.AsyncCallback callback, Object state)
```


Begins to execute credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials(System.AsyncCallback callback) {#beginValidateCredentials-com.aspose.ms.System.AsyncCallback-}
```
public final System.IAsyncResult beginValidateCredentials(System.AsyncCallback callback)
```


Begins to execute credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### beginValidateCredentials(System.AsyncCallback callback, Object state) {#beginValidateCredentials-com.aspose.ms.System.AsyncCallback-java.lang.Object-}
```
public final System.IAsyncResult beginValidateCredentials(System.AsyncCallback callback, Object state)
```


Begins to execute credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | com.aspose.ms.System.AsyncCallback | References a method to be called when a corresponding asynchronous operation completes. |
| state | java.lang.Object | The state. |

**Returns:**
com.aspose.ms.System.IAsyncResult - IAsyncResult that represents the status of an asynchronous operation.
### bindIPEndPoint(BindIPEndPointHandler handler) {#bindIPEndPoint-com.aspose.email.BindIPEndPointHandler-}
```
public void bindIPEndPoint(BindIPEndPointHandler handler)
```


Associates a Socket with a local endpoint.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| handler | [BindIPEndPointHandler](../../com.aspose.email/bindipendpointhandler) |  |

### cancelAsyncOperation(System.IAsyncResult asyncResult) {#cancelAsyncOperation-com.aspose.ms.System.IAsyncResult-}
```
public final void cancelAsyncOperation(System.IAsyncResult asyncResult)
```


Cancels asynchronous operation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | Defines asynchronous operation to cancel. |

### changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#changeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#changeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#changeMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#changeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#changeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(String uniqueId, ImapMessageFlags flags) {#changeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#changeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#changeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#changeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#changeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#changeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#changeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void changeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Changes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### clientCapabilities(IConnection connection, String[] capabilityNames) {#clientCapabilities-com.aspose.email.IConnection-java.lang.String...-}
```
public final String[] clientCapabilities(IConnection connection, String[] capabilityNames)
```


Notifies server which extensions are supported by client. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |

**Returns:**
java.lang.String[] - Returns array with capabilities which are supported by a server.
### clientCapabilities(String[] capabilityNames) {#clientCapabilities-java.lang.String...-}
```
public final String[] clientCapabilities(String[] capabilityNames)
```


Notifies server which extensions are supported by client. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| capabilityNames | java.lang.String[] | Array of capabilities which are supported by client |

**Returns:**
java.lang.String[] - Returns array with capabilities which are supported by a server.
### close() {#close--}
```
public void close()
```




### commitDeletes() {#commitDeletes--}
```
public final void commitDeletes()
```


Commit the deletions

### commitDeletes(IConnection connection) {#commitDeletes-com.aspose.email.IConnection-}
```
public final void commitDeletes(IConnection connection)
```


Commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

### commitDeletes(IConnection connection, int sleep) {#commitDeletes-com.aspose.email.IConnection-int-}
```
public final void commitDeletes(IConnection connection, int sleep)
```


Commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sleep | int | Wait time complete the operation in milliseconds |

### commitDeletes(IConnection connection, Iterable<String> uidSet) {#commitDeletes-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final void commitDeletes(IConnection connection, Iterable<String> uidSet)
```


Commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |

### commitDeletes(IConnection connection, String uniqueId) {#commitDeletes-com.aspose.email.IConnection-java.lang.String-}
```
public final void commitDeletes(IConnection connection, String uniqueId)
```


Commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of a message |

### commitDeletes(IConnection connection, String startUid, String endUid) {#commitDeletes-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final void commitDeletes(IConnection connection, String startUid, String endUid)
```


Commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

### commitDeletes(int sleep) {#commitDeletes-int-}
```
public final void commitDeletes(int sleep)
```


Commit the deletions

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sleep | int | Wait time complete the operation in milliseconds |

### commitDeletes(Iterable<String> uidSet) {#commitDeletes-java.lang.Iterable-java.lang.String--}
```
public final void commitDeletes(Iterable<String> uidSet)
```


Commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | Set of unique identifiers for messages |

### commitDeletes(String uniqueId) {#commitDeletes-java.lang.String-}
```
public final void commitDeletes(String uniqueId)
```


Commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of a message |

### commitDeletes(String startUid, String endUid) {#commitDeletes-java.lang.String-java.lang.String-}
```
public final void commitDeletes(String startUid, String endUid)
```


Commit the deletions This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

### connectIPEndPoint(BindIPEndPointHandler handler) {#connectIPEndPoint-com.aspose.email.BindIPEndPointHandler-}
```
public void connectIPEndPoint(BindIPEndPointHandler handler)
```


Associates a Socket with a remote endpoint.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| handler | [BindIPEndPointHandler](../../com.aspose.email/bindipendpointhandler) |  |

### copyMessage(IConnection connection, int sequenceNumber, String folderName) {#copyMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final String copyMessage(IConnection connection, int sequenceNumber, String folderName)
```


Copies the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be copied |

**Returns:**
java.lang.String - If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315
### copyMessage(IConnection connection, String uniqueId, String folderName) {#copyMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final String copyMessage(IConnection connection, String uniqueId, String folderName)
```


Copies the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be copied |

**Returns:**
java.lang.String - If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315
### copyMessage(int sequenceNumber, String folderName) {#copyMessage-int-java.lang.String-}
```
public final String copyMessage(int sequenceNumber, String folderName)
```


Copies the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be copied |

**Returns:**
java.lang.String - If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315
### copyMessage(String uniqueId, String folderName) {#copyMessage-java.lang.String-java.lang.String-}
```
public final String copyMessage(String uniqueId, String folderName)
```


Copies the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be copied |

**Returns:**
java.lang.String - If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315
### copyMessages(IConnection connection, int startSequence, int endSequence, String folderName) {#copyMessages-com.aspose.email.IConnection-int-int-java.lang.String-}
```
public final void copyMessages(IConnection connection, int startSequence, int endSequence, String folderName)
```


Copy the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#copyMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final void copyMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessages(IConnection connection, String startUid, String endUid, String folderName) {#copyMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-}
```
public final void copyMessages(IConnection connection, String startUid, String endUid, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessages(int startSequence, int endSequence, String folderName) {#copyMessages-int-int-java.lang.String-}
```
public final void copyMessages(int startSequence, int endSequence, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#copyMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final void copyMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessages(String startUid, String endUid, String folderName) {#copyMessages-java.lang.String-java.lang.String-java.lang.String-}
```
public final void copyMessages(String startUid, String endUid, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName) {#copyMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final void copyMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)
```


Copy the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName) {#copyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final void copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions) {#copyMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-}
```
public final void copyMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### copyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName) {#copyMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final void copyMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### copyMessagesByUids(Iterable<String> uidSet, String folderName) {#copyMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final void copyMessagesByUids(Iterable<String> uidSet, String folderName)
```


Copy messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### createConnection() {#createConnection--}
```
public IConnection createConnection()
```


Creates new independent connection for operations not linked to threads (not default connection). Invocation of this method is similar to invocation of CreateConnection(createAsDefaultConnection = false) Please see more in documentation for EmailClient.ConnectionAsgmtMode property.

**Returns:**
[IConnection](../../com.aspose.email/iconnection) - Returns connection object
### createConnection(boolean createAsDefaultConnection) {#createConnection-boolean-}
```
public IConnection createConnection(boolean createAsDefaultConnection)
```


Creates new (default or independent) connection for operations. Please see more in documentation for EmailClient.ConnectionAsgmtMode property.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| createAsDefaultConnection | boolean | Indicates if connection has to be created as default for current thread |

**Returns:**
[IConnection](../../com.aspose.email/iconnection) - Returns connection object
### createFolder(IConnection connection, String folderName) {#createFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final void createFolder(IConnection connection, String folderName)
```


Creates a folder with the specified name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be created |

### createFolder(String folderName) {#createFolder-java.lang.String-}
```
public final void createFolder(String folderName)
```


Creates a folder with the specified name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be created |

### deleteFolder(IConnection connection, String folderName) {#deleteFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final void deleteFolder(IConnection connection, String folderName)
```


Deletes a specified folder. This method represents IMAP DELETE command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be deleted |

### deleteFolder(String folderName) {#deleteFolder-java.lang.String-}
```
public final void deleteFolder(String folderName)
```


Deletes a specified folder. This method represents IMAP DELETE command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be deleted |

### deleteMessage(IConnection connection, int sequenceNumber) {#deleteMessage-com.aspose.email.IConnection-int-}
```
public final void deleteMessage(IConnection connection, int sequenceNumber)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |

### deleteMessage(IConnection connection, int sequenceNumber, long modificationSequence) {#deleteMessage-com.aspose.email.IConnection-int-long-}
```
public final void deleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | Sequence number of a message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessage(IConnection connection, String uniqueId) {#deleteMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final void deleteMessage(IConnection connection, String uniqueId)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |

### deleteMessage(IConnection connection, String uniqueId, boolean commitNow) {#deleteMessage-com.aspose.email.IConnection-java.lang.String-boolean-}
```
public final void deleteMessage(IConnection connection, String uniqueId, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessage(IConnection connection, String uniqueId, long modificationSequence) {#deleteMessage-com.aspose.email.IConnection-java.lang.String-long-}
```
public final void deleteMessage(IConnection connection, String uniqueId, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow) {#deleteMessage-com.aspose.email.IConnection-java.lang.String-long-boolean-}
```
public final void deleteMessage(IConnection connection, String uniqueId, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessage(int sequenceNumber) {#deleteMessage-int-}
```
public final void deleteMessage(int sequenceNumber)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |

### deleteMessage(int sequenceNumber, long modificationSequence) {#deleteMessage-int-long-}
```
public final void deleteMessage(int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | Sequence number of a message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessage(String uniqueId) {#deleteMessage-java.lang.String-}
```
public final void deleteMessage(String uniqueId)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |

### deleteMessage(String uniqueId, boolean commitNow) {#deleteMessage-java.lang.String-boolean-}
```
public final void deleteMessage(String uniqueId, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessage(String uniqueId, long modificationSequence) {#deleteMessage-java.lang.String-long-}
```
public final void deleteMessage(String uniqueId, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessage(String uniqueId, long modificationSequence, boolean commitNow) {#deleteMessage-java.lang.String-long-boolean-}
```
public final void deleteMessage(String uniqueId, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(IConnection connection, int startSequence, int endSequence) {#deleteMessages-com.aspose.email.IConnection-int-int-}
```
public final void deleteMessages(IConnection connection, int startSequence, int endSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |

### deleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence) {#deleteMessages-com.aspose.email.IConnection-int-int-long-}
```
public final void deleteMessages(IConnection connection, int startSequence, int endSequence, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet) {#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--}
```
public final void deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |

### deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow) {#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-}
```
public final void deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence) {#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-}
```
public final void deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow) {#deleteMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-}
```
public final void deleteMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(IConnection connection, String startUid, String endUid) {#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final void deleteMessages(IConnection connection, String startUid, String endUid)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

### deleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow) {#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-}
```
public final void deleteMessages(IConnection connection, String startUid, String endUid, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence) {#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-}
```
public final void deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow) {#deleteMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-long-boolean-}
```
public final void deleteMessages(IConnection connection, String startUid, String endUid, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(int startSequence, int endSequence) {#deleteMessages-int-int-}
```
public final void deleteMessages(int startSequence, int endSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |

### deleteMessages(int startSequence, int endSequence, long modificationSequence) {#deleteMessages-int-int-long-}
```
public final void deleteMessages(int startSequence, int endSequence, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(Iterable<ImapMessageInfo> messageInfoSet) {#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--}
```
public final void deleteMessages(Iterable<ImapMessageInfo> messageInfoSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |

### deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow) {#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--boolean-}
```
public final void deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence) {#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-}
```
public final void deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow) {#deleteMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--long-boolean-}
```
public final void deleteMessages(Iterable<ImapMessageInfo> messageInfoSet, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo for deletion |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(String startUid, String endUid) {#deleteMessages-java.lang.String-java.lang.String-}
```
public final void deleteMessages(String startUid, String endUid)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |

### deleteMessages(String startUid, String endUid, boolean commitNow) {#deleteMessages-java.lang.String-java.lang.String-boolean-}
```
public final void deleteMessages(String startUid, String endUid, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessages(String startUid, String endUid, long modificationSequence) {#deleteMessages-java.lang.String-java.lang.String-long-}
```
public final void deleteMessages(String startUid, String endUid, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow) {#deleteMessages-java.lang.String-java.lang.String-long-boolean-}
```
public final void deleteMessages(String startUid, String endUid, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet) {#deleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--}
```
public final void deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |

### deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence) {#deleteMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--long-}
```
public final void deleteMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessagesBySequences(Iterable<Integer> sequenceSet) {#deleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--}
```
public final void deleteMessagesBySequences(Iterable<Integer> sequenceSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |

### deleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence) {#deleteMessagesBySequences-java.lang.Iterable-java.lang.Integer--long-}
```
public final void deleteMessagesBySequences(Iterable<Integer> sequenceSet, long modificationSequence)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessagesByUids(IConnection connection, Iterable<String> uidSet) {#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final void deleteMessagesByUids(IConnection connection, Iterable<String> uidSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |

### deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow) {#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--boolean-}
```
public final void deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence) {#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-}
```
public final void deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow) {#deleteMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--long-boolean-}
```
public final void deleteMessagesByUids(IConnection connection, Iterable<String> uidSet, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessagesByUids(Iterable<String> uidSet) {#deleteMessagesByUids-java.lang.Iterable-java.lang.String--}
```
public final void deleteMessagesByUids(Iterable<String> uidSet)
```


Marks a message with the specified sequence number as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |

### deleteMessagesByUids(Iterable<String> uidSet, boolean commitNow) {#deleteMessagesByUids-java.lang.Iterable-java.lang.String--boolean-}
```
public final void deleteMessagesByUids(Iterable<String> uidSet, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence) {#deleteMessagesByUids-java.lang.Iterable-java.lang.String--long-}
```
public final void deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence)
```


Marks a message with the specified unique identifier as deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow) {#deleteMessagesByUids-java.lang.Iterable-java.lang.String--long-boolean-}
```
public final void deleteMessagesByUids(Iterable<String> uidSet, long modificationSequence, boolean commitNow)
```


Marks a message with the specified unique identifier as deleted and commits the deletions if user specifies this. This method works only if server supports UIDPLUS extension. Please, read more https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |
| commitNow | boolean | Defines whether message must be commited now. Please, read more https://tools.ietf.org/html/rfc4315 |

### dispose() {#dispose--}
```
public void dispose()
```


Finalizes all operations with a server.

### endAddMessageFlags(System.IAsyncResult asyncResult) {#endAddMessageFlags-com.aspose.ms.System.IAsyncResult-}
```
public final void endAddMessageFlags(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endAppendMessage(System.IAsyncResult asyncResult) {#endAppendMessage-com.aspose.ms.System.IAsyncResult-}
```
public final String endAppendMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.lang.String - An unique id of appended message
### endAppendMessages(System.IAsyncResult asyncResult) {#endAppendMessages-com.aspose.ms.System.IAsyncResult-}
```
public final AppendMessagesResult endAppendMessages(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[AppendMessagesResult](../../com.aspose.email/appendmessagesresult) - An unique id of appended message
### endBackup(System.IAsyncResult asyncResult) {#endBackup-com.aspose.ms.System.IAsyncResult-}
```
public final void endBackup(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endChangeMessageFlags(System.IAsyncResult asyncResult) {#endChangeMessageFlags-com.aspose.ms.System.IAsyncResult-}
```
public final void endChangeMessageFlags(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endClientCapabilities(System.IAsyncResult asyncResult) {#endClientCapabilities-com.aspose.ms.System.IAsyncResult-}
```
public final String[] endClientCapabilities(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete. Please note, this operation works only in case if server supports RFC5161 See more https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.lang.String[] - Returns array with capabilities which are supported by a server.
### endCommitDeletes(System.IAsyncResult asyncResult) {#endCommitDeletes-com.aspose.ms.System.IAsyncResult-}
```
public final void endCommitDeletes(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endCopyMessage(System.IAsyncResult asyncResult) {#endCopyMessage-com.aspose.ms.System.IAsyncResult-}
```
public final String endCopyMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.lang.String - If server supports UIDPLUS extension returns unique id of the copied message, otherwise returns null Please, read more https://tools.ietf.org/html/rfc4315
### endCopyMessages(System.IAsyncResult asyncResult) {#endCopyMessages-com.aspose.ms.System.IAsyncResult-}
```
public final void endCopyMessages(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endCreateFolder(System.IAsyncResult asyncResult) {#endCreateFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endCreateFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous folder creation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endDeleteFolder(System.IAsyncResult asyncResult) {#endDeleteFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endDeleteFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous folder deletion to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endDeleteMessage(System.IAsyncResult asyncResult) {#endDeleteMessage-com.aspose.ms.System.IAsyncResult-}
```
public final void endDeleteMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous message deletion to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endDeleteMessages(System.IAsyncResult asyncResult) {#endDeleteMessages-com.aspose.ms.System.IAsyncResult-}
```
public final void endDeleteMessages(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous message deletion to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endExistFolder(System.IAsyncResult asyncResult) {#endExistFolder-com.aspose.ms.System.IAsyncResult-}
```
public final boolean endExistFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### endExistFolder(System.IAsyncResult asyncResult, ImapFolderInfo[] folderInfo) {#endExistFolder-com.aspose.ms.System.IAsyncResult-com.aspose.email.ImapFolderInfo---}
```
public final boolean endExistFolder(System.IAsyncResult asyncResult, ImapFolderInfo[] folderInfo)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |
| folderInfo | [ImapFolderInfo\[\]](../../com.aspose.email/imapfolderinfo) | Folder information |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### endFetchAttachment(System.IAsyncResult asyncResult) {#endFetchAttachment-com.aspose.ms.System.IAsyncResult-}
```
public final Attachment endFetchAttachment(System.IAsyncResult asyncResult)
```


Waits for the asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[Attachment](../../com.aspose.email/attachment)
### endFetchMessage(System.IAsyncResult asyncResult) {#endFetchMessage-com.aspose.ms.System.IAsyncResult-}
```
public final MailMessage endFetchMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous message fetching to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - The [MailMessage](../../com.aspose.email/mailmessage) that represents message.
### endFetchMessages(System.IAsyncResult asyncResult) {#endFetchMessages-com.aspose.ms.System.IAsyncResult-}
```
public final Iterable<MailMessage> endFetchMessages(System.IAsyncResult asyncResult)
```


Waits for the asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.lang.Iterable<com.aspose.email.MailMessage> - List of [MailMessage](../../com.aspose.email/mailmessage) objects
### endGetFolderInfo(System.IAsyncResult asyncResult) {#endGetFolderInfo-com.aspose.ms.System.IAsyncResult-}
```
public final ImapFolderInfo endGetFolderInfo(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous folder listing to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapFolderInfo](../../com.aspose.email/imapfolderinfo) - The specified folder information
### endGetMessageThreads(System.IAsyncResult asyncResult) {#endGetMessageThreads-com.aspose.ms.System.IAsyncResult-}
```
public final List<MessageThreadResult> endGetMessageThreads(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous folder deletion to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult>
### endGetNamespaces(System.IAsyncResult asyncResult) {#endGetNamespaces-com.aspose.ms.System.IAsyncResult-}
```
public final ImapNamespace[] endGetNamespaces(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
com.aspose.email.ImapNamespace[] - Returns namespaces that are available on a server.
### endGetQuota(System.IAsyncResult asyncResult) {#endGetQuota-com.aspose.ms.System.IAsyncResult-}
```
public final ImapQuota[] endGetQuota(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### endGetQuotaRoot(System.IAsyncResult asyncResult) {#endGetQuotaRoot-com.aspose.ms.System.IAsyncResult-}
```
public final ImapQuotaRoot[] endGetQuotaRoot(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
com.aspose.email.ImapQuotaRoot[] - Quota root information for mailbox
### endIntroduceClient(System.IAsyncResult asyncResult) {#endIntroduceClient-com.aspose.ms.System.IAsyncResult-}
```
public final ImapIdentificationInfo endIntroduceClient(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) - Returns server identification information
### endListAttachments(System.IAsyncResult asyncResult) {#endListAttachments-com.aspose.ms.System.IAsyncResult-}
```
public final ImapAttachmentInfoCollection endListAttachments(System.IAsyncResult asyncResult)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult |  |

**Returns:**
[ImapAttachmentInfoCollection](../../com.aspose.email/imapattachmentinfocollection)
### endListFolders(System.IAsyncResult asyncResult) {#endListFolders-com.aspose.ms.System.IAsyncResult-}
```
public final ImapFolderInfoCollection endListFolders(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### endListMessage(System.IAsyncResult asyncResult) {#endListMessage-com.aspose.ms.System.IAsyncResult-}
```
public final ImapMessageInfo endListMessage(System.IAsyncResult asyncResult)
```


Waits for the asynchronous ListMessage operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### endListMessages(System.IAsyncResult asyncResult) {#endListMessages-com.aspose.ms.System.IAsyncResult-}
```
public final ImapMessageInfoCollection endListMessages(System.IAsyncResult asyncResult)
```


Waits for the asynchronous ListMessages operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Returns container for a collection of ImapMessageInfo objects
### endListMessagesByPage(System.IAsyncResult asyncResult) {#endListMessagesByPage-com.aspose.ms.System.IAsyncResult-}
```
public final ImapPageInfo endListMessagesByPage(System.IAsyncResult asyncResult)
```


Waits for the asynchronous ListMessagesByPage operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### endMoveFolder(System.IAsyncResult asyncResult) {#endMoveFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endMoveFolder(System.IAsyncResult asyncResult)
```


Waits for completion of the asynchronous operation.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endMoveMessage(System.IAsyncResult asyncResult) {#endMoveMessage-com.aspose.ms.System.IAsyncResult-}
```
public final String endMoveMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.lang.String
### endMoveMessages(System.IAsyncResult asyncResult) {#endMoveMessages-com.aspose.ms.System.IAsyncResult-}
```
public final void endMoveMessages(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endNoop(System.IAsyncResult asyncResult) {#endNoop-com.aspose.ms.System.IAsyncResult-}
```
public final void endNoop(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endRemoveMessageFlags(System.IAsyncResult asyncResult) {#endRemoveMessageFlags-com.aspose.ms.System.IAsyncResult-}
```
public final void endRemoveMessageFlags(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endRenameFolder(System.IAsyncResult asyncResult) {#endRenameFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endRenameFolder(System.IAsyncResult asyncResult)
```


Waits for the asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endRequestCheckpoint(System.IAsyncResult asyncResult) {#endRequestCheckpoint-com.aspose.ms.System.IAsyncResult-}
```
public final void endRequestCheckpoint(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endRestore(System.IAsyncResult asyncResult) {#endRestore-com.aspose.ms.System.IAsyncResult-}
```
public final void endRestore(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endSaveMessage(System.IAsyncResult asyncResult) {#endSaveMessage-com.aspose.ms.System.IAsyncResult-}
```
public final void endSaveMessage(System.IAsyncResult asyncResult)
```


Waits for the asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endSelectFolder(System.IAsyncResult asyncResult) {#endSelectFolder-com.aspose.ms.System.IAsyncResult-}
```
public final ImapFolderInfo endSelectFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous message fetching to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
[ImapFolderInfo](../../com.aspose.email/imapfolderinfo) - The [MailMessage](../../com.aspose.email/mailmessage) that represents message.
### endSetQuota(System.IAsyncResult asyncResult) {#endSetQuota-com.aspose.ms.System.IAsyncResult-}
```
public final ImapQuota[] endSetQuota(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### endSortMessageThreads(System.IAsyncResult asyncResult) {#endSortMessageThreads-com.aspose.ms.System.IAsyncResult-}
```
public final List<MessageThreadResult> endSortMessageThreads(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous folder deletion to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult>
### endSubscribeFolder(System.IAsyncResult asyncResult) {#endSubscribeFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endSubscribeFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endUndeleteMessage(System.IAsyncResult asyncResult) {#endUndeleteMessage-com.aspose.ms.System.IAsyncResult-}
```
public final void endUndeleteMessage(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endUnselectFolder(System.IAsyncResult asyncResult) {#endUnselectFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endUnselectFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endUnsubscribeFolder(System.IAsyncResult asyncResult) {#endUnsubscribeFolder-com.aspose.ms.System.IAsyncResult-}
```
public final void endUnsubscribeFolder(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

### endValidateCredentials(System.IAsyncResult asyncResult) {#endValidateCredentials-com.aspose.ms.System.IAsyncResult-}
```
public final boolean endValidateCredentials(System.IAsyncResult asyncResult)
```


Waits for the pending asynchronous operation to complete.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| asyncResult | com.aspose.ms.System.IAsyncResult | The reference to the pending asynchronous request to wait for. |

**Returns:**
boolean - True if authentication was successful, otherwise false.
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### existFolder(IConnection connection, String folderName) {#existFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final boolean existFolder(IConnection connection, String folderName)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### existFolder(IConnection connection, String folderName, ImapFolderInfo[] folderInfo) {#existFolder-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapFolderInfo---}
```
public final boolean existFolder(IConnection connection, String folderName, ImapFolderInfo[] folderInfo)
```


Check whether this folder exists, extract folder info if so

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |
| folderInfo | [ImapFolderInfo\[\]](../../com.aspose.email/imapfolderinfo) | Folder information |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### existFolder(String folderName) {#existFolder-java.lang.String-}
```
public final boolean existFolder(String folderName)
```


Check whether this folder exists

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### existFolder(String folderName, ImapFolderInfo[] folderInfo) {#existFolder-java.lang.String-com.aspose.email.ImapFolderInfo---}
```
public final boolean existFolder(String folderName, ImapFolderInfo[] folderInfo)
```


Check whether this folder exists, extract folder info if so

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |
| folderInfo | [ImapFolderInfo\[\]](../../com.aspose.email/imapfolderinfo) | Folder information |

**Returns:**
boolean - Returns true if the folder is existing, otherwise returns false
### fetchAttachment(IConnection connection, int sequenceNumber, String attachmentName) {#fetchAttachment-com.aspose.email.IConnection-int-java.lang.String-}
```
public final Attachment fetchAttachment(IConnection connection, int sequenceNumber, String attachmentName)
```


Fetches the specified attachment

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | A name of attachment |

**Returns:**
[Attachment](../../com.aspose.email/attachment) - [Attachment](../../com.aspose.email/attachment) that represents attachment
### fetchAttachment(int sequenceNumber, String attachmentName) {#fetchAttachment-int-java.lang.String-}
```
public final Attachment fetchAttachment(int sequenceNumber, String attachmentName)
```


Fetches the specified attachment

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of a message |
| attachmentName | java.lang.String | A name of attachment |

**Returns:**
[Attachment](../../com.aspose.email/attachment) - [Attachment](../../com.aspose.email/attachment) that represents attachment
### fetchMessage(IConnection connection, int sequenceNumber) {#fetchMessage-com.aspose.email.IConnection-int-}
```
public final MailMessage fetchMessage(IConnection connection, int sequenceNumber)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment) {#fetchMessage-com.aspose.email.IConnection-int-boolean-}
```
public final MailMessage fetchMessage(IConnection connection, int sequenceNumber, boolean ignoreAttachment)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessage(IConnection connection, String uniqueId) {#fetchMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final MailMessage fetchMessage(IConnection connection, String uniqueId)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique id of message |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessage(int sequenceNumber) {#fetchMessage-int-}
```
public final MailMessage fetchMessage(int sequenceNumber)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessage(int sequenceNumber, boolean ignoreAttachment) {#fetchMessage-int-boolean-}
```
public final MailMessage fetchMessage(int sequenceNumber, boolean ignoreAttachment)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| ignoreAttachment | boolean | A value that defines whether the attachments should not be loaded. If it is set to  true , then only message headers, message body and attachment information are fetched. Attachment content is not loaded |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessage(String uniqueId) {#fetchMessage-java.lang.String-}
```
public final MailMessage fetchMessage(String uniqueId)
```


Fetches the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique id of message |

**Returns:**
[MailMessage](../../com.aspose.email/mailmessage) - [MailMessage](../../com.aspose.email/mailmessage) that represents e-mail message
### fetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers) {#fetchMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--}
```
public final Iterable<MailMessage> fetchMessagesBySequences(IConnection connection, Iterable<Integer> sequenceNumbers)
```


Fetches the messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> | The sequence numbers of the messages |

**Returns:**
java.lang.Iterable<com.aspose.email.MailMessage> - List of [MailMessage](../../com.aspose.email/mailmessage) objects
### fetchMessagesBySequences(Iterable<Integer> sequenceNumbers) {#fetchMessagesBySequences-java.lang.Iterable-java.lang.Integer--}
```
public final Iterable<MailMessage> fetchMessagesBySequences(Iterable<Integer> sequenceNumbers)
```


Fetches the messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumbers | java.lang.Iterable<java.lang.Integer> | The sequence numbers of the messages |

**Returns:**
java.lang.Iterable<com.aspose.email.MailMessage> - List of [MailMessage](../../com.aspose.email/mailmessage) objects
### fetchMessagesByUids(IConnection connection, Iterable<String> uids) {#fetchMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--}
```
public final Iterable<MailMessage> fetchMessagesByUids(IConnection connection, Iterable<String> uids)
```


Fetches the messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |

**Returns:**
java.lang.Iterable<com.aspose.email.MailMessage> - List of [MailMessage](../../com.aspose.email/mailmessage) objects
### fetchMessagesByUids(Iterable<String> uids) {#fetchMessagesByUids-java.lang.Iterable-java.lang.String--}
```
public final Iterable<MailMessage> fetchMessagesByUids(Iterable<String> uids)
```


Fetches the messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uids | java.lang.Iterable<java.lang.String> | The sequence numbers of the messages |

**Returns:**
java.lang.Iterable<com.aspose.email.MailMessage> - List of [MailMessage](../../com.aspose.email/mailmessage) objects
### getAccessToken() {#getAccessToken--}
```
public String getAccessToken()
```


Gets or sets the access token.

Value: The string that represents access token.

**Returns:**
java.lang.String
### getAllowedAuthentication() {#getAllowedAuthentication--}
```
public final long getAllowedAuthentication()
```


Gets or sets enumeration of allowed by user authentication types

**Returns:**
long
### getAnnotateSupported() {#getAnnotateSupported--}
```
public final boolean getAnnotateSupported()
```


Gets information whether ANNOTATE extension is supported See more: https://tools.ietf.org/html/rfc5257

**Returns:**
boolean
### getAutoCommit() {#getAutoCommit--}
```
public final boolean getAutoCommit()
```


Indicates, whether commit operation are executed automatically when folder is changed or before connection is closed.

**Returns:**
boolean
### getCapabilities() {#getCapabilities--}
```
public String[] getCapabilities()
```


Get Capabilities.

**Returns:**
java.lang.String[]
### getChildrenSupported() {#getChildrenSupported--}
```
public final boolean getChildrenSupported()
```


Gets information whether CHILDREN extension is supported See more: https://tools.ietf.org/html/rfc3348

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getClientCertificates() {#getClientCertificates--}
```
public System.Security.Cryptography.X509Certificates.X509CertificateCollection getClientCertificates()
```


Contains collection of clients certificates

**Returns:**
com.aspose.ms.System.Security.Cryptography.X509Certificates.X509CertificateCollection
### getClientIdentificationInfo() {#getClientIdentificationInfo--}
```
public final ImapIdentificationInfo getClientIdentificationInfo()
```


Gets or sets client identification information See more: https://tools.ietf.org/html/rfc2971

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo)
### getCompressSupported() {#getCompressSupported--}
```
public final boolean getCompressSupported()
```


Gets information whether COMPRESS extension is supported See more: https://tools.ietf.org/html/rfc4978

**Returns:**
boolean
### getCondstoreSupported() {#getCondstoreSupported--}
```
public final boolean getCondstoreSupported()
```


Gets information whether CONDSTORE extension is supported See more: https://tools.ietf.org/html/rfc7162

**Returns:**
boolean
### getConnectionAsgmtMode() {#getConnectionAsgmtMode--}
```
public int getConnectionAsgmtMode()
```


Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can't be created or disposed manually. - Default connection is connection default for some thread. If default connection exists and ConnectionAsgmtMode allow, all methods of email client executed in this thread will be implicitly use this connection. Only one default connection can be exist per thread. It can be created manually or automatically. It depends on EmailClient.ConnectionAsgmtMode property. These connections can be created manually with EmailClient.CreateConnection(createAsDefaultConnection = true) method. If default connection does not used(depends on connection allocation mode), main connection used implicitly instead of it. - Independent connections are connections that are not linked to threads.They can be created manually and has to be used explicitly as method parameter. These connections can be created manually with EmailClient.CreateConnection() method or EmailClient.CreateConnection(createAsDefaultConnection = false) method. There are folowing connection allocation types: - ConnectionAsgmtType.UseMainOrDefault This mode uses by default in email clients. Email client uses main connection for all operations from multiple threads if default connection hasn't been created, or connection hasnt been passed as method parameter explicitly. Main connection is connection which is created in the same time like email client. User can create default connections for threads with CreateConnection method. If default connection for thread is created, it's used implicitly for all methods of email client which are invoked in this thread. If default connection for thread is not created, main connection is used for all methods of email client which are invoked in this thread. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection (if he uses it) in the end of the code which executes in the thread. - ConnectionAsgmtType.UseMain Email client uses main connection for all operations from multiple threads. Main connection is connection which is created in the same time like email client. User cann't create default connections. User can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. - ConnectionAsgmtType.UseDefault Email client uses implicitly only default connections for all operations from multiple threads. Main connection is not used in this mode. If default connection hasn't been created for some thread (first invocation of email client method), email client creates default connection implicitly for thread before first operation is executed. User can't create default connections for threads with CreateConnection method because they are created automatically. When default connection for thread is created, it's used implicitly for all methods of email client which are invoked in this thread.read. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection in the end of the code which executes in the thread.

**Returns:**
int
### getConnectionCheckupPeriod() {#getConnectionCheckupPeriod--}
```
public int getConnectionCheckupPeriod()
```


Period of connection checking up in milliseconds. Default value is 5 min.

**Returns:**
int
### getConnectionState() {#getConnectionState--}
```
public final int getConnectionState()
```


Gets the current state of the connection.

**Returns:**
int
### getConnectionsQuantity() {#getConnectionsQuantity--}
```
public int getConnectionsQuantity()
```


Gets or sets quantity of connections in multy-connection mode

**Returns:**
int
### getCredentialsEncoding() {#getCredentialsEncoding--}
```
public final String getCredentialsEncoding()
```


Gets or sets Credentials Encoding

**Returns:**
java.lang.String
### getCurrentConnection() {#getCurrentConnection--}
```
public IConnection getCurrentConnection()
```


Gets current connection according to ConnectionAsgmtMode option

**Returns:**
[IConnection](../../com.aspose.email/iconnection)
### getCurrentFolder() {#getCurrentFolder--}
```
public final ImapFolderInfo getCurrentFolder()
```


Gets the current folder

Value: ImapFolderInfo that represents current folder

**Returns:**
[ImapFolderInfo](../../com.aspose.email/imapfolderinfo)
### getDefaultFolder() {#getDefaultFolder--}
```
public static String getDefaultFolder()
```


Default folder for ImapClients

**Returns:**
java.lang.String
### getDefaultPort() {#getDefaultPort--}
```
public int getDefaultPort()
```


Gets default port for client

**Returns:**
int
### getDelimiter() {#getDelimiter--}
```
public final String getDelimiter()
```


Gets or sets delimiter of folders hierarhy.

**Returns:**
java.lang.String
### getESearchSupported() {#getESearchSupported--}
```
public final boolean getESearchSupported()
```


Gets information whether ESEARCH extension is supported See more: https://tools.ietf.org/html/rfc4731

**Returns:**
boolean
### getEnableLogger() {#getEnableLogger--}
```
public final boolean getEnableLogger()
```


Gets or sets value which allows enable/disable logger

**Returns:**
boolean
### getEnableSupported() {#getEnableSupported--}
```
public final boolean getEnableSupported()
```


Gets information whether ENABLE extension is supported See more: https://tools.ietf.org/html/rfc5161

**Returns:**
boolean
### getExchangeIdAutomatically() {#getExchangeIdAutomatically--}
```
public final boolean getExchangeIdAutomatically()
```


Gets or sets value which indicates whether client should to introduce information about itself to a server automatically. See more: https://tools.ietf.org/html/rfc2971

**Returns:**
boolean
### getExtendedListSupported() {#getExtendedListSupported--}
```
public final boolean getExtendedListSupported()
```


Gets information whether LIST Command Extension is supported See more https://tools.ietf.org/html/rfc5258

**Returns:**
boolean
### getFolderInfo(IConnection connection, String folderName) {#getFolderInfo-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapFolderInfo getFolderInfo(IConnection connection, String folderName)
```


Returns information about the specified folder without selecting it

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve information about |

**Returns:**
[ImapFolderInfo](../../com.aspose.email/imapfolderinfo) - The specified folder information
### getFolderInfo(String folderName) {#getFolderInfo-java.lang.String-}
```
public final ImapFolderInfo getFolderInfo(String folderName)
```


Returns information about the specified folder without selecting it

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve information about |

**Returns:**
[ImapFolderInfo](../../com.aspose.email/imapfolderinfo) - The specified folder information
### getGmExt1Supported() {#getGmExt1Supported--}
```
public final boolean getGmExt1Supported()
```


Defines if Google X-GM-EXT-1 extension is supported

**Returns:**
boolean
### getGreetingTimeout() {#getGreetingTimeout--}
```
public final int getGreetingTimeout()
```


Gets or sets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can't be infinite. Email clients may execute enough long operations. To limit the time of operations users have to use  EmailClient.Timeout (\#getTimeout.getTimeout/\#setTimeout(int).setTimeout(int)) property. Values for this property have to have long intervals to not prevent long-time operations. But in some cases, if EmailClient will use only Timeout property connection establishing may take a long time. For instance, the mail client may use the automatic mode to connection establishing. In this mode, the email client goes through all possible connection parameters until the connection is established. SMTP, IMAP, and POP3 servers in case of correct connection establishing send greeting string to the client. Servers may use implicit or explicit (START TLS) SSL/TLS connection initiation. If connection mode is mismatched (for instance, the server waits for an implicit SSL connection but the client tries to establish a non-secured or explicit SSL connection), the server won't send a greeting string. In this case, the user will wait a long time until the timeout reaches a greeting string, and the client goes to the next connection option. To avoid this problem, the GreetingTimeout property has been introduced. This property allows you to set the timeout for greeting string, and reduce the time of automatic connection establishment.

Value: The greeting timeout in milliseconds

**Returns:**
int
### getHost() {#getHost--}
```
public String getHost()
```


Gets or sets the host name.

Value: The host name.

**Returns:**
java.lang.String
### getIdSupported() {#getIdSupported--}
```
public final boolean getIdSupported()
```


Gets information whether ID extension is supported See more: https://tools.ietf.org/html/rfc2971

**Returns:**
boolean
### getLogFileName() {#getLogFileName--}
```
public final String getLogFileName()
```


Gets or sets log file name

**Returns:**
java.lang.String
### getMailboxInfo() {#getMailboxInfo--}
```
public final ImapMailboxInfo getMailboxInfo()
```


Gets set of special-use mailboxes See more: http://tools.ietf.org/html/rfc6154 and https://tools.ietf.org/html/rfc8457

**Returns:**
[ImapMailboxInfo](../../com.aspose.email/imapmailboxinfo)
### getMessageThreads(BaseSearchConditions conditions) {#getMessageThreads-com.aspose.email.BaseSearchConditions-}
```
public final List<MessageThreadResult> getMessageThreads(BaseSearchConditions conditions)
```


Get message threads.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| conditions | [BaseSearchConditions](../../com.aspose.email/basesearchconditions) | Thread conditions. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult> - Message threads
### getMessageThreads(IConnection connection, BaseSearchConditions conditions) {#getMessageThreads-com.aspose.email.IConnection-com.aspose.email.BaseSearchConditions-}
```
public final List<MessageThreadResult> getMessageThreads(IConnection connection, BaseSearchConditions conditions)
```


Get message threads.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| conditions | [BaseSearchConditions](../../com.aspose.email/basesearchconditions) | Thread conditions. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult> - Message threads
### getMoveSupported() {#getMoveSupported--}
```
public final boolean getMoveSupported()
```


Gets information whether MOVE extension is supported See more: https://tools.ietf.org/html/rfc6851

**Returns:**
boolean
### getNamespaceSupported() {#getNamespaceSupported--}
```
public final boolean getNamespaceSupported()
```


Gets information whether NAMESPACE extension is supported See more: https://tools.ietf.org/html/rfc2342

**Returns:**
boolean
### getNamespaces() {#getNamespaces--}
```
public final ImapNamespace[] getNamespaces()
```


Gets namespaces that are available on a server.

**Returns:**
com.aspose.email.ImapNamespace[] - Returns namespaces that are available on a server.
### getNamespaces(IConnection connection) {#getNamespaces-com.aspose.email.IConnection-}
```
public final ImapNamespace[] getNamespaces(IConnection connection)
```


Gets namespaces that are available on a server.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
com.aspose.email.ImapNamespace[] - Returns namespaces that are available on a server.
### getPassword() {#getPassword--}
```
public String getPassword()
```


Gets or sets the password. Password limitations are defined by server implementation, which client connects.

Value: The string that represents the password.

**Returns:**
java.lang.String
### getPort() {#getPort--}
```
public int getPort()
```


Gets or sets the port.

Value: The port number.

**Returns:**
int
### getProxy() {#getProxy--}
```
public Proxy getProxy()
```


Gets or sets proxy for the client

**Returns:**
[Proxy](../../com.aspose.email/proxy)
### getQresyncSupported() {#getQresyncSupported--}
```
public final boolean getQresyncSupported()
```


Gets information whether QRESYNC extension is supported See more: https://tools.ietf.org/html/rfc7162

**Returns:**
boolean
### getQuota(IConnection connection, String quotaRootName) {#getQuota-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapQuota[] getQuota(IConnection connection, String quotaRootName)
```


Gets quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### getQuota(String quotaRootName) {#getQuota-java.lang.String-}
```
public final ImapQuota[] getQuota(String quotaRootName)
```


Gets quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### getQuotaRoot(IConnection connection, String mailboxName) {#getQuotaRoot-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapQuotaRoot[] getQuotaRoot(IConnection connection, String mailboxName)
```


Gets quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| mailboxName | java.lang.String | mailbox name |

**Returns:**
com.aspose.email.ImapQuotaRoot[] - Quota root information for mailbox
### getQuotaRoot(String mailboxName) {#getQuotaRoot-java.lang.String-}
```
public final ImapQuotaRoot[] getQuotaRoot(String mailboxName)
```


Gets quota root information for mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailboxName | java.lang.String | mailbox name |

**Returns:**
com.aspose.email.ImapQuotaRoot[] - Quota root information for mailbox
### getQuotaSupported() {#getQuotaSupported--}
```
public final boolean getQuotaSupported()
```


Gets information whether quota is supported

**Returns:**
boolean
### getReadOnly() {#getReadOnly--}
```
public final boolean getReadOnly()
```


Gets or sets value which indicates if changes to the permanent state of the mailbox, including per-user state, are permitted.

**Returns:**
boolean
### getSaslIrSupported() {#getSaslIrSupported--}
```
public final boolean getSaslIrSupported()
```


Gets information whether SASL Initial Client Response extension is supported See more: https://tools.ietf.org/html/rfc4959

**Returns:**
boolean
### getSecurityOptions() {#getSecurityOptions--}
```
public int getSecurityOptions()
```


Security mode for a mail client

**Returns:**
int
### getServerIdentificationInfo() {#getServerIdentificationInfo--}
```
public final ImapIdentificationInfo getServerIdentificationInfo()
```


Gets server identification information See more: https://tools.ietf.org/html/rfc2971

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo)
### getServerSupportedCompression() {#getServerSupportedCompression--}
```
public final int getServerSupportedCompression()
```


Gets information which compression types are supported by a server. See more: https://tools.ietf.org/html/rfc4978

**Returns:**
int
### getSortSupported() {#getSortSupported--}
```
public final boolean getSortSupported()
```


Gets information whether Sort command are supported

**Returns:**
boolean
### getSpecialUseSupported() {#getSpecialUseSupported--}
```
public final boolean getSpecialUseSupported()
```


Gets information whether Special-Use Mailboxes is supported See more: https://tools.ietf.org/html/rfc6154

**Returns:**
boolean
### getSupportOldServer() {#getSupportOldServer--}
```
public final boolean getSupportOldServer()
```


Indicates whether the old servers need to be supported when receiving messages.

**Returns:**
boolean
### getSupportedAuthentication() {#getSupportedAuthentication--}
```
public final long getSupportedAuthentication()
```


Gets enumeration of supported by server authentication types

**Returns:**
long
### getSupportedEncryption() {#getSupportedEncryption--}
```
public int getSupportedEncryption()
```


Defines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON'T BE GENERATED!!! Please, see [EncryptionProtocols](../../com.aspose.email/encryptionprotocols) documentation for more details. Please use \#setSupportedEncryptionUnsafe(int).setSupportedEncryptionUnsafe(int) method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS)

**Returns:**
int
### getThreadAlgorithms() {#getThreadAlgorithms--}
```
public final String[] getThreadAlgorithms()
```


Gets supported thread algorithms

**Returns:**
java.lang.String[]
### getThreadSupported() {#getThreadSupported--}
```
public final boolean getThreadSupported()
```


Gets information whether Thread command are supported

**Returns:**
boolean
### getTimeout() {#getTimeout--}
```
public final int getTimeout()
```


Gets or sets the timeout for mail operations

Value: The timeout in milliseconds

**Returns:**
int
### getTokenProvider() {#getTokenProvider--}
```
public final ITokenProvider getTokenProvider()
```


Gets or sets TokenProvider allowing to retrieve access token.

**Returns:**
[ITokenProvider](../../com.aspose.email/itokenprovider)
### getUidPlusSupported() {#getUidPlusSupported--}
```
public final boolean getUidPlusSupported()
```


Gets information whether UIDPLUS extension is supported See more: https://tools.ietf.org/html/rfc4315

**Returns:**
boolean
### getUnselectSupported() {#getUnselectSupported--}
```
public final boolean getUnselectSupported()
```


Gets information whether UNSELECT extension is supported See more: https://tools.ietf.org/html/rfc2342

**Returns:**
boolean
### getUseAuthentication() {#getUseAuthentication--}
```
public boolean getUseAuthentication()
```


Indicates whether authentication is used.

**Returns:**
boolean
### getUseDateInLogFileName() {#getUseDateInLogFileName--}
```
public final boolean getUseDateInLogFileName()
```


Gets or sets value which indicates if date has to be used in log file name.

**Returns:**
boolean
### getUseDefaultCredentials() {#getUseDefaultCredentials--}
```
public boolean getUseDefaultCredentials()
```


Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!

**Returns:**
boolean
### getUseMultiConnection() {#getUseMultiConnection--}
```
public int getUseMultiConnection()
```


Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.

**Returns:**
int
### getUsePipelining() {#getUsePipelining--}
```
public PipeliningStatus getUsePipelining()
```


Gets or sets object which indicates whether the pipelining mode is enabled.

**Returns:**
[PipeliningStatus](../../com.aspose.email/pipeliningstatus)
### getUsername() {#getUsername--}
```
public String getUsername()
```


Gets or sets the username.

Value: The username string.

**Returns:**
java.lang.String
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### introduceClient() {#introduceClient--}
```
public final ImapIdentificationInfo introduceClient()
```


Introduces client information to a server.

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) - Returns server identification information
### introduceClient(IConnection connection) {#introduceClient-com.aspose.email.IConnection-}
```
public final ImapIdentificationInfo introduceClient(IConnection connection)
```


Introduces client information to a server.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) - Returns server identification information
### introduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo) {#introduceClient-com.aspose.email.IConnection-com.aspose.email.ImapIdentificationInfo-}
```
public final ImapIdentificationInfo introduceClient(IConnection connection, ImapIdentificationInfo clientIdentificationInfo)
```


Introduces client information to a server.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) - Returns server identification information
### introduceClient(ImapIdentificationInfo clientIdentificationInfo) {#introduceClient-com.aspose.email.ImapIdentificationInfo-}
```
public final ImapIdentificationInfo introduceClient(ImapIdentificationInfo clientIdentificationInfo)
```


Introduces client information to a server.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| clientIdentificationInfo | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) | Client identification information |

**Returns:**
[ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) - Returns server identification information
### listAttachments(int sequenceNumber) {#listAttachments-int-}
```
public final ImapAttachmentInfoCollection listAttachments(int sequenceNumber)
```


Gets the message attachments list. Gets an information for each attachment in message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The message sequence number. |

**Returns:**
[ImapAttachmentInfoCollection](../../com.aspose.email/imapattachmentinfocollection) - [ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) that represents collection of [ImapAttachmentInfo](../../com.aspose.email/imapattachmentinfo)
### listFolders() {#listFolders--}
```
public final ImapFolderInfoCollection listFolders()
```


Gets the list of folders in the mailbox

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(boolean loadFullInfo) {#listFolders-boolean-}
```
public final ImapFolderInfoCollection listFolders(boolean loadFullInfo)
```


Gets the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(IConnection connection) {#listFolders-com.aspose.email.IConnection-}
```
public final ImapFolderInfoCollection listFolders(IConnection connection)
```


Gets the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(IConnection connection, boolean loadFullInfo) {#listFolders-com.aspose.email.IConnection-boolean-}
```
public final ImapFolderInfoCollection listFolders(IConnection connection, boolean loadFullInfo)
```


Gets the list of folders in the mailbox

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(IConnection connection, String parentFolder) {#listFolders-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapFolderInfoCollection listFolders(IConnection connection, String parentFolder)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(IConnection connection, String parentFolder, boolean loadFullInfo) {#listFolders-com.aspose.email.IConnection-java.lang.String-boolean-}
```
public final ImapFolderInfoCollection listFolders(IConnection connection, String parentFolder, boolean loadFullInfo)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions) {#listFolders-com.aspose.email.IConnection-java.lang.String-boolean-int-int-}
```
public final ImapFolderInfoCollection listFolders(IConnection connection, String parentFolder, boolean loadFullInfo, int options, int returnOptions)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(String parentFolder) {#listFolders-java.lang.String-}
```
public final ImapFolderInfoCollection listFolders(String parentFolder)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(String parentFolder, boolean loadFullInfo) {#listFolders-java.lang.String-boolean-}
```
public final ImapFolderInfoCollection listFolders(String parentFolder, boolean loadFullInfo)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions) {#listFolders-java.lang.String-boolean-int-int-}
```
public final ImapFolderInfoCollection listFolders(String parentFolder, boolean loadFullInfo, int options, int returnOptions)
```


Gets the list of subfolders in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| parentFolder | java.lang.String | Name of the folder |
| loadFullInfo | boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
| options | int | Options for operation |
| returnOptions | int | Return options for operation |

**Returns:**
[ImapFolderInfoCollection](../../com.aspose.email/imapfolderinfocollection) - Collection of ImapFolderInfo objects
### listMessage(IConnection connection, int sequenceNumber) {#listMessage-com.aspose.email.IConnection-int-}
```
public final ImapMessageInfo listMessage(IConnection connection, int sequenceNumber)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields) {#listMessage-com.aspose.email.IConnection-int-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfo listMessage(IConnection connection, int sequenceNumber, Iterable<String> messageExtraFields)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(IConnection connection, String uniqueId) {#listMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapMessageInfo listMessage(IConnection connection, String uniqueId)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields) {#listMessage-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfo listMessage(IConnection connection, String uniqueId, Iterable<String> messageExtraFields)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(int sequenceNumber) {#listMessage-int-}
```
public final ImapMessageInfo listMessage(int sequenceNumber)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(int sequenceNumber, Iterable<String> messageExtraFields) {#listMessage-int-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfo listMessage(int sequenceNumber, Iterable<String> messageExtraFields)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(String uniqueId) {#listMessage-java.lang.String-}
```
public final ImapMessageInfo listMessage(String uniqueId)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessage(String uniqueId, Iterable<String> messageExtraFields) {#listMessage-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfo listMessage(String uniqueId, Iterable<String> messageExtraFields)
```


Gets information about a message.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfo](../../com.aspose.email/imapmessageinfo) - Returns ImapMessageInfo objects
### listMessages() {#listMessages--}
```
public final ImapMessageInfoCollection listMessages()
```


Gets the list of messages in the current folder

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(boolean retrieveRecursively) {#listMessages-boolean-}
```
public final ImapMessageInfoCollection listMessages(boolean retrieveRecursively)
```


Gets the list of messages in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection) {#listMessages-com.aspose.email.IConnection-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection)
```


Gets the list of messages in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection, boolean retrieveRecursively) {#listMessages-com.aspose.email.IConnection-boolean-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, boolean retrieveRecursively)
```


Gets the list of messages in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection, MailQuery query) {#listMessages-com.aspose.email.IConnection-com.aspose.email.MailQuery-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, MailQuery query)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(IConnection connection, MailQuery query, int maxNumberOfMessages) {#listMessages-com.aspose.email.IConnection-com.aspose.email.MailQuery-int-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, MailQuery query, int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(IConnection connection, int maxNumberOfMessages) {#listMessages-com.aspose.email.IConnection-int-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) representing the messages information.
### listMessages(IConnection connection, String folderName) {#listMessages-com.aspose.email.IConnection-java.lang.String-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, String folderName)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection, String folderName, boolean retrieveRecursively) {#listMessages-com.aspose.email.IConnection-java.lang.String-boolean-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, String folderName, boolean retrieveRecursively)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages) {#listMessages-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, String folderName, MailQuery query, int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(IConnection connection, String folderName, int fieldsList, int maxNumberOfMessages) {#listMessages-com.aspose.email.IConnection-java.lang.String-int-int-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, String folderName, int fieldsList, int maxNumberOfMessages)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| fieldsList | int | Fields that may be retrieved from the server. |
| maxNumberOfMessages | int | Maximum number of messages.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### listMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields) {#listMessages-com.aspose.email.IConnection-java.lang.String-long-boolean-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, String folderName, long modificationSequence, boolean retrieveRecursively, Iterable<String> messageExtraFields)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| modificationSequence | long | Modification sequence |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(IConnection connection, long modificationSequence) {#listMessages-com.aspose.email.IConnection-long-}
```
public final ImapMessageInfoCollection listMessages(IConnection connection, long modificationSequence)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| modificationSequence | long | Modification sequence |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) representing the messages information.
### listMessages(MailQuery query) {#listMessages-com.aspose.email.MailQuery-}
```
public final ImapMessageInfoCollection listMessages(MailQuery query)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(MailQuery query, int maxNumberOfMessages) {#listMessages-com.aspose.email.MailQuery-int-}
```
public final ImapMessageInfoCollection listMessages(MailQuery query, int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(int maxNumberOfMessages) {#listMessages-int-}
```
public final ImapMessageInfoCollection listMessages(int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) representing the messages information.
### listMessages(Iterable<String> messageExtraFields) {#listMessages-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfoCollection listMessages(Iterable<String> messageExtraFields)
```


Gets the list of messages in the current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(String folderName) {#listMessages-java.lang.String-}
```
public final ImapMessageInfoCollection listMessages(String folderName)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(String folderName, boolean retrieveRecursively) {#listMessages-java.lang.String-boolean-}
```
public final ImapMessageInfoCollection listMessages(String folderName, boolean retrieveRecursively)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(String folderName, boolean retrieveRecursively, Iterable<String> messageExtraFields) {#listMessages-java.lang.String-boolean-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfoCollection listMessages(String folderName, boolean retrieveRecursively, Iterable<String> messageExtraFields)
```


Gets the list of messages in the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| retrieveRecursively | boolean | Indicates, if messages have to be retrieved recursively. |
| messageExtraFields | java.lang.Iterable<java.lang.String> | List of extra parameters for a message wich will be requested. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects
### listMessages(String folderName, MailQuery query, int maxNumberOfMessages) {#listMessages-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final ImapMessageInfoCollection listMessages(String folderName, MailQuery query, int maxNumberOfMessages)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| maxNumberOfMessages | int | Maximum number of messages. |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of ImapMessageInfo objects.
### listMessages(String folderName, int fieldsList, int maxNumberOfMessages) {#listMessages-java.lang.String-int-int-}
```
public final ImapMessageInfoCollection listMessages(String folderName, int fieldsList, int maxNumberOfMessages)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| fieldsList | int | Fields that may be retrieved from the server. |
| maxNumberOfMessages | int | Maximum number of messages.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### listMessages(long modificationSequence) {#listMessages-long-}
```
public final ImapMessageInfoCollection listMessages(long modificationSequence)
```


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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| modificationSequence | long | Modification sequence |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - Collection of [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) representing the messages information.
### listMessagesByPage(IConnection connection, PageInfo page) {#listMessagesByPage-com.aspose.email.IConnection-com.aspose.email.PageInfo-}
```
public final ImapPageInfo listMessagesByPage(IConnection connection, PageInfo page)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesByPage(IConnection connection, int itemsPerPage) {#listMessagesByPage-com.aspose.email.IConnection-int-}
```
public final ImapPageInfo listMessagesByPage(IConnection connection, int itemsPerPage)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - Collection of ImapMessageInfo objects.
### listMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset) {#listMessagesByPage-com.aspose.email.IConnection-int-int-}
```
public final ImapPageInfo listMessagesByPage(IConnection connection, int itemsPerPage, int pageOffset)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - Collection of ImapMessageInfo objects.
### listMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo) {#listMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-}
```
public final ImapPageInfo listMessagesByPage(IConnection connection, String folderName, MailQuery query, PageInfo pageInfo)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage) {#listMessagesByPage-com.aspose.email.IConnection-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final ImapPageInfo listMessagesByPage(IConnection connection, String folderName, MailQuery query, int itemsPerPage)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettings settings) {#listMessagesByPage-com.aspose.email.MailQuery-com.aspose.email.PageInfo-com.aspose.email.PageSettings-}
```
public final ImapPageInfo listMessagesByPage(MailQuery query, PageInfo pageInfo, PageSettings settings)
```


Gets the list of messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | The next page to retrieve. |
| settings | [PageSettings](../../com.aspose.email/pagesettings) | The settings. |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - IAsyncResult that represents the status of an asynchronous operation.
### listMessagesByPage(PageInfo page) {#listMessagesByPage-com.aspose.email.PageInfo-}
```
public final ImapPageInfo listMessagesByPage(PageInfo page)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| page | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesByPage(PageInfo pageInfo, PageSettings settings) {#listMessagesByPage-com.aspose.email.PageInfo-com.aspose.email.PageSettings-}
```
public final ImapPageInfo listMessagesByPage(PageInfo pageInfo, PageSettings settings)
```


Gets the list of messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | The next page to retrieve. |
| settings | [PageSettings](../../com.aspose.email/pagesettings) | The settings. |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - IAsyncResult that represents the status of an asynchronous operation.
### listMessagesByPage(int itemsPerPage) {#listMessagesByPage-int-}
```
public final ImapPageInfo listMessagesByPage(int itemsPerPage)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - Collection of ImapMessageInfo objects.
### listMessagesByPage(int itemsPerPage, PageSettings settings) {#listMessagesByPage-int-com.aspose.email.PageSettings-}
```
public final ImapPageInfo listMessagesByPage(int itemsPerPage, PageSettings settings)
```


Gets the list of messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| settings | [PageSettings](../../com.aspose.email/pagesettings) | The settings. |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - IAsyncResult that represents the status of an asynchronous operation.
### listMessagesByPage(int itemsPerPage, int pageOffset) {#listMessagesByPage-int-int-}
```
public final ImapPageInfo listMessagesByPage(int itemsPerPage, int pageOffset)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - Collection of ImapMessageInfo objects.
### listMessagesByPage(int itemsPerPage, int pageOffset, PageSettings settings) {#listMessagesByPage-int-int-com.aspose.email.PageSettings-}
```
public final ImapPageInfo listMessagesByPage(int itemsPerPage, int pageOffset, PageSettings settings)
```


Gets the list of messages

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| itemsPerPage | int | A number of items in page |
| pageOffset | int | An offset of next page in view |
| settings | [PageSettings](../../com.aspose.email/pagesettings) | The settings. |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - IAsyncResult that represents the status of an asynchronous operation.
### listMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo) {#listMessagesByPage-java.lang.String-com.aspose.email.MailQuery-com.aspose.email.PageInfo-}
```
public final ImapPageInfo listMessagesByPage(String folderName, MailQuery query, PageInfo pageInfo)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| pageInfo | [PageInfo](../../com.aspose.email/pageinfo) | Next page to retrieve |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesByPage(String folderName, MailQuery query, int itemsPerPage) {#listMessagesByPage-java.lang.String-com.aspose.email.MailQuery-int-}
```
public final ImapPageInfo listMessagesByPage(String folderName, MailQuery query, int itemsPerPage)
```


Gets the list of messages in the current folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Messages location |
| query | [MailQuery](../../com.aspose.email/mailquery) | [MailQuery](../../com.aspose.email/mailquery) that represents search query. |
| itemsPerPage | int | A number of items in page |

**Returns:**
[ImapPageInfo](../../com.aspose.email/imappageinfo) - ImapPageInfo with information for current page
### listMessagesBySequences(IConnection connection, String folderName, Iterable<Integer> sequenceNumberLst) {#listMessagesBySequences-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.Integer--}
```
public final ImapMessageInfoCollection listMessagesBySequences(IConnection connection, String folderName, Iterable<Integer> sequenceNumberLst)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| sequenceNumberLst | java.lang.Iterable<java.lang.Integer> | sequenceNumber list for [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) to retrieve from a server.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### listMessagesBySequences(String folderName, Iterable<Integer> sequenceNumberLst) {#listMessagesBySequences-java.lang.String-java.lang.Iterable-java.lang.Integer--}
```
public final ImapMessageInfoCollection listMessagesBySequences(String folderName, Iterable<Integer> sequenceNumberLst)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| sequenceNumberLst | java.lang.Iterable<java.lang.Integer> | sequenceNumber list for [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) to retrieve from a server.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### listMessagesByUids(IConnection connection, String folderName, Iterable<String> uniqueIdLst) {#listMessagesByUids-com.aspose.email.IConnection-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfoCollection listMessagesByUids(IConnection connection, String folderName, Iterable<String> uniqueIdLst)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to retrieve messages. |
| uniqueIdLst | java.lang.Iterable<java.lang.String> | UniqueId list for [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) to retrieve from a server.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### listMessagesByUids(String folderName, Iterable<String> uniqueIdLst) {#listMessagesByUids-java.lang.String-java.lang.Iterable-java.lang.String--}
```
public final ImapMessageInfoCollection listMessagesByUids(String folderName, Iterable<String> uniqueIdLst)
```


Lists the messages. Gets an information for earch message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to retrieve messages. |
| uniqueIdLst | java.lang.Iterable<java.lang.String> | UniqueId list for [ImapMessageInfo](../../com.aspose.email/imapmessageinfo) to retrieve from a server.

--------------------

Note that messages marked as deleted are not listed |

**Returns:**
[ImapMessageInfoCollection](../../com.aspose.email/imapmessageinfocollection) - ImapMessageInfoCollection
### moveFolder(IConnection connection, String newParentFolder, String folderName) {#moveFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final void moveFolder(IConnection connection, String newParentFolder, String folderName)
```


Moves specified folder and its subfolders to new location.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |

### moveFolder(String newParentFolder, String folderName) {#moveFolder-java.lang.String-java.lang.String-}
```
public final void moveFolder(String newParentFolder, String folderName)
```


Moves specified folder and its subfolders to new location.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| newParentFolder | java.lang.String | New location for moved folder |
| folderName | java.lang.String | Folder to move |

### moveMessage(IConnection connection, int sequenceNumber, String folderName) {#moveMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final String moveMessage(IConnection connection, int sequenceNumber, String folderName)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
java.lang.String
### moveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions) {#moveMessage-com.aspose.email.IConnection-int-java.lang.String-boolean-}
```
public final String moveMessage(IConnection connection, int sequenceNumber, String folderName, boolean commitDeletions)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
java.lang.String
### moveMessage(IConnection connection, String uniqueId, String folderName) {#moveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final String moveMessage(IConnection connection, String uniqueId, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
java.lang.String
### moveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions) {#moveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-boolean-}
```
public final String moveMessage(IConnection connection, String uniqueId, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
java.lang.String
### moveMessage(int sequenceNumber, String folderName) {#moveMessage-int-java.lang.String-}
```
public final String moveMessage(int sequenceNumber, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
java.lang.String
### moveMessage(int sequenceNumber, String folderName, boolean commitDeletions) {#moveMessage-int-java.lang.String-boolean-}
```
public final String moveMessage(int sequenceNumber, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
java.lang.String
### moveMessage(String uniqueId, String folderName) {#moveMessage-java.lang.String-java.lang.String-}
```
public final String moveMessage(String uniqueId, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |

**Returns:**
java.lang.String
### moveMessage(String uniqueId, String folderName, boolean commitDeletions) {#moveMessage-java.lang.String-java.lang.String-boolean-}
```
public final String moveMessage(String uniqueId, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The uid of the message |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

**Returns:**
java.lang.String
### moveMessages(IConnection connection, int startSequence, int endSequence, String folderName) {#moveMessages-com.aspose.email.IConnection-int-int-java.lang.String-}
```
public final void moveMessages(IConnection connection, int startSequence, int endSequence, String folderName)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions) {#moveMessages-com.aspose.email.IConnection-int-int-java.lang.String-boolean-}
```
public final void moveMessages(IConnection connection, int startSequence, int endSequence, String folderName, boolean commitDeletions)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#moveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final void moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions) {#moveMessages-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-}
```
public final void moveMessages(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessages(IConnection connection, String startUid, String endUid, String folderName) {#moveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-}
```
public final void moveMessages(IConnection connection, String startUid, String endUid, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions) {#moveMessages-com.aspose.email.IConnection-java.lang.String-java.lang.String-java.lang.String-boolean-}
```
public final void moveMessages(IConnection connection, String startUid, String endUid, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessages(int startSequence, int endSequence, String folderName) {#moveMessages-int-int-java.lang.String-}
```
public final void moveMessages(int startSequence, int endSequence, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions) {#moveMessages-int-int-java.lang.String-boolean-}
```
public final void moveMessages(int startSequence, int endSequence, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName) {#moveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-}
```
public final void moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions) {#moveMessages-java.lang.Iterable-com.aspose.email.ImapMessageInfo--java.lang.String-boolean-}
```
public final void moveMessages(Iterable<ImapMessageInfo> messageInfoSet, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessages(String startUid, String endUid, String folderName) {#moveMessages-java.lang.String-java.lang.String-java.lang.String-}
```
public final void moveMessages(String startUid, String endUid, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessages(String startUid, String endUid, String folderName, boolean commitDeletions) {#moveMessages-java.lang.String-java.lang.String-java.lang.String-boolean-}
```
public final void moveMessages(String startUid, String endUid, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName) {#moveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final void moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions) {#moveMessagesBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-}
```
public final void moveMessagesBySequences(IConnection connection, Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)
```


Moves the messaeg

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName) {#moveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-}
```
public final void moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions) {#moveMessagesBySequences-java.lang.Iterable-java.lang.Integer--java.lang.String-boolean-}
```
public final void moveMessagesBySequences(Iterable<Integer> sequenceSet, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName) {#moveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final void moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions) {#moveMessagesByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--java.lang.String-boolean-}
```
public final void moveMessagesByUids(IConnection connection, Iterable<String> uidSet, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### moveMessagesByUids(Iterable<String> uidSet, String folderName) {#moveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-}
```
public final void moveMessagesByUids(Iterable<String> uidSet, String folderName)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |

### moveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions) {#moveMessagesByUids-java.lang.Iterable-java.lang.String--java.lang.String-boolean-}
```
public final void moveMessagesByUids(Iterable<String> uidSet, String folderName, boolean commitDeletions)
```


Moves the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| folderName | java.lang.String | Folder name where a message is to be moved |
| commitDeletions | boolean | Specifies whether deletions should be committed. |

### noop() {#noop--}
```
public void noop()
```


'No operation' command

### noop(IConnection connection) {#noop-com.aspose.email.IConnection-}
```
public void noop(IConnection connection)
```


'No operation' command

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags) {#removeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-com.aspose.email.IConnection-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(IConnection connection, int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags) {#removeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-com.aspose.email.IConnection-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(IConnection connection, int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(IConnection connection, Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(IConnection connection, String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-com.aspose.email.IConnection-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(IConnection connection, String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(int sequenceNumber, ImapMessageFlags flags) {#removeMessageFlags-int-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(int sequenceNumber, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### removeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(int sequenceNumber, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags) {#removeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-int-int-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(int startSequence, int endSequence, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startSequence | int | The starting sequence number of a message list |
| endSequence | int | The ending sequence number of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags) {#removeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-java.lang.Iterable-com.aspose.email.ImapMessageInfo--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(Iterable<ImapMessageInfo> messageInfoSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| messageInfoSet | java.lang.Iterable<com.aspose.email.ImapMessageInfo> | The set of ImapMessageInfo |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(String uniqueId, ImapMessageFlags flags) {#removeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(String uniqueId, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |

### removeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(String uniqueId, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | Unique identifier of a message |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be added |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags) {#removeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlags-java.lang.String-java.lang.String-com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlags(String startUid, String endUid, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| startUid | java.lang.String | The starting UID of a message list |
| endUid | java.lang.String | The ending UID of a message list |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#removeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlagsBySequences-com.aspose.email.IConnection-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlagsBySequences(IConnection connection, Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags) {#removeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |

### removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlagsBySequences-java.lang.Iterable-java.lang.Integer--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlagsBySequences(Iterable<Integer> sequenceSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceSet | java.lang.Iterable<java.lang.Integer> | The set of sequence numbers for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be removed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags) {#removeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlagsByUids-com.aspose.email.IConnection-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlagsByUids(IConnection connection, Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uidSet | java.lang.Iterable<java.lang.String> | The set of set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags) {#removeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-}
```
public final void removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |

### removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence) {#removeMessageFlagsByUids-java.lang.Iterable-java.lang.String--com.aspose.email.ImapMessageFlags-long-}
```
public final void removeMessageFlagsByUids(Iterable<String> uidSet, ImapMessageFlags flags, long modificationSequence)
```


Removes the flags of the message

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uidSet | java.lang.Iterable<java.lang.String> | The set of UID for messages |
| flags | [ImapMessageFlags](../../com.aspose.email/imapmessageflags) | The flags to be changed |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### renameFolder(IConnection connection, String folderName, String newFolderName) {#renameFolder-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final void renameFolder(IConnection connection, String folderName, String newFolderName)
```


Renames a specified folder to a new name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |

### renameFolder(String folderName, String newFolderName) {#renameFolder-java.lang.String-java.lang.String-}
```
public final void renameFolder(String folderName, String newFolderName)
```


Renames a specified folder to a new name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be renamed |
| newFolderName | java.lang.String | New folder name |

### requestCheckpoint() {#requestCheckpoint--}
```
public final void requestCheckpoint()
```


Requests a checkpoint of the currently selected mailbox.

### requestCheckpoint(IConnection connection) {#requestCheckpoint-com.aspose.email.IConnection-}
```
public final void requestCheckpoint(IConnection connection)
```


Requests a checkpoint of the currently selected mailbox.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

### resetLogSettings() {#resetLogSettings--}
```
public final void resetLogSettings()
```


Resets logging settings to default.

### restore(PersonalStorage pst, ImapRestoreSettings settings) {#restore-com.aspose.email.PersonalStorage-com.aspose.email.ImapRestoreSettings-}
```
public final void restore(PersonalStorage pst, ImapRestoreSettings settings)
```


Begins to restore imap folders from the given personal storage.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| pst | [PersonalStorage](../../com.aspose.email/personalstorage) | A personal storage containing the backuped imap folders. |
| settings | [ImapRestoreSettings](../../com.aspose.email/imaprestoresettings) | The restore settings |

### resumeMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, IImapMonitoringState monitoringState) {#resumeMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-com.aspose.email.IImapMonitoringState-}
```
public final void resumeMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, IImapMonitoringState monitoringState)
```


Resumes monitoring of message changes for specified folder. Unlike the StartMonitoring method, it will find all missing mailbox changes and call the callback for them.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | [ImapMonitoringEventHandler](../../com.aspose.email/imapmonitoringeventhandler) | The callback function for monitoring operation. |
| errorCallback | [ImapMonitoringErrorEventHandler](../../com.aspose.email/imapmonitoringerroreventhandler) | The callback function for monitoring error handling. Monitoring of specified folder is stopped when this callback is called. |
| monitoringState | [IImapMonitoringState](../../com.aspose.email/iimapmonitoringstate) | The monitoring state to resume folder monitoring from. Can be retrieved from [ImapMonitoringErrorEventArgs](../../com.aspose.email/imapmonitoringerroreventargs). |

### saveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream) {#saveMessage-com.aspose.email.IConnection-int-java.io.OutputStream-}
```
public final void saveMessage(IConnection connection, int sequenceNumber, OutputStream resultStream)
```


Downloads the message with the specified sequence number and writes its data into a supplied stream

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

### saveMessage(IConnection connection, int sequenceNumber, String fileName) {#saveMessage-com.aspose.email.IConnection-int-java.lang.String-}
```
public final void saveMessage(IConnection connection, int sequenceNumber, String fileName)
```


Downloads the message with the specified sequence number and writes its data into a local file

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

### saveMessage(IConnection connection, String uniqueId, OutputStream resultStream) {#saveMessage-com.aspose.email.IConnection-java.lang.String-java.io.OutputStream-}
```
public final void saveMessage(IConnection connection, String uniqueId, OutputStream resultStream)
```


Downloads the message with the specified sequence number and writes its data into a supplied stream

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

### saveMessage(IConnection connection, String uniqueId, String fileName) {#saveMessage-com.aspose.email.IConnection-java.lang.String-java.lang.String-}
```
public final void saveMessage(IConnection connection, String uniqueId, String fileName)
```


Downloads the message with the specified sequence number and writes its data into a local file

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

### saveMessage(int sequenceNumber, OutputStream resultStream) {#saveMessage-int-java.io.OutputStream-}
```
public final void saveMessage(int sequenceNumber, OutputStream resultStream)
```


Downloads the message with the specified sequence number and writes its data into a supplied stream

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

### saveMessage(int sequenceNumber, String fileName) {#saveMessage-int-java.lang.String-}
```
public final void saveMessage(int sequenceNumber, String fileName)
```


Downloads the message with the specified sequence number and writes its data into a local file

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

### saveMessage(String uniqueId, OutputStream resultStream) {#saveMessage-java.lang.String-java.io.OutputStream-}
```
public final void saveMessage(String uniqueId, OutputStream resultStream)
```


Downloads the message with the specified sequence number and writes its data into a supplied stream

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| resultStream | java.io.OutputStream | Stream that will receive the message |

### saveMessage(String uniqueId, String fileName) {#saveMessage-java.lang.String-java.lang.String-}
```
public final void saveMessage(String uniqueId, String fileName)
```


Downloads the message with the specified sequence number and writes its data into a local file

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| fileName | java.lang.String | The path of the local file. This cannot be a directory |

### selectFolder(IConnection connection, String folderName) {#selectFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final void selectFolder(IConnection connection, String folderName)
```


Selects the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be selected |

### selectFolder(IConnection connection, String folderName, Boolean readOnly) {#selectFolder-com.aspose.email.IConnection-java.lang.String-java.lang.Boolean-}
```
public final void selectFolder(IConnection connection, String folderName, Boolean readOnly)
```


Selects the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Folder to be selected |
| readOnly | java.lang.Boolean | Specifies whether the folder is to be selected as read-only |

### selectFolder(String folderName) {#selectFolder-java.lang.String-}
```
public final void selectFolder(String folderName)
```


Selects the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be selected |

### selectFolder(String folderName, Boolean readOnly) {#selectFolder-java.lang.String-java.lang.Boolean-}
```
public final void selectFolder(String folderName, Boolean readOnly)
```


Selects the specified folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Folder to be selected |
| readOnly | java.lang.Boolean | Specifies whether the folder is to be selected as read-only |

### setAccessToken(String value) {#setAccessToken-java.lang.String-}
```
public void setAccessToken(String value)
```


Gets or sets the access token.

Value: The string that represents access token.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setAllowedAuthentication(long value) {#setAllowedAuthentication-long-}
```
public final void setAllowedAuthentication(long value)
```


Gets or sets enumeration of allowed by user authentication types

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long |  |

### setAnnotateSupported(boolean value) {#setAnnotateSupported-boolean-}
```
public final void setAnnotateSupported(boolean value)
```


Gets information whether ANNOTATE extension is supported See more: https://tools.ietf.org/html/rfc5257

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setAutoCommit(boolean value) {#setAutoCommit-boolean-}
```
public final void setAutoCommit(boolean value)
```


Indicates, whether commit operation are executed automatically when folder is changed or before connection is closed.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setChildrenSupported(boolean value) {#setChildrenSupported-boolean-}
```
public final void setChildrenSupported(boolean value)
```


Gets information whether CHILDREN extension is supported See more: https://tools.ietf.org/html/rfc3348

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setClientIdentificationInfo(ImapIdentificationInfo value) {#setClientIdentificationInfo-com.aspose.email.ImapIdentificationInfo-}
```
public final void setClientIdentificationInfo(ImapIdentificationInfo value)
```


Gets or sets client identification information See more: https://tools.ietf.org/html/rfc2971

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ImapIdentificationInfo](../../com.aspose.email/imapidentificationinfo) |  |

### setCompressSupported(boolean value) {#setCompressSupported-boolean-}
```
public final void setCompressSupported(boolean value)
```


Gets information whether COMPRESS extension is supported See more: https://tools.ietf.org/html/rfc4978

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setCondstoreSupported(boolean value) {#setCondstoreSupported-boolean-}
```
public final void setCondstoreSupported(boolean value)
```


Gets information whether CONDSTORE extension is supported See more: https://tools.ietf.org/html/rfc7162

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setConnectionAsgmtMode(int value) {#setConnectionAsgmtMode-int-}
```
public void setConnectionAsgmtMode(int value)
```


Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can't be created or disposed manually. - Default connection is connection default for some thread. If default connection exists and ConnectionAsgmtMode allow, all methods of email client executed in this thread will be implicitly use this connection. Only one default connection can be exist per thread. It can be created manually or automatically. It depends on EmailClient.ConnectionAsgmtMode property. These connections can be created manually with EmailClient.CreateConnection(createAsDefaultConnection = true) method. If default connection does not used(depends on connection allocation mode), main connection used implicitly instead of it. - Independent connections are connections that are not linked to threads.They can be created manually and has to be used explicitly as method parameter. These connections can be created manually with EmailClient.CreateConnection() method or EmailClient.CreateConnection(createAsDefaultConnection = false) method. There are folowing connection allocation types: - ConnectionAsgmtType.UseMainOrDefault This mode uses by default in email clients. Email client uses main connection for all operations from multiple threads if default connection hasn't been created, or connection hasnt been passed as method parameter explicitly. Main connection is connection which is created in the same time like email client. User can create default connections for threads with CreateConnection method. If default connection for thread is created, it's used implicitly for all methods of email client which are invoked in this thread. If default connection for thread is not created, main connection is used for all methods of email client which are invoked in this thread. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection (if he uses it) in the end of the code which executes in the thread. - ConnectionAsgmtType.UseMain Email client uses main connection for all operations from multiple threads. Main connection is connection which is created in the same time like email client. User cann't create default connections. User can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. - ConnectionAsgmtType.UseDefault Email client uses implicitly only default connections for all operations from multiple threads. Main connection is not used in this mode. If default connection hasn't been created for some thread (first invocation of email client method), email client creates default connection implicitly for thread before first operation is executed. User can't create default connections for threads with CreateConnection method because they are created automatically. When default connection for thread is created, it's used implicitly for all methods of email client which are invoked in this thread.read. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection in the end of the code which executes in the thread.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setConnectionCheckupPeriod(int value) {#setConnectionCheckupPeriod-int-}
```
public void setConnectionCheckupPeriod(int value)
```


Period of connection checking up in milliseconds. Default value is 5 min.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setConnectionsQuantity(int value) {#setConnectionsQuantity-int-}
```
public void setConnectionsQuantity(int value)
```


Gets or sets quantity of connections in multy-connection mode

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setCredentialsEncoding(String value) {#setCredentialsEncoding-java.lang.String-}
```
public final void setCredentialsEncoding(String value)
```


Gets or sets Credentials Encoding

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setCurrentFolder(ImapFolderInfo value) {#setCurrentFolder-com.aspose.email.ImapFolderInfo-}
```
public final void setCurrentFolder(ImapFolderInfo value)
```


Gets the current folder

Value: ImapFolderInfo that represents current folder

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ImapFolderInfo](../../com.aspose.email/imapfolderinfo) |  |

### setDefaultFolder(String value) {#setDefaultFolder-java.lang.String-}
```
public static void setDefaultFolder(String value)
```


Default folder for ImapClients

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setDelimiter(String value) {#setDelimiter-java.lang.String-}
```
public final void setDelimiter(String value)
```


Gets or sets delimiter of folders hierarhy.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setESearchSupported(boolean value) {#setESearchSupported-boolean-}
```
public final void setESearchSupported(boolean value)
```


Gets information whether ESEARCH extension is supported See more: https://tools.ietf.org/html/rfc4731

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setEnableLogger(boolean value) {#setEnableLogger-boolean-}
```
public final void setEnableLogger(boolean value)
```


Gets or sets value which allows enable/disable logger

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setEnableSupported(boolean value) {#setEnableSupported-boolean-}
```
public final void setEnableSupported(boolean value)
```


Gets information whether ENABLE extension is supported See more: https://tools.ietf.org/html/rfc5161

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setExchangeIdAutomatically(boolean value) {#setExchangeIdAutomatically-boolean-}
```
public final void setExchangeIdAutomatically(boolean value)
```


Gets or sets value which indicates whether client should to introduce information about itself to a server automatically. See more: https://tools.ietf.org/html/rfc2971

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setExtendedListSupported(boolean value) {#setExtendedListSupported-boolean-}
```
public final void setExtendedListSupported(boolean value)
```


Gets information whether LIST Command Extension is supported See more https://tools.ietf.org/html/rfc5258

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setGmExt1Supported(boolean value) {#setGmExt1Supported-boolean-}
```
public final void setGmExt1Supported(boolean value)
```


Defines if Google X-GM-EXT-1 extension is supported

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setGreetingTimeout(int value) {#setGreetingTimeout-int-}
```
public final void setGreetingTimeout(int value)
```


Gets or sets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can't be infinite. Email clients may execute enough long operations. To limit the time of operations users have to use  EmailClient.Timeout (\#getTimeout.getTimeout/\#setTimeout(int).setTimeout(int)) property. Values for this property have to have long intervals to not prevent long-time operations. But in some cases, if EmailClient will use only Timeout property connection establishing may take a long time. For instance, the mail client may use the automatic mode to connection establishing. In this mode, the email client goes through all possible connection parameters until the connection is established. SMTP, IMAP, and POP3 servers in case of correct connection establishing send greeting string to the client. Servers may use implicit or explicit (START TLS) SSL/TLS connection initiation. If connection mode is mismatched (for instance, the server waits for an implicit SSL connection but the client tries to establish a non-secured or explicit SSL connection), the server won't send a greeting string. In this case, the user will wait a long time until the timeout reaches a greeting string, and the client goes to the next connection option. To avoid this problem, the GreetingTimeout property has been introduced. This property allows you to set the timeout for greeting string, and reduce the time of automatic connection establishment.

Value: The greeting timeout in milliseconds

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setHost(String value) {#setHost-java.lang.String-}
```
public void setHost(String value)
```


Gets or sets the host name.

Value: The host name.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setIdSupported(boolean value) {#setIdSupported-boolean-}
```
public final void setIdSupported(boolean value)
```


Gets information whether ID extension is supported See more: https://tools.ietf.org/html/rfc2971

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setLogFileName(String value) {#setLogFileName-java.lang.String-}
```
public final void setLogFileName(String value)
```


Gets or sets log file name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | Log file name |

### setLogFileName(String value, boolean showDebugLog) {#setLogFileName-java.lang.String-boolean-}
```
public final void setLogFileName(String value, boolean showDebugLog)
```


Gets or sets log file name

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | Log file name |
| showDebugLog | boolean | Indicates whether debug log should be shown |

### setMoveSupported(boolean value) {#setMoveSupported-boolean-}
```
public final void setMoveSupported(boolean value)
```


Gets information whether MOVE extension is supported See more: https://tools.ietf.org/html/rfc6851

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setNamespaceSupported(boolean value) {#setNamespaceSupported-boolean-}
```
public final void setNamespaceSupported(boolean value)
```


Gets information whether NAMESPACE extension is supported See more: https://tools.ietf.org/html/rfc2342

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setPassword(String value) {#setPassword-java.lang.String-}
```
public void setPassword(String value)
```


Gets or sets the password. Password limitations are defined by server implementation, which client connects.

Value: The string that represents the password.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setPort(int value) {#setPort-int-}
```
public void setPort(int value)
```


Gets or sets the port.

Value: The port number.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setProxy(Proxy value) {#setProxy-com.aspose.email.Proxy-}
```
public void setProxy(Proxy value)
```


Gets or sets proxy for the client

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Proxy](../../com.aspose.email/proxy) |  |

### setQresyncSupported(boolean value) {#setQresyncSupported-boolean-}
```
public final void setQresyncSupported(boolean value)
```


Gets information whether QRESYNC extension is supported See more: https://tools.ietf.org/html/rfc7162

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit) {#setQuota-com.aspose.email.IConnection-java.lang.String-java.lang.String-int-}
```
public final ImapQuota[] setQuota(IConnection connection, String quotaRootName, String resourceName, int resourceLimit)
```


Sets quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### setQuota(String quotaRootName, String resourceName, int resourceLimit) {#setQuota-java.lang.String-java.lang.String-int-}
```
public final ImapQuota[] setQuota(String quotaRootName, String resourceName, int resourceLimit)
```


Sets quota information

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| quotaRootName | java.lang.String | quota root name |
| resourceName | java.lang.String | resource name |
| resourceLimit | int | resource limit |

**Returns:**
com.aspose.email.ImapQuota[] - Quota information
### setQuotaSupported(boolean value) {#setQuotaSupported-boolean-}
```
public final void setQuotaSupported(boolean value)
```


Gets information whether quota is supported

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setReadOnly(boolean value) {#setReadOnly-boolean-}
```
public final void setReadOnly(boolean value)
```


Gets or sets value which indicates if changes to the permanent state of the mailbox, including per-user state, are permitted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSaslIrSupported(boolean value) {#setSaslIrSupported-boolean-}
```
public final void setSaslIrSupported(boolean value)
```


Gets information whether SASL Initial Client Response extension is supported See more: https://tools.ietf.org/html/rfc4959

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSecurityOptions(int value) {#setSecurityOptions-int-}
```
public void setSecurityOptions(int value)
```


Security mode for a mail client

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setShowCredentialsInLog(boolean value) {#setShowCredentialsInLog-boolean-}
```
public static void setShowCredentialsInLog(boolean value)
```


Sets value indicating whether Credentials should be displayed in the log. By default, is False.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | True if Credentials should be displayed in the log. |

### setSocketsLayerVersion2(boolean value) {#setSocketsLayerVersion2-boolean-}
```
public static void setSocketsLayerVersion2(boolean value)
```


Sets value indicating whether Sockets Layer version 2 is used. By default, Sockets Layer version 2 is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | False if Sockets Layer version 1 should be used. |

### setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value) {#setSocketsLayerVersion2DisableSSLCertificateValidation-boolean-}
```
public static void setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value)
```


Disable SSL certificate validation for Sockets Layer version 2

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value) {#setSocketsLayerVersion2SSLSocketFactory-javax.net.ssl.SSLSocketFactory-}
```
public static void setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value)
```


Set SSL Socket Factory for Sockets Layer version 2

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | javax.net.ssl.SSLSocketFactory |  |

### setSortSupported(boolean value) {#setSortSupported-boolean-}
```
public final void setSortSupported(boolean value)
```


Gets information whether Sort command are supported

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSpecialUseSupported(boolean value) {#setSpecialUseSupported-boolean-}
```
public final void setSpecialUseSupported(boolean value)
```


Gets information whether Special-Use Mailboxes is supported See more: https://tools.ietf.org/html/rfc6154

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSupportOldServer(boolean value) {#setSupportOldServer-boolean-}
```
public final void setSupportOldServer(boolean value)
```


Indicates whether the old servers need to be supported when receiving messages.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSupportedEncryption(int value) {#setSupportedEncryption-int-}
```
public void setSupportedEncryption(int value)
```


Defines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON'T BE GENERATED!!! Please, see [EncryptionProtocols](../../com.aspose.email/encryptionprotocols) documentation for more details. Please use \#setSupportedEncryptionUnsafe(int).setSupportedEncryptionUnsafe(int) method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setSupportedEncryptionUnsafe(int value) {#setSupportedEncryptionUnsafe-int-}
```
public final void setSupportedEncryptionUnsafe(int value)
```


Defines the versions of SSL/TLS encryption protocols to be used. This method is not safe and sets the encryption protocols without any compatibility checks. Use  SupportedEncryption (\#getSupportedEncryption.getSupportedEncryption/\#setSupportedEncryption(int).setSupportedEncryption(int)) property to safely set only protocols that definitely supported by framework. Please note, if your current framework does not support this level of security, an exception will be thrown when trying to establish a connection to the server.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setThreadSupported(boolean value) {#setThreadSupported-boolean-}
```
public final void setThreadSupported(boolean value)
```


Gets information whether Thread command are supported

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setTimeout(int value) {#setTimeout-int-}
```
public final void setTimeout(int value)
```


Gets or sets the timeout for mail operations

Value: The timeout in milliseconds

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setTokenProvider(ITokenProvider value) {#setTokenProvider-com.aspose.email.ITokenProvider-}
```
public final void setTokenProvider(ITokenProvider value)
```


Gets or sets TokenProvider allowing to retrieve access token.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [ITokenProvider](../../com.aspose.email/itokenprovider) |  |

### setUidPlusSupported(boolean value) {#setUidPlusSupported-boolean-}
```
public final void setUidPlusSupported(boolean value)
```


Gets information whether UIDPLUS extension is supported See more: https://tools.ietf.org/html/rfc4315

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUnselectSupported(boolean value) {#setUnselectSupported-boolean-}
```
public final void setUnselectSupported(boolean value)
```


Gets information whether UNSELECT extension is supported See more: https://tools.ietf.org/html/rfc2342

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUseAuthentication(boolean value) {#setUseAuthentication-boolean-}
```
public void setUseAuthentication(boolean value)
```


Indicates whether authentication is used.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUseDateInLogFileName(boolean value) {#setUseDateInLogFileName-boolean-}
```
public final void setUseDateInLogFileName(boolean value)
```


Gets or sets value which indicates if date has to be used in log file name.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUseDefaultCredentials(boolean value) {#setUseDefaultCredentials-boolean-}
```
public void setUseDefaultCredentials(boolean value)
```


Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setUseMultiConnection(int value) {#setUseMultiConnection-int-}
```
public void setUseMultiConnection(int value)
```


Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setUsePipelining(PipeliningStatus value) {#setUsePipelining-com.aspose.email.PipeliningStatus-}
```
public void setUsePipelining(PipeliningStatus value)
```


Gets or sets object which indicates whether the pipelining mode is enabled.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PipeliningStatus](../../com.aspose.email/pipeliningstatus) |  |

### setUsername(String value) {#setUsername-java.lang.String-}
```
public void setUsername(String value)
```


Gets or sets the username.

Value: The username string.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### sortMessageThreads(IConnection connection, SortConditions conditions) {#sortMessageThreads-com.aspose.email.IConnection-com.aspose.email.SortConditions-}
```
public final List<MessageThreadResult> sortMessageThreads(IConnection connection, SortConditions conditions)
```


Get message threads.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| conditions | [SortConditions](../../com.aspose.email/sortconditions) | Thread conditions. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult> - Message threads
### sortMessageThreads(SortConditions conditions) {#sortMessageThreads-com.aspose.email.SortConditions-}
```
public final List<MessageThreadResult> sortMessageThreads(SortConditions conditions)
```


Get message threads.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| conditions | [SortConditions](../../com.aspose.email/sortconditions) | Thread conditions. |

**Returns:**
java.util.List<com.aspose.email.MessageThreadResult> - Message threads
### startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback) {#startMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-}
```
public final void startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback)
```


Starts monitoring of message changes for "Inbox" folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | [ImapMonitoringEventHandler](../../com.aspose.email/imapmonitoringeventhandler) | The callback function for monitoring operation. |
| errorCallback | [ImapMonitoringErrorEventHandler](../../com.aspose.email/imapmonitoringerroreventhandler) | The callback function for monitoring error handling. Monitoring of specified folder is stopped when this callback is called. The callback also provides a state holder so folder monitoring could be resumed using \#resumeMonitoring(ImapMonitoringEventHandler,ImapMonitoringErrorEventHandler,IImapMonitoringState).resumeMonitoring(ImapMonitoringEventHandler,ImapMonitoringErrorEventHandler,IImapMonitoringState) method. |

### startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, String folderName) {#startMonitoring-com.aspose.email.ImapMonitoringEventHandler-com.aspose.email.ImapMonitoringErrorEventHandler-java.lang.String-}
```
public final void startMonitoring(ImapMonitoringEventHandler callback, ImapMonitoringErrorEventHandler errorCallback, String folderName)
```


Starts monitoring of message changes for specified folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| callback | [ImapMonitoringEventHandler](../../com.aspose.email/imapmonitoringeventhandler) | The callback function for monitoring operation. |
| errorCallback | [ImapMonitoringErrorEventHandler](../../com.aspose.email/imapmonitoringerroreventhandler) | The callback function for monitoring error handling. Monitoring of specified folder is stopped when this callback is called. The callback also provides a state holder so folder monitoring could be resumed using \#resumeMonitoring(ImapMonitoringEventHandler,ImapMonitoringErrorEventHandler,IImapMonitoringState).resumeMonitoring(ImapMonitoringEventHandler,ImapMonitoringErrorEventHandler,IImapMonitoringState) method. |
| folderName | java.lang.String | The folder for monitoring operation. |

### stopMonitoring() {#stopMonitoring--}
```
public final void stopMonitoring()
```


Stops any monitoring of changes.

### stopMonitoring(String folderName) {#stopMonitoring-java.lang.String-}
```
public final void stopMonitoring(String folderName)
```


Stops monitoring of message changes for specified folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | specified folder for monitoring operation |

### subscribeFolder(IConnection connection, String folderName) {#subscribeFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final void subscribeFolder(IConnection connection, String folderName)
```


Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

### subscribeFolder(String folderName) {#subscribeFolder-java.lang.String-}
```
public final void subscribeFolder(String folderName)
```


Sent the SUBSCRIBE command that adds the specified mailbox name to the server's set of "active" mailboxes.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### undeleteMessage(IConnection connection, int sequenceNumber) {#undeleteMessage-com.aspose.email.IConnection-int-}
```
public final void undeleteMessage(IConnection connection, int sequenceNumber)
```


Marks a message with the specified sequence number as not deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |

### undeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence) {#undeleteMessage-com.aspose.email.IConnection-int-long-}
```
public final void undeleteMessage(IConnection connection, int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| sequenceNumber | int | The sequence number of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### undeleteMessage(IConnection connection, String uniqueId) {#undeleteMessage-com.aspose.email.IConnection-java.lang.String-}
```
public final void undeleteMessage(IConnection connection, String uniqueId)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |

### undeleteMessage(IConnection connection, String uniqueId, long modificationSequence) {#undeleteMessage-com.aspose.email.IConnection-java.lang.String-long-}
```
public final void undeleteMessage(IConnection connection, String uniqueId, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### undeleteMessage(int sequenceNumber) {#undeleteMessage-int-}
```
public final void undeleteMessage(int sequenceNumber)
```


Marks a message with the specified sequence number as not deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |

### undeleteMessage(int sequenceNumber, long modificationSequence) {#undeleteMessage-int-long-}
```
public final void undeleteMessage(int sequenceNumber, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| sequenceNumber | int | The sequence number of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### undeleteMessage(String uniqueId) {#undeleteMessage-java.lang.String-}
```
public final void undeleteMessage(String uniqueId)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |

### undeleteMessage(String uniqueId, long modificationSequence) {#undeleteMessage-java.lang.String-long-}
```
public final void undeleteMessage(String uniqueId, long modificationSequence)
```


Marks a message with the specified sequence number as not deleted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| uniqueId | java.lang.String | The unique Id of the message |
| modificationSequence | long | Modification sequence. Please, read more https://tools.ietf.org/html/rfc7162 |

### unselectFolder() {#unselectFolder--}
```
public final void unselectFolder()
```


Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

### unselectFolder(boolean doNotExpunge) {#unselectFolder-boolean-}
```
public final void unselectFolder(boolean doNotExpunge)
```


Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |

### unselectFolder(IConnection connection) {#unselectFolder-com.aspose.email.IConnection-}
```
public final void unselectFolder(IConnection connection)
```


Permanently removes all messages marked as deleted for currently selected folder and removes selected-state for this folder.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

### unselectFolder(IConnection connection, boolean doNotExpunge) {#unselectFolder-com.aspose.email.IConnection-boolean-}
```
public final void unselectFolder(IConnection connection, boolean doNotExpunge)
```


Unselects folder which are currently selected. if doNotExpunge property is true, all messages are marked as deleted are removed, otherwise deletion canceled. Please note, this operation works only in case if server supports RFC3691 See more https://tools.ietf.org/html/rfc3691

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| doNotExpunge | boolean | Specifies whether messages marked as deleted should be removed. |

### unsubscribeFolder(IConnection connection, String folderName) {#unsubscribeFolder-com.aspose.email.IConnection-java.lang.String-}
```
public final void unsubscribeFolder(IConnection connection, String folderName)
```


Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |
| folderName | java.lang.String | Name of the folder |

### unsubscribeFolder(String folderName) {#unsubscribeFolder-java.lang.String-}
```
public final void unsubscribeFolder(String folderName)
```


Sent the UNSUBSCRIBE command that removes the specified mailbox name from the server's set of "active" mailboxes

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| folderName | java.lang.String | Name of the folder |

### usePasswordQuotes(boolean value) {#usePasswordQuotes-boolean-}
```
public static void usePasswordQuotes(boolean value)
```


Sets a value indicating whether Quotes should be used in login password syntax with special characters. By default, is True.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | False if Quotes should not be used in login password syntax. |

### validateCredentials() {#validateCredentials--}
```
public boolean validateCredentials()
```


Executes credentials validation

**Returns:**
boolean - True if authentication was successful, otherwise false.
### validateCredentials(IConnection connection) {#validateCredentials-com.aspose.email.IConnection-}
```
public final boolean validateCredentials(IConnection connection)
```


Executes credentials validation

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connection | [IConnection](../../com.aspose.email/iconnection) | Connection to a server |

**Returns:**
boolean - True if authentication was successful, otherwise false.
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

