public class Pop3MailReceiver extends MailReceiver
MailReceiver
for POP3.MailReceiver.Module
mailSettings, pendingDeletion
Modifier and Type | Method and Description |
---|---|
int[] |
fetchMessage(java.io.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, 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 failurepublic final int[] fetchMessage(java.io.BufferedReader reader) throws java.io.IOException
java.io.IOException