public class ImapMailReceiver extends MailReceiver
MailReceiver.Module
mailSettings, pendingDeletion
Modifier and Type | Method and Description |
---|---|
void |
handleEmails(boolean async)
Opens a connection to the mail server, removes emails where deletion is pending, reads new
email and closes the connection.
|
dispatchMailProcessor, requestDeletion, start, stop
public void handleEmails(boolean async) throws MailTransferException, java.io.IOException
handleEmails
in class MailReceiver
async
- determines if processing messages should happen asynchronouslyMailTransferException
- in case of a known transport failurejava.io.IOException
- in case of a low-level transport failure