|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecti2p.susi.webmail.MailCache
class MailCache
Nested Class Summary | |
---|---|
static class |
MailCache.FetchMode
|
Constructor Summary | |
---|---|
MailCache(POP3MailBox mailbox,
String host,
int port,
String user,
String pass)
|
Method Summary | |
---|---|
void |
delete(Collection<String> uidls)
Mark mail for deletion locally. |
void |
delete(String uidl)
Mark mail for deletion locally. |
boolean |
getMail(MailCache.FetchMode mode)
Fetch any needed data from pop3 server. |
Mail |
getMail(String uidl,
MailCache.FetchMode mode)
Fetch any needed data from pop3 server. |
String[] |
getUIDLs()
The ones known locally, which will include any known on the server, if connected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
MailCache(POP3MailBox mailbox, String host, int port, String user, String pass)
mailbox
- non-nullMethod Detail |
---|
public String[] getUIDLs()
public Mail getMail(String uidl, MailCache.FetchMode mode)
uidl
- message id to getmode
- CACHE_ONLY to not pull from pop server
public boolean getMail(MailCache.FetchMode mode)
mode
- HEADER or ALL only
public void delete(String uidl)
public void delete(Collection<String> uidls)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |