Class Pop3Store
java.lang.Object
com.codename1.backend.mail.store.Pop3Store
- All Implemented Interfaces:
MailReceiver
A POP3 mailbox (RFC 1939), with STLS (RFC 2595) and UIDL.
POP3 has one folder, INBOX, and no read mark: unseenOnly is ignored
and markSeen(String) does nothing, so a reader that must not see a message
twice deletes it or remembers its uid. A delete(String) takes effect when the
session ends with QUIT in close(); a dropped connection deletes nothing.
A message larger than cn1.mail.store.maxMessageSize is read through
without being kept and listed as skipped (FetchedMail.getSkipped()).
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Signs out and closes the connection.voidDeletes a fetched message.The messages offolder(INBOXfor POP3, which has no other), in the server's order.voidDoes nothing: POP3 keeps no read mark.static Pop3StoreConnects and signs in with thecn1.mail.store.*settingsMailReceiversdocuments.
-
Method Details
-
open
Connects and signs in with thecn1.mail.store.*settingsMailReceiversdocuments.- Throws:
IOException
-
fetch
Description copied from interface:MailReceiverThe messages offolder(INBOXfor POP3, which has no other), in the server's order. WithunseenOnly, only those not yet marked seen; POP3 keeps no such mark and answers every message.- Specified by:
fetchin interfaceMailReceiver- Throws:
IOException
-
markSeen
Does nothing: POP3 keeps no read mark.- Specified by:
markSeenin interfaceMailReceiver
-
delete
Description copied from interface:MailReceiverDeletes a fetched message. POP3 removes it when the session closes cleanly; IMAP removes it at once.- Specified by:
deletein interfaceMailReceiver- Throws:
IOException
-
close
Description copied from interface:MailReceiverSigns out and closes the connection. Calling it again does nothing.- Specified by:
closein interfaceMailReceiver- Throws:
IOException
-