Class ImapMailReceiver

java.lang.Object
com.google.gerrit.server.mail.receive.MailReceiver
com.google.gerrit.server.mail.receive.ImapMailReceiver
All Implemented Interfaces:
LifecycleListener, EventListener

public class ImapMailReceiver extends MailReceiver
  • Method Details

    • 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