com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Pop3Client

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public final class Pop3Client
    extends CredentialsByHostClient

    Allows applications to access and manipulate messages by using the Post Office Protocol Version 3 (POP3).

    • Constructor Detail

      • Pop3Client

        public Pop3Client()

        Initializes a new instance of the Pop3Client class

      • Pop3Client

        public Pop3Client(String host)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
      • Pop3Client

        public Pop3Client(String host,
                  short securityOptions)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        securityOptions - Security mode for a mail client
      • Pop3Client

        public Pop3Client(String host,
                  int port)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
      • Pop3Client

        public Pop3Client(String host,
                  int port,
                  int securityOptions)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
        securityOptions - Security mode for a mail client
      • Pop3Client

        public Pop3Client(String host,
                  String username,
                  String password)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        username - The username
        password - The password
      • Pop3Client

        public Pop3Client(String host,
                  String username,
                  String password,
                  int securityOptions)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        username - The username
        password - The password
        securityOptions - Security mode for a mail client
      • Pop3Client

        public Pop3Client(String host,
                  int port,
                  String username,
                  String password)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
        username - The username
        password - The password
      • Pop3Client

        public Pop3Client(String host,
                  int port,
                  String username,
                  String password,
                  int securityOptions)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
        username - The username
        password - The password
        securityOptions - Security mode for a mail client
      • Pop3Client

        public Pop3Client(String host,
                  int port,
                  String username,
                  String password,
                  com.aspose.ms.System.Net.Security.RemoteCertificateValidationCallback userCertificateValidationCallback)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
        username - The username
        password - The password
        userCertificateValidationCallback - System.Net.Security.RemoteCertificateValidationCallback
      • Pop3Client

        public Pop3Client(String host,
                  int port,
                  String username,
                  String password,
                  com.aspose.ms.System.Net.Security.RemoteCertificateValidationCallback userCertificateValidationCallback,
                  int securityOptions)

        Initializes a new instance of the Pop3Client class

        Parameters:
        host - The host name
        port - The port number
        username - The username
        password - The password
        userCertificateValidationCallback - System.Net.Security.RemoteCertificateValidationCallback
        securityOptions - Security mode for a mail client
    • Method Detail

      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes(IConnection connection)

        Begins to commit the deletions.

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes(IConnection connection,
                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins to commit the deletions.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes(IConnection connection,
                                                           com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins to commit the deletions.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes()

        Begins to commit the deletions.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes(com.aspose.ms.System.AsyncCallback callback)

        Begins to commit the deletions.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginCommitDeletes

        public final com.aspose.ms.System.IAsyncResult beginCommitDeletes(com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins to commit the deletions.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endCommitDeletes

        public final void endCommitDeletes(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • commitDeletes

        public final void commitDeletes(int sleep)

        Commit the deletions

        Parameters:
        sleep - Timeout in milliseconds
      • commitDeletes

        public final void commitDeletes(IConnection connection)

        Commit the deletions

        Parameters:
        connection - Connection to a server
      • commitDeletes

        public final void commitDeletes()

        Commit the deletions

      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           int sequenceNumber)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           int sequenceNumber,
                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           int sequenceNumber,
                                                           com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           String uniqueId)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           String uniqueId,
                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(IConnection connection,
                                                           String uniqueId,
                                                           com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins DeleteMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(int sequenceNumber)

        Begins DeleteMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(int sequenceNumber,
                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins DeleteMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(int sequenceNumber,
                                                           com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins DeleteMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(String uniqueId)

        Begins DeleteMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(String uniqueId,
                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins DeleteMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessage

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessage(String uniqueId,
                                                           com.aspose.ms.System.AsyncCallback callback,
                                                           Object state)

        Begins DeleteMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endDeleteMessage

        public final void endDeleteMessage(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • deleteMessage

        public final void deleteMessage(IConnection connection,
                         int sequenceNumber)

        Deletes the message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • deleteMessage

        public final void deleteMessage(IConnection connection,
                         String uniqueId)

        Deletes the message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • deleteMessage

        public final void deleteMessage(int sequenceNumber)

        Deletes the message

        Parameters:
        sequenceNumber - The sequence number of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • deleteMessage

        public final void deleteMessage(String uniqueId)

        Deletes the message

        Parameters:
        uniqueId - The unique id of the message


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages(IConnection connection)

        Begins delete all messages asynchronously

        Parameters:
        connection - Connection to a server


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins delete all messages asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins delete all messages asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages()

        Begins delete all messages asynchronously

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages(com.aspose.ms.System.AsyncCallback callback)

        Begins delete all messages asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginDeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginDeleteMessages(com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins delete all messages asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endDeleteMessages

        public final void endDeleteMessages(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • deleteMessages

        public final void deleteMessages(IConnection connection)

        Deletes all messages

        Parameters:
        connection - Connection to a server


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • deleteMessages

        public final void deleteMessages()

        Deletes all messages


        The POP3 server marks the message as deleted. The POP3 server does not actually delete the message until the POP3 session enters the UPDATE state.

      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          int sequenceNumber)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          int sequenceNumber,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          int sequenceNumber,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          String uniqueId)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          String uniqueId,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(IConnection connection,
                                                          String uniqueId,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins FetchMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(int sequenceNumber)

        Begins FetchMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(int sequenceNumber,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(int sequenceNumber,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins FetchMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(String uniqueId)

        Begins FetchMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(String uniqueId,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessage

        public final com.aspose.ms.System.IAsyncResult beginFetchMessage(String uniqueId,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins FetchMessage operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endFetchMessage

        public final MailMessage endFetchMessage(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        MailMessage that represents e-mail message
      • fetchMessage

        public final MailMessage fetchMessage(IConnection connection,
                               String uniqueId)

        Fetches the message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        MailMessage that represents e-mail message
      • fetchMessage

        public final MailMessage fetchMessage(IConnection connection,
                               int sequenceNumber)

        Fetches the message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        MailMessage that represents e-mail message
      • fetchMessage

        public final MailMessage fetchMessage(String uniqueId)

        Fetches the message

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        MailMessage that represents e-mail message
      • fetchMessage

        public final MailMessage fetchMessage(int sequenceNumber)

        Fetches the message

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        MailMessage that represents e-mail message
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers)

        Begins FetchMessages operation asynchronously

        Parameters:
        sequenceNumbers -
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers,
                                                                      com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessages operation asynchronously

        Parameters:
        sequenceNumbers -
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(Iterable<Integer> sequenceNumbers,
                                                                      com.aspose.ms.System.AsyncCallback callback,
                                                                      Object state)

        Begins FetchMessages operation asynchronously

        Parameters:
        sequenceNumbers -
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(IConnection connection,
                                                                      Iterable<Integer> sequenceNumbers)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumbers -
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(IConnection connection,
                                                                      Iterable<Integer> sequenceNumbers,
                                                                      com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumbers -
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesBySequences

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesBySequences(IConnection connection,
                                                                      Iterable<Integer> sequenceNumbers,
                                                                      com.aspose.ms.System.AsyncCallback callback,
                                                                      Object state)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumbers -
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids)

        Begins FetchMessages operation asynchronously

        Parameters:
        uids - The sequence numbers of the messages
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids,
                                                                 com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessages operation asynchronously

        Parameters:
        uids - The sequence numbers of the messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(Iterable<String> uids,
                                                                 com.aspose.ms.System.AsyncCallback callback,
                                                                 Object state)

        Begins FetchMessages operation asynchronously

        Parameters:
        uids - The sequence numbers of the messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(IConnection connection,
                                                                 Iterable<String> uids)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        uids - The sequence numbers of the messages
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(IConnection connection,
                                                                 Iterable<String> uids,
                                                                 com.aspose.ms.System.AsyncCallback callback)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        uids - The sequence numbers of the messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginFetchMessagesByUids

        public final com.aspose.ms.System.IAsyncResult beginFetchMessagesByUids(IConnection connection,
                                                                 Iterable<String> uids,
                                                                 com.aspose.ms.System.AsyncCallback callback,
                                                                 Object state)

        Begins FetchMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        uids - The sequence numbers of the messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endFetchMessages

        public final Iterable<MailMessage> endFetchMessages(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        List of MailMessage objects
      • fetchMessagesBySequences

        public final Iterable<MailMessage> fetchMessagesBySequences(Iterable<Integer> sequenceNumbers)

        Fetches the messages

        Parameters:
        sequenceNumbers - The sequence numbers of the messages
        Returns:
        List of MailMessage objects
      • fetchMessagesBySequences

        public final Iterable<MailMessage> fetchMessagesBySequences(IConnection connection,
                                                     Iterable<Integer> sequenceNumbers)

        Fetches the messages

        Parameters:
        connection - Connection to a server
        sequenceNumbers - The sequence numbers of the messages
        Returns:
        List of MailMessage objects
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(IConnection connection)

        Begins to get the mailbox status info

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the mailbox status info

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the mailbox status info

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(IConnection connection,
                                                            boolean closeTransaction,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the mailbox status info

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo()

        Begins to get the mailbox status info

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(com.aspose.ms.System.AsyncCallback callback)

        Begins to get the mailbox status info

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxInfo(com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the mailbox status info

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMailboxInfo

        public final Pop3MailboxInfo endGetMailboxInfo(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        Mailbox information
      • getMailboxInfo

        public final Pop3MailboxInfo getMailboxInfo(IConnection connection)

        Gets the mailbox status info

        Parameters:
        connection - Connection to a server
        Returns:
        Mailbox information
      • getMailboxInfo

        public final Pop3MailboxInfo getMailboxInfo(IConnection connection,
                                     boolean closeTransaction)

        Gets the mailbox status info

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        Mailbox information
      • getMailboxInfo

        public final Pop3MailboxInfo getMailboxInfo(boolean closeTransaction)

        Gets the mailbox status info

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        Mailbox information
      • getMailboxInfo

        public final Pop3MailboxInfo getMailboxInfo()

        Gets the mailbox status info

        Returns:
        Mailbox information
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize(IConnection connection)

        Begins GetMailboxSize operation asynchronously

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins GetMailboxSize operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize(IConnection connection,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMailboxSize operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize()

        Begins GetMailboxSize operation asynchronously

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize(com.aspose.ms.System.AsyncCallback callback)

        Begins GetMailboxSize operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMailboxSize

        public final com.aspose.ms.System.IAsyncResult beginGetMailboxSize(com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMailboxSize operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMailboxSize

        public final long endGetMailboxSize(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        size of the mailbox in bytes
      • getMailboxSize

        public final long getMailboxSize(IConnection connection)

        Gets the size of the mailbox

        Parameters:
        connection - Connection to a server
        Returns:
        size of the mailbox in bytes
      • getMailboxSize

        public final long getMailboxSize()

        Gets the size of the mailbox

        Returns:
        size of the mailbox in bytes
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection,
                                                             com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection,
                                                             com.aspose.ms.System.AsyncCallback callback,
                                                             Object state)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection,
                                                             boolean closeTransaction)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection,
                                                             boolean closeTransaction,
                                                             com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(IConnection connection,
                                                             boolean closeTransaction,
                                                             com.aspose.ms.System.AsyncCallback callback,
                                                             Object state)

        Begins GetMessageCount operation asynchronously

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount()

        Begins GetMessageCount operation asynchronously

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageCount operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(com.aspose.ms.System.AsyncCallback callback,
                                                             Object state)

        Begins GetMessageCount operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(boolean closeTransaction)

        Begins GetMessageCount operation asynchronously

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(boolean closeTransaction,
                                                             com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageCount operation asynchronously

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageCount

        public final com.aspose.ms.System.IAsyncResult beginGetMessageCount(boolean closeTransaction,
                                                             com.aspose.ms.System.AsyncCallback callback,
                                                             Object state)

        Begins GetMessageCount operation asynchronously

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMessageCount

        public final int endGetMessageCount(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        message count
      • getMessageCount

        public final int getMessageCount(IConnection connection)

        Gets the message count

        Parameters:
        connection - Connection to a server
        Returns:
        message count
      • getMessageCount

        public final int getMessageCount(IConnection connection,
                          boolean closeTransaction)

        Gets the message count

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        message count
      • getMessageCount

        public final int getMessageCount()

        Gets the message count

        Returns:
        message count
      • getMessageCount

        public final int getMessageCount(boolean closeTransaction)

        Gets the message count

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        Returns:
        message count
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               int sequenceNumber)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               int sequenceNumber,
                                                               com.aspose.ms.System.AsyncCallback callback)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               int sequenceNumber,
                                                               com.aspose.ms.System.AsyncCallback callback,
                                                               Object state)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(int sequenceNumber)

        Begins getting message headers

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(int sequenceNumber,
                                                               com.aspose.ms.System.AsyncCallback callback)

        Begins getting message headers

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(int sequenceNumber,
                                                               com.aspose.ms.System.AsyncCallback callback,
                                                               Object state)

        Begins getting message headers

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               String uniqueId)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               String uniqueId,
                                                               com.aspose.ms.System.AsyncCallback callback)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(IConnection connection,
                                                               String uniqueId,
                                                               com.aspose.ms.System.AsyncCallback callback,
                                                               Object state)

        Begins getting message headers

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(String uniqueId)

        Begins getting message headers

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(String uniqueId,
                                                               com.aspose.ms.System.AsyncCallback callback)

        Begins getting message headers

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageHeaders

        public final com.aspose.ms.System.IAsyncResult beginGetMessageHeaders(String uniqueId,
                                                               com.aspose.ms.System.AsyncCallback callback,
                                                               Object state)

        Begins getting message headers

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMessageHeaders

        public final HeaderCollection endGetMessageHeaders(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • getMessageHeaders

        public final HeaderCollection getMessageHeaders(IConnection connection,
                                         int sequenceNumber)

        Gets the message headers

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        HeaderCollection that represents collection of the headers
      • getMessageHeaders

        public final HeaderCollection getMessageHeaders(int sequenceNumber)

        Gets the message headers

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        HeaderCollection that represents collection of the headers
      • getMessageHeaders

        public final HeaderCollection getMessageHeaders(IConnection connection,
                                         String uniqueId)

        Gets the message headers

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        HeaderCollection that represents collection of the headers
      • getMessageHeaders

        public final HeaderCollection getMessageHeaders(String uniqueId)

        Gets the message headers

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        HeaderCollection that represents collection of the headers
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            int sequenceNumber)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(int sequenceNumber)

        Begins GetMessageSize operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageSize operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMessageSize operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            String uniqueId)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(IConnection connection,
                                                            String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMessageSize operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(String uniqueId)

        Begins GetMessageSize operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins GetMessageSize operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageSize

        public final com.aspose.ms.System.IAsyncResult beginGetMessageSize(String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins GetMessageSize operation asynchronously

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMessageSize

        public final long endGetMessageSize(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        size of the message in bytes
      • getMessageSize

        public final long getMessageSize(IConnection connection,
                          String uniqueId)

        Gets the size of the message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        size of the message in bytes
      • getMessageSize

        public final long getMessageSize(String uniqueId)

        Gets the size of the message

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        size of the message in bytes
      • getMessageSize

        public final long getMessageSize(IConnection connection,
                          int sequenceNumber)

        Gets the size of the message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        size of the message in bytes
      • getMessageSize

        public final long getMessageSize(int sequenceNumber)

        Gets the size of the message

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        size of the message in bytes
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(IConnection connection,
                                                                int sequenceNumber)

        Begins to get the message unique id

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(IConnection connection,
                                                                int sequenceNumber,
                                                                com.aspose.ms.System.AsyncCallback callback)

        Begins to get the message unique id

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(IConnection connection,
                                                                int sequenceNumber,
                                                                com.aspose.ms.System.AsyncCallback callback,
                                                                Object state)

        Begins to get the message unique id

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(int sequenceNumber)

        Begins to get the message unique id

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(int sequenceNumber,
                                                                com.aspose.ms.System.AsyncCallback callback)

        Begins to get the message unique id

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageUniqueId

        public final com.aspose.ms.System.IAsyncResult beginGetMessageUniqueId(int sequenceNumber,
                                                                com.aspose.ms.System.AsyncCallback callback,
                                                                Object state)

        Begins to get the message unique id

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMessageUniqueId

        public final String endGetMessageUniqueId(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Returns:
        String that represents uid of the message
      • getMessageUniqueId

        public final String getMessageUniqueId(IConnection connection,
                                int sequenceNumber)

        Gets the message unique id

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        String that represents uid of the message
      • getMessageUniqueId

        public final String getMessageUniqueId(int sequenceNumber)

        Gets the message unique id

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        String that represents uid of the message
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber,
                                                            int fields)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber,
                                                            int fields)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(int sequenceNumber,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId,
                                                            int fields)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        fields - The fields that we want get
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(IConnection connection,
                                                            String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId,
                                                            int fields)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        fields - The fields that we want get
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId,
                                                            int fields,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        fields - The fields that we want get
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginGetMessageInfo

        public final com.aspose.ms.System.IAsyncResult beginGetMessageInfo(String uniqueId,
                                                            com.aspose.ms.System.AsyncCallback callback,
                                                            Object state)

        Begins to get the information for that message

        Parameters:
        uniqueId - The unique id of the message
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endGetMessageInfo

        public final Pop3MessageInfo endGetMessageInfo(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(IConnection connection,
                                     String uniqueId,
                                     int fields)

        Gets the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        fields - The fields that we want get
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(IConnection connection,
                                     String uniqueId)

        Gets the information for that message

        Parameters:
        connection - Connection to a server
        uniqueId - The unique id of the message
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(String uniqueId)

        Gets the information for that message

        Parameters:
        uniqueId - The unique id of the message
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(String uniqueId,
                                     int fields)

        Gets the information for that message

        Parameters:
        uniqueId - The unique id of the message
        fields - The fields that we want get
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(IConnection connection,
                                     int sequenceNumber,
                                     int fields)

        Gets the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(IConnection connection,
                                     int sequenceNumber)

        Gets the information for that message

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(int sequenceNumber)

        Gets the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        Returns:
        Pop3MessageInfo
      • getMessageInfo

        public final Pop3MessageInfo getMessageInfo(int sequenceNumber,
                                     int fields)

        Gets the information for that message

        Parameters:
        sequenceNumber - The sequence number of the message
        fields - The fields that we want get
        Returns:
        Pop3MessageInfo
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          int fields,
                                                          boolean closeTransaction,
                                                          MailQuery query,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins ListMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        fields - The fields that we want get
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        query - The MailQuery object.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection)

        Begins ListMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins ListMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins ListMessages operation asynchronously

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          MailQuery query)

        Begins ListMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        query - MailQuery that represents search query.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          MailQuery query,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins ListMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        query - The MailQuery object.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(IConnection connection,
                                                          MailQuery query,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins ListMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        query - The MailQuery object.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages()

        Begins ListMessages operation asynchronously

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(com.aspose.ms.System.AsyncCallback callback)

        Begins ListMessages operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins ListMessages operation asynchronously

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(MailQuery query)

        Begins ListMessage operation asynchronously

        Parameters:
        query - MailQuery that represents search query.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(MailQuery query,
                                                          com.aspose.ms.System.AsyncCallback callback)

        Begins ListMessage operation asynchronously

        Parameters:
        query - The MailQuery object.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginListMessages

        public final com.aspose.ms.System.IAsyncResult beginListMessages(MailQuery query,
                                                          com.aspose.ms.System.AsyncCallback callback,
                                                          Object state)

        Begins ListMessage operation asynchronously

        Parameters:
        query - The MailQuery object.
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endListMessages

        public final Pop3MessageInfoCollection endListMessages(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        Returns collection of Pop3MessageInfo
      • listMessages

        public final Pop3MessageInfoCollection listMessages(IConnection connection)

        Lists the messages. Gets an information for earch message

        Parameters:
        connection - Connection to a server


        Note that messages marked as deleted are not listed

        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages(IConnection connection,
                                             boolean closeTransaction)

        Lists the messages. Gets an information for earch message

        Parameters:
        connection - Connection to a server
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.


        Note that messages marked as deleted are not listed

        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages(IConnection connection,
                                             int fields)

        Lists the messages.

        Parameters:
        connection - Connection to a server
        fields - The fields that we want get


        Note that messages marked as deleted are not listed

        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages(IConnection connection,
                                             int fields,
                                             boolean closeTransaction,
                                             MailQuery query)

        Lists the messages.

        Parameters:
        connection - Connection to a server
        fields - The fields that we want get
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        query - The MailQuery object.
        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages()

        Lists the messages. Gets an information for earch message

        Returns:
        Pop3MessageInfoCollection


        Note that messages marked as deleted are not listed

      • listMessages

        public final Pop3MessageInfoCollection listMessages(boolean closeTransaction)

        Lists the messages. Gets an information for earch message

        Parameters:
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.


        Note that messages marked as deleted are not listed

        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages(int fields)

        Lists the messages.

        Parameters:
        fields - The fields that we want get


        Note that messages marked as deleted are not listed

        Returns:
        Pop3MessageInfoCollection
      • listMessages

        public final Pop3MessageInfoCollection listMessages(int fields,
                                             boolean closeTransaction,
                                             MailQuery query)

        Lists the messages.

        Parameters:
        fields - The fields that we want get
        closeTransaction - Indicates if current transaction has to be closed, before the list is retrieved.
        query - The MailQuery object.
        Returns:
        Pop3MessageInfoCollection
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(IConnection connection,
                                                                           Iterable<Integer> sequenceNumberList)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumberList - The sequence numbers list of messages
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(IConnection connection,
                                                                           Iterable<Integer> sequenceNumberList,
                                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumberList - The sequence numbers list of messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(IConnection connection,
                                                                           Iterable<Integer> sequenceNumberList,
                                                                           com.aspose.ms.System.AsyncCallback callback,
                                                                           Object state)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumberList - The sequence numbers list of messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(Iterable<Integer> sequenceNumberList)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        sequenceNumberList - The sequence numbers list of messages
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(Iterable<Integer> sequenceNumberList,
                                                                           com.aspose.ms.System.AsyncCallback callback)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        sequenceNumberList - The sequence numbers list of messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoListBySequence

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoListBySequence(Iterable<Integer> sequenceNumberList,
                                                                           com.aspose.ms.System.AsyncCallback callback,
                                                                           Object state)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        sequenceNumberList - The sequence numbers list of messages
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(IConnection connection,
                                                                 Iterable<Pop3MessageInfo> messageInfoList)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        messageInfoList - Message info list to load
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(IConnection connection,
                                                                 Iterable<Pop3MessageInfo> messageInfoList,
                                                                 com.aspose.ms.System.AsyncCallback callback)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        messageInfoList - Message info list to load
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(IConnection connection,
                                                                 Iterable<Pop3MessageInfo> messageInfoList,
                                                                 com.aspose.ms.System.AsyncCallback callback,
                                                                 Object state)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        connection - Connection to a server
        messageInfoList - Message info list to load
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(Iterable<Pop3MessageInfo> messageInfoList)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        messageInfoList - Message info list to load
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(Iterable<Pop3MessageInfo> messageInfoList,
                                                                 com.aspose.ms.System.AsyncCallback callback)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        messageInfoList - Message info list to load
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginLoadMessageInfoList

        public final com.aspose.ms.System.IAsyncResult beginLoadMessageInfoList(Iterable<Pop3MessageInfo> messageInfoList,
                                                                 com.aspose.ms.System.AsyncCallback callback,
                                                                 Object state)

        Begins load list of Pop3MessageInfo asynchronously

        Parameters:
        messageInfoList - Message info list to load
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endLoadMessageInfoList

        public final Pop3MessageInfoCollection endLoadMessageInfoList(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
        Returns:
        Pop3MessageInfoCollection
      • loadMessageInfoListBySequence

        public final Pop3MessageInfoCollection loadMessageInfoListBySequence(Iterable<Integer> sequenceNumberList)

        Loads list of Pop3MessageInfo

        Parameters:
        sequenceNumberList - The sequence numbers list of messages
        Returns:
        Pop3MessageInfoCollection
      • loadMessageInfoListBySequence

        public final Pop3MessageInfoCollection loadMessageInfoListBySequence(IConnection connection,
                                                              Iterable<Integer> sequenceNumberList)

        Loads list of Pop3MessageInfo

        Parameters:
        connection - Connection to a server
        sequenceNumberList - The sequence numbers list of messages
        Returns:
        Pop3MessageInfoCollection
      • loadMessageInfoList

        public final Pop3MessageInfoCollection loadMessageInfoList(IConnection connection,
                                                    Iterable<Pop3MessageInfo> messageInfoList)

        Loads list of Pop3MessageInfo

        Parameters:
        connection - Connection to a server
        messageInfoList - Message info list
        Returns:
        Pop3MessageInfoCollection
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop(IConnection connection)

        Begins 'No operation' command.

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop(IConnection connection,
                                                  com.aspose.ms.System.AsyncCallback callback)

        Begins 'No operation' command.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop(IConnection connection,
                                                  com.aspose.ms.System.AsyncCallback callback,
                                                  Object state)

        Begins 'No operation' command.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop()

        Begins 'No operation' command.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop(com.aspose.ms.System.AsyncCallback callback)

        Begins 'No operation' command.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginNoop

        public final com.aspose.ms.System.IAsyncResult beginNoop(com.aspose.ms.System.AsyncCallback callback,
                                                  Object state)

        Begins 'No operation' command.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endNoop

        public final void endNoop(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • noop

        public void noop(IConnection connection)

        'No operation' command

        Specified by:
        noop in class EmailClient
        Parameters:
        connection - Connection to a server
      • noop

        public void noop()

        'No operation' command

        Specified by:
        noop in class EmailClient
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         int sequenceNumber,
                                                         OutputStream outputStream)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         int sequenceNumber,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         int sequenceNumber,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback,
                                                         Object state)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         String uniqueId,
                                                         OutputStream outputStream)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         String uniqueId,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(IConnection connection,
                                                         String uniqueId,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback,
                                                         Object state)

        Begins SaveMessage operation asynchronously

        Parameters:
        connection - Connection to a server
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(int sequenceNumber,
                                                         OutputStream outputStream)

        Begins SaveMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(int sequenceNumber,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback)

        Begins SaveMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(int sequenceNumber,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback,
                                                         Object state)

        Begins SaveMessage operation asynchronously

        Parameters:
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(String uniqueId,
                                                         OutputStream outputStream)

        Begins SaveMessage operation asynchronously

        Parameters:
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(String uniqueId,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback)

        Begins SaveMessage operation asynchronously

        Parameters:
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginSaveMessage

        public final com.aspose.ms.System.IAsyncResult beginSaveMessage(String uniqueId,
                                                         OutputStream outputStream,
                                                         com.aspose.ms.System.AsyncCallback callback,
                                                         Object state)

        Begins SaveMessage operation asynchronously

        Parameters:
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endSaveMessage

        public final void endSaveMessage(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • saveMessage

        public final void saveMessage(IConnection connection,
                       String uniqueId,
                       OutputStream outputStream)

        Fetches and save the message as a stream

        Parameters:
        connection - Connection to a server
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
      • saveMessage

        public final void saveMessage(IConnection connection,
                       String uniqueId,
                       String fileName)

        Fetches and save the message into a file

        Parameters:
        connection - Connection to a server
        uniqueId - The unique Id of the message
        fileName - File name for message
      • saveMessage

        public final void saveMessage(IConnection connection,
                       int sequenceNumber,
                       OutputStream outputStream)

        Fetches and save the message as a stream

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
      • saveMessage

        public final void saveMessage(IConnection connection,
                       int sequenceNumber,
                       String fileName)

        Fetches and save the message into a file

        Parameters:
        connection - Connection to a server
        sequenceNumber - The sequence number of the message
        fileName - File name for message
      • saveMessage

        public final void saveMessage(String uniqueId,
                       OutputStream outputStream)

        Fetches and save the message as a stream

        Parameters:
        uniqueId - The unique Id of the message
        outputStream - Stream where message will be saved
      • saveMessage

        public final void saveMessage(String uniqueId,
                       String fileName)

        Fetches and save the message into a file

        Parameters:
        uniqueId - The unique Id of the message
        fileName - File name for message
      • saveMessage

        public final void saveMessage(int sequenceNumber,
                       OutputStream outputStream)

        Fetches and save the message as a stream

        Parameters:
        sequenceNumber - The sequence number of the message
        outputStream - Stream where message will be saved
      • saveMessage

        public final void saveMessage(int sequenceNumber,
                       String fileName)

        Fetches and save the message into a file

        Parameters:
        sequenceNumber - The sequence number of the message
        fileName - File name for message
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages(IConnection connection)

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        connection - Connection to a server
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages(IConnection connection,
                                                              com.aspose.ms.System.AsyncCallback callback)

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages(IConnection connection,
                                                              com.aspose.ms.System.AsyncCallback callback,
                                                              Object state)

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        connection - Connection to a server
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages()

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages(com.aspose.ms.System.AsyncCallback callback)

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • beginUndeleteMessages

        public final com.aspose.ms.System.IAsyncResult beginUndeleteMessages(com.aspose.ms.System.AsyncCallback callback,
                                                              Object state)

        Begins undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        callback - References a method to be called when a corresponding asynchronous operation completes.
        state - The state.
        Returns:
        IAsyncResult that represents the status of an asynchronous operation.
      • endUndeleteMessages

        public final void endUndeleteMessages(com.aspose.ms.System.IAsyncResult asyncResult)

        Waits for the asynchronous operation to complete.

        Parameters:
        asyncResult - The reference to the pending asynchronous request to wait for.
      • undeleteMessages

        public final void undeleteMessages(IConnection connection)

        Undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.

        Parameters:
        connection - Connection to a server
      • undeleteMessages

        public final void undeleteMessages()

        Undeletes the messages. If any messages have been marked as deleted by the POP3 server, they are unmarked.