Package com.sun.mail.imap
Class SortTerm
java.lang.Object
com.sun.mail.imap.SortTerm
A particular sort criteria, as defined by
RFC 5256.
Sort criteria are used with the
getSortedMessages
method.
Multiple sort criteria are specified in an array with the order in
the array specifying the order in which the sort criteria are applied.- Since:
- JavaMail 1.4.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SortTerm
Sort by message arrival date and time.static final SortTerm
Sort by email address of first Cc recipient.static final SortTerm
Sort by sent date and time.static final SortTerm
Sort by first From email address.static final SortTerm
Reverse the sort order of the following item.static final SortTerm
Sort by the message size.static final SortTerm
Sort by the base subject text.static final SortTerm
Sort by email address of first To recipient. -
Method Summary
-
Field Details
-
ARRIVAL
Sort by message arrival date and time. -
CC
Sort by email address of first Cc recipient. -
DATE
Sort by sent date and time. -
FROM
Sort by first From email address. -
REVERSE
Reverse the sort order of the following item. -
SIZE
Sort by the message size. -
SUBJECT
Sort by the base subject text. Note that the "base subject" is defined by RFC 5256 and doesn't include items such as "Re:" in the subject header. -
TO
Sort by email address of first To recipient.
-
-
Method Details