public class IMAPAdapter extends java.lang.Object implements IMAPCallback
Constructor and Description |
---|
IMAPAdapter() |
IMAPAdapter(IMAPCallback proxy) |
Modifier and Type | Method and Description |
---|---|
void |
acl(java.lang.String mailbox,
java.util.Map<java.lang.String,java.lang.String> rights)
Notification of access control rights.
|
void |
alert(java.lang.String message)
Notification of a user alert.
|
void |
appenduid(long uidvalidity,
long uid)
Indicates that the message has been appended to the destination
mailbox.
|
void |
capability(java.util.List<java.lang.String> capabilities)
Notification of capabilities change.
|
void |
copyuid(long uidvalidity,
UIDSet source,
UIDSet destination)
Indicates that the message(s) have been copied to the destination
mailbox with the stated UID(s).
|
void |
exists(int messages)
Notification of the number of messages in a mailbox.
|
void |
expunge(int message)
Notification that a given messages has been permanently deleted.
|
void |
fetch(int message,
java.util.List<FetchDataItem> data)
Notification of data specific to a message
|
void |
firstUnseen(int message)
The message sequence number of the first unseen message in the mailbox.
|
void |
flags(java.util.List<java.lang.String> flags)
Notification of the flags applicable for the associated mailbox.
|
void |
list(java.util.List<java.lang.String> attributes,
java.lang.String delimiter,
java.lang.String mailbox)
Notification of a list entry.
|
void |
listrights(java.lang.String mailbox,
java.lang.String identifier,
java.lang.String required,
java.util.List<java.lang.String> optional)
Notification of a list of rights.
|
void |
myrights(java.lang.String mailbox,
java.lang.String rights)
Notification of the user's rights with respect to the mailbox.
|
void |
namespace(Namespace personal,
Namespace otherUsers,
Namespace shared)
Notification of a namespace result.
|
void |
permanentflags(java.util.List<java.lang.String> flags)
Notification of the permanent flags applicable for the associated
mailbox.
|
void |
quota(java.lang.String quotaRoot,
java.util.Map<java.lang.String,java.lang.Integer> currentUsage,
java.util.Map<java.lang.String,java.lang.Integer> limit)
Notification of a quota.
|
void |
quotaroot(java.lang.String mailbox,
java.util.List<java.lang.String> quotaRoots)
Notification of the quota roots for a mailbox.
|
void |
readOnly()
Indicates that the mailbox was opened read-only.
|
void |
readWrite()
Indicates that the mailbox was opened read-write.
|
void |
recent(int messages)
Notification of the number of messages with the recent flag set.
|
void |
search(java.util.List<java.lang.Integer> results)
Notification of a search result.
|
void |
tryCreate()
Indicates that the mailbox does not exist yet but could be created.
|
void |
uidnext(long uid)
The next unique identifier value.
|
void |
uidnotsticky()
Indicates that the server does not support persistent UIDs, and APPEND
and COPY will not return APPENDUID or COPYUID responses.
|
void |
uidvalidity(long uidvalidity)
The unique identifier validity value.
|
void |
unseen(int messages)
The number of messages which do not have the \Seen flag set.
|
public IMAPAdapter()
public IMAPAdapter(IMAPCallback proxy)
public void alert(java.lang.String message)
IMAPCallback
alert
in interface IMAPCallback
message
- the message textpublic void capability(java.util.List<java.lang.String> capabilities)
IMAPCallback
capability
in interface IMAPCallback
capabilities
- the new capabilitiespublic void exists(int messages)
IMAPCallback
exists
in interface IMAPCallback
messages
- the number of messagespublic void recent(int messages)
IMAPCallback
recent
in interface IMAPCallback
messages
- the number of messagespublic void expunge(int message)
IMAPCallback
expunge
in interface IMAPCallback
message
- the message numberpublic void fetch(int message, java.util.List<FetchDataItem> data)
IMAPCallback
fetch
in interface IMAPCallback
message
- the message numberdata
- the message datapublic void flags(java.util.List<java.lang.String> flags)
IMAPCallback
flags
in interface IMAPCallback
public void permanentflags(java.util.List<java.lang.String> flags)
IMAPCallback
permanentflags
in interface IMAPCallback
public void firstUnseen(int message)
IMAPCallback
firstUnseen
in interface IMAPCallback
public void unseen(int messages)
IMAPCallback
unseen
in interface IMAPCallback
public void uidvalidity(long uidvalidity)
IMAPCallback
uidvalidity
in interface IMAPCallback
public void uidnext(long uid)
IMAPCallback
uidnext
in interface IMAPCallback
public void readWrite()
IMAPCallback
readWrite
in interface IMAPCallback
public void readOnly()
IMAPCallback
readOnly
in interface IMAPCallback
public void tryCreate()
IMAPCallback
tryCreate
in interface IMAPCallback
public void list(java.util.List<java.lang.String> attributes, java.lang.String delimiter, java.lang.String mailbox)
IMAPCallback
list
in interface IMAPCallback
attributes
- the mailbox attributesdelimiter
- the mailbox hierarchy delimitermailbox
- the mailbox namepublic void search(java.util.List<java.lang.Integer> results)
IMAPCallback
search
in interface IMAPCallback
results
- the search results. For an ordinary search these are
message sequence numbers; for a UID search they are UIDs.public void namespace(Namespace personal, Namespace otherUsers, Namespace shared)
IMAPCallback
namespace
in interface IMAPCallback
personal
- the server's Personal namespaceotherUsers
- the Other Users' namespaceshared
- the Shared namespacepublic void quota(java.lang.String quotaRoot, java.util.Map<java.lang.String,java.lang.Integer> currentUsage, java.util.Map<java.lang.String,java.lang.Integer> limit)
IMAPCallback
quota
in interface IMAPCallback
quotaRoot
- the quota rootcurrentUsage
- current usage by resourcelimit
- limits of each resource2087
public void quotaroot(java.lang.String mailbox, java.util.List<java.lang.String> quotaRoots)
IMAPCallback
quotaroot
in interface IMAPCallback
mailbox
- the mailboxquotaRoots
- the quota roots for the mailbox2087
public void acl(java.lang.String mailbox, java.util.Map<java.lang.String,java.lang.String> rights)
IMAPCallback
acl
in interface IMAPCallback
mailbox
- the mailbox namerights
- the identifier-rights pairs4314
public void listrights(java.lang.String mailbox, java.lang.String identifier, java.lang.String required, java.util.List<java.lang.String> optional)
IMAPCallback
listrights
in interface IMAPCallback
mailbox
- the mailbox nameidentifier
- the identifierrequired
- the required rights for this identifier4314
public void myrights(java.lang.String mailbox, java.lang.String rights)
IMAPCallback
myrights
in interface IMAPCallback
mailbox
- the mailbox namerights
- the rights for the current user4314
public void appenduid(long uidvalidity, long uid)
IMAPCallback
appenduid
in interface IMAPCallback
uidvalidity
- uidvalidity of the destination mailboxuid
- uid of the appended message in the destination mailbox2359
public void copyuid(long uidvalidity, UIDSet source, UIDSet destination)
IMAPCallback
copyuid
in interface IMAPCallback
uidvalidity
- uidvalidity of the destination mailboxsource
- UID(s) of the message(s) in the source mailboxdestination
- UID(s) of the message(s) in the destination mailbox2359
public void uidnotsticky()
IMAPCallback
uidnotsticky
in interface IMAPCallback
2359