com.jivesoftware.forum.mail
Class POP3MailStrategy
java.lang.Object
com.jivesoftware.forum.mail.POP3MailStrategy
- All Implemented Interfaces:
- CheckMailStrategy
public class POP3MailStrategy
- extends java.lang.Object
- implements CheckMailStrategy
Mail checking strategy which uses the POP3 protocol to check an account and does not rely on the presence of
IMAP specific features, like message flags indicating which messages have been seen. This strategy greedily pulls down message
data since the underlying Store
and Folder
must be closed immediately after checking the inbox in order
to flush changes to message flags to the server.
Method Summary |
EmailBatch |
checkForMessages(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password,
boolean useSSL)
Returns a list of InboundMessage objects representing new messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POP3MailStrategy
public POP3MailStrategy(EmailIntegrationProvider provider)
checkForMessages
public EmailBatch checkForMessages(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password,
boolean useSSL)
throws javax.mail.MessagingException,
java.io.IOException
- Returns a list of
InboundMessage
objects representing new messages.
- Specified by:
checkForMessages
in interface CheckMailStrategy
- Parameters:
host
- the address of the IMAP server.user
- the username of the account.password
- the password of the account.useSSL
- set to true to enable ssl.
- Returns:
- a list of
InboundMessage
objects representing new messages.
- Throws:
javax.mail.MessagingException
java.io.IOException
Copyright © 1999-2006 Jive Software.