Class ImapMailReceiver

    • Method Detail

      • handleEmails

        public void handleEmails​(boolean async)
                          throws MailTransferException,
                                 IOException
        Opens a connection to the mail server, removes emails where deletion is pending, reads new email and closes the connection.
        Specified by:
        handleEmails in class MailReceiver
        Parameters:
        async - determines if processing messages should happen asynchronously
        Throws:
        MailTransferException - in case of a known transport failure
        IOException - in case of a low-level transport failure