public interface UIDFolder
| Modifier and Type | Interface and Description |
|---|---|
static class |
UIDFolder.FetchProfileItem
Special profile item used for fetching UID information.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
LASTUID
A special value than can be passed as the
end parameter to
Folder.getMessages(int, int) to indicate the last message in this folder. |
| Modifier and Type | Method and Description |
|---|---|
Message |
getMessageByUID(long uid)
Retrieve a message using the UID rather than the
message sequence number.
|
Message[] |
getMessagesByUID(long[] ids)
Retrieve a set of messages by explicit UIDs.
|
Message[] |
getMessagesByUID(long start,
long end)
Get a series of messages using a UID range.
|
long |
getUID(Message message)
Retrieve the UID for a message from this Folder.
|
long |
getUIDValidity()
Get the UID validity value for this Folder.
|
static final long LASTUID
end parameter to
Folder.getMessages(int, int) to indicate the last message in this folder.long getUIDValidity()
throws MessagingException
MessagingExceptionMessage getMessageByUID(long uid) throws MessagingException
uid - The target UID.MessagingExceptionMessage[] getMessagesByUID(long start, long end) throws MessagingException
start - The start of the UID range.end - The end of the UID range. The special value
LASTUID can be used to request all messages up
to the last UID.MessagingExceptionMessage[] getMessagesByUID(long[] ids) throws MessagingException
ids - An array of UID values to be retrieved.MessagingExceptionlong getUID(Message message) throws MessagingException
message - The target message.MessagingExceptionCopyright © 2013. All Rights Reserved.