public class ExchangeSession.Folder extends Object
Modifier and Type | Field and Description |
---|---|
int |
count
Folder message count.
|
String |
ctag
Folder content tag (to detect folder content changes).
|
String |
displayName
Display Name.
|
String |
etag
Folder etag (to detect folder object changes).
|
String |
folderClass
Folder class (PR_CONTAINER_CLASS).
|
String |
folderPath
Logical (IMAP) folder path.
|
boolean |
hasChildren
true if folder has subfolders (DAV:hassubs).
|
ExchangeSession.MessageList |
messages
Folder message list, empty before loadMessages call.
|
boolean |
noInferiors
true if folder has no subfolders (DAV:nosubs).
|
int |
recent
recent count
|
long |
uidNext
Next IMAP uid
|
int |
unreadCount
Folder unread message count.
|
Constructor and Description |
---|
Folder() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
drop cached message
|
int |
count()
Folder message count.
|
protected void |
fixUids(ExchangeSession.MessageList messages)
Restore previous uids changed by a PROPPATCH (flag change).
|
ExchangeSession.Message |
get(int index)
Get message at index.
|
String |
getFlags()
Get IMAP folder flags.
|
TreeMap<Long,String> |
getImapFlagMap()
Get current folder messages imap uids and flags
|
long |
getUidNext()
Compute IMAP uidnext.
|
boolean |
isCalendar()
Calendar folder flag.
|
boolean |
isContact()
Contact folder flag.
|
boolean |
isSpecial()
Special folder flag (Sent, Drafts, Trash, Junk).
|
boolean |
isTask()
Task folder flag.
|
void |
loadMessages()
Load folder messages.
|
ExchangeSession.MessageList |
searchMessages(ExchangeSession.Condition condition)
Search messages in folder matching query.
|
public String folderPath
public String displayName
public String folderClass
public int count
public int unreadCount
public boolean hasChildren
public boolean noInferiors
public String ctag
public String etag
public long uidNext
public int recent
public ExchangeSession.MessageList messages
public String getFlags()
public boolean isSpecial()
public void loadMessages() throws IOException
IOException
- on errorpublic ExchangeSession.MessageList searchMessages(ExchangeSession.Condition condition) throws IOException
condition
- search queryIOException
- on errorprotected void fixUids(ExchangeSession.MessageList messages)
messages
- message listpublic int count()
public long getUidNext()
public ExchangeSession.Message get(int index)
index
- message indexpublic TreeMap<Long,String> getImapFlagMap()
public boolean isCalendar()
public boolean isContact()
public boolean isTask()
public void clearCache()
Copyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.