public interface IMAPCallback
| 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.
|
void alert(java.lang.String message)
message - the message textvoid capability(java.util.List<java.lang.String> capabilities)
capabilities - the new capabilitiesvoid exists(int messages)
messages - the number of messagesvoid recent(int messages)
messages - the number of messagesvoid expunge(int message)
message - the message numbervoid fetch(int message, java.util.List<FetchDataItem> data)
message - the message numberdata - the message datavoid flags(java.util.List<java.lang.String> flags)
void permanentflags(java.util.List<java.lang.String> flags)
void firstUnseen(int message)
void unseen(int messages)
void uidvalidity(long uidvalidity)
void uidnext(long uid)
void readWrite()
void readOnly()
void tryCreate()
void list(java.util.List<java.lang.String> attributes, java.lang.String delimiter, java.lang.String mailbox)
attributes - the mailbox attributesdelimiter - the mailbox hierarchy delimitermailbox - the mailbox namevoid search(java.util.List<java.lang.Integer> results)
results - the search results. For an ordinary search these are
message sequence numbers; for a UID search they are UIDs.void namespace(Namespace personal, Namespace otherUsers, Namespace shared)
personal - the server's Personal namespaceotherUsers - the Other Users' namespaceshared - the Shared namespacevoid 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)
quotaRoot - the quota rootcurrentUsage - current usage by resourcelimit - limits of each resource2087void quotaroot(java.lang.String mailbox, java.util.List<java.lang.String> quotaRoots)
mailbox - the mailboxquotaRoots - the quota roots for the mailbox2087void acl(java.lang.String mailbox, java.util.Map<java.lang.String,java.lang.String> rights)
mailbox - the mailbox namerights - the identifier-rights pairs4314void listrights(java.lang.String mailbox, java.lang.String identifier, java.lang.String required, java.util.List<java.lang.String> optional)
mailbox - the mailbox nameidentifier - the identifierrequired - the required rights for this identifierrights - the list of optional rights for this identifier4314void myrights(java.lang.String mailbox, java.lang.String rights)
mailbox - the mailbox namerights - the rights for the current user4314void appenduid(long uidvalidity, long uid)
uidvalidity - uidvalidity of the destination mailboxuid - uid of the appended message in the destination mailbox2359void copyuid(long uidvalidity, UIDSet source, UIDSet destination)
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 mailbox2359void uidnotsticky()
2359