public class Retriever extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOCOL_IMAP |
static String |
PROTOCOL_IMAPS |
static String |
PROTOCOL_POP3 |
static String |
PROTOCOL_POP3S |
| Constructor and Description |
|---|
Retriever(AbstractServer server)
Creates a retriever object for a particular server
Example: GreenMail greenMail = new GreenMail(); ... Retriever r = new Retriever(greenMail.getPop3()) ; r.getMessages("bill@microsoft.com"); This will fetch all available messages for Billy using POP3. |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Message[] |
getMessages(String account) |
javax.mail.Message[] |
getMessages(String account,
String password) |
void |
logout() |
public static final String PROTOCOL_POP3
public static final String PROTOCOL_POP3S
public static final String PROTOCOL_IMAP
public static final String PROTOCOL_IMAPS
public Retriever(AbstractServer server)
server - Copyright © 2005–2017 Alfresco Software. All rights reserved.