public class Pop3MailReceiver extends MailReceiver
MailReceiver
for POP3.MailReceiver.Module
mailSettings, pendingDeletion
Modifier and Type | Method and Description |
---|---|
int[] |
fetchMessage(BufferedReader reader) |
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, IOException
handleEmails
in class MailReceiver
async
- determines if processing messages should happen asynchronouslyMailTransferException
- in case of a known transport failureIOException
- in case of a low-level transport failurepublic final int[] fetchMessage(BufferedReader reader) throws IOException
IOException