|
void
|
addACL(ACL acl)
Add an access control list entry to the access control list
for this folder.
|
|
synchronized
void
|
addMessageCountListener(MessageCountListener l)
Add a listener for MessageCount events on this GmailFolder.
|
|
synchronized
Message[]
|
addMessages(Message[] msgs)
Append the given messages into this folder.
|
|
void
|
addRights(ACL acl)
Add the rights specified in the ACL to the entry for the
identifier specified in the ACL.
|
|
synchronized
void
|
appendMessages(Message[] msgs)
Append the given messages into this folder.
|
|
synchronized
AppendUID[]
|
appendUIDMessages(Message[] msgs)
Append the given messages into this folder.
|
|
void
|
checkClosed()
|
|
void
|
checkExists()
|
|
void
|
checkOpened()
|
|
void
|
checkRange(int msgno)
|
|
synchronized
void
|
close(boolean expunge)
Close this folder.
|
|
synchronized
void
|
copyMessages(Message[] msgs, Folder folder)
Copy the specified messages from this folder, to the
specified destination.
|
|
synchronized
boolean
|
create(int type)
Create this folder, with the specified type.
|
|
synchronized
boolean
|
delete(boolean recurse)
Delete this folder.
|
|
Object
|
doCommand(IMAPFolder.ProtocolCommand cmd)
Execute a user-supplied IMAP command.
|
|
Object
|
doCommandIgnoreFailure(IMAPFolder.ProtocolCommand cmd)
|
|
Object
|
doOptionalCommand(String err, IMAPFolder.ProtocolCommand cmd)
|
|
Object
|
doProtocolCommand(IMAPFolder.ProtocolCommand cmd)
|
|
synchronized
boolean
|
exists()
Check whether this folder really exists on the server.
|
|
synchronized
Message[]
|
expunge(Message[] msgs)
Expunge the indicated messages, which must have been marked as DELETED.
|
|
synchronized
Message[]
|
expunge()
Expunge all messages marked as DELETED.
|
|
synchronized
void
|
fetch(Message[] msgs, FetchProfile fp)
Prefetch attributes, based on the given FetchProfile.
|
|
synchronized
void
|
forceClose()
Close this folder without waiting for the server.
|
|
ACL[]
|
getACL()
Get the access control list entries for this folder.
|
|
synchronized
String[]
|
getAttributes()
Get the attributes that the IMAP server returns with the
LIST response.
|
|
synchronized
int
|
getDeletedMessageCount()
Get the deleted message count.
|
|
synchronized
Folder
|
getFolder(String name)
Get the named subfolder.
|
|
synchronized
String
|
getFullName()
Get the fullname of this folder.
|
|
synchronized
Message
|
getMessage(int msgnum)
Get the specified message.
|
|
IMAPMessage
|
getMessageBySeqNumber(int seqnum)
Get the message object for the given sequence number.
|
|
synchronized
Message
|
getMessageByUID(long uid)
Get the Message corresponding to the given UID.
|
|
synchronized
int
|
getMessageCount()
Get the total message count.
|
|
synchronized
Message[]
|
getMessagesByUID(long[] uids)
Get the Messages specified by the given array.
|
|
synchronized
Message[]
|
getMessagesByUID(long start, long end)
Get the Messages specified by the given range.
|
|
synchronized
String
|
getName()
Get the name of this folder.
|
|
synchronized
int
|
getNewMessageCount()
Get the new message count.
|
|
synchronized
Folder
|
getParent()
Get this folder's parent.
|
|
synchronized
Flags
|
getPermanentFlags()
Return the permanent flags supported by the server.
|
|
IMAPProtocol
|
getProtocol()
Return the IMAPProtocol object for this folder.
|
|
Quota[]
|
getQuota()
Get the quotas for the quotaroot associated with this
folder.
|
|
synchronized
char
|
getSeparator()
Get the separator character.
|
|
synchronized
Message[]
|
getSortedMessages(SortTerm[] term, SearchTerm sterm)
Sort the messages in the folder according to the sort criteria.
|
|
synchronized
Message[]
|
getSortedMessages(SortTerm[] term)
Sort the messages in the folder according to the sort criteria.
|
|
synchronized
IMAPProtocol
|
getStoreProtocol()
Get this folder's Store's protocol connection.
|
|
synchronized
int
|
getType()
Get the type of this folder.
|
|
synchronized
long
|
getUID(Message message)
Get the UID for the specified message.
|
|
synchronized
long
|
getUIDNext()
Returns the predicted UID that will be assigned to the
next message that is appended to this folder.
|
|
synchronized
long
|
getUIDValidity()
Returns the UIDValidity for this folder.
|
|
synchronized
int
|
getUnreadMessageCount()
Get the unread message count.
|
|
void
|
handleResponse(Response r)
The response handler.
|
|
synchronized
boolean
|
hasNewMessages()
Check whether this folder has new messages.
|
|
void
|
idle(boolean once)
Like idle(), but if once is true, abort the
IDLE command after the first notification, to allow the caller
to process any notification synchronously.
|
|
void
|
idle()
Use the IMAP IDLE command (see
RFC 2177),
if supported by the server, to enter idle mode so that the server
can send unsolicited notifications of new messages arriving, etc.
|
|
synchronized
boolean
|
isOpen()
Check whether this connection is really open.
|
|
synchronized
boolean
|
isSubscribed()
Check whether this folder is subscribed.
|
|
void
|
keepConnectionAlive(boolean keepStoreAlive)
Issue a noop command for the connection if the connection has not been
used in more than a second.
|
|
Folder[]
|
list(String pattern)
List all subfolders matching the specified pattern.
|
|
Rights[]
|
listRights(String name)
Get all the rights that may be allowed to the given identifier.
|
|
Folder[]
|
listSubscribed(String pattern)
List all subscribed subfolders matching the specified pattern.
|
|
Rights
|
myRights()
Get the rights allowed to the currently authenticated user.
|
|
synchronized
void
|
open(int mode)
Open this folder in the given mode.
|
|
void
|
releaseProtocol(boolean returnToPool)
Release the protocol object.
|
|
synchronized
void
|
releaseStoreProtocol(IMAPProtocol p)
Release the store protocol object.
|
|
void
|
removeACL(String name)
Remove any access control list entry for the given identifier
from the access control list for this folder.
|
|
void
|
removeRights(ACL acl)
Remove the rights specified in the ACL from the entry for the
identifier specified in the ACL.
|
|
synchronized
boolean
|
renameTo(Folder f)
Rename this folder.
|
|
synchronized
Message[]
|
search(SearchTerm term)
Search whole folder for messages matching the given term.
|
|
synchronized
Message[]
|
search(SearchTerm term, Message[] msgs)
Search the folder for messages matching the given term.
|
|
synchronized
void
|
setFlags(Message[] msgs, Flags flag, boolean value)
Set the specified flags for the given array of messages.
|
|
synchronized
void
|
setGoogleMessageLabels(Message[] msgs, String[] labels, boolean value)
|
|
void
|
setQuota(Quota quota)
Set the quotas for the quotaroot specified in the quota argument.
|
|
synchronized
void
|
setSubscribed(boolean subscribe)
Subscribe/Unsubscribe this folder.
|
|
synchronized
void
|
throwClosedException(ConnectionException cex)
Throw the appropriate 'closed' exception.
|
|
Folder[]
|
xlist(String pattern)
|