Class SortTerm


  • public final class SortTerm
    extends Object
    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 Detail

      • ARRIVAL

        public static final SortTerm ARRIVAL
        Sort by message arrival date and time.
      • CC

        public static final SortTerm CC
        Sort by email address of first Cc recipient.
      • DATE

        public static final SortTerm DATE
        Sort by sent date and time.
      • FROM

        public static final SortTerm FROM
        Sort by first From email address.
      • REVERSE

        public static final SortTerm REVERSE
        Reverse the sort order of the following item.
      • SIZE

        public static final SortTerm SIZE
        Sort by the message size.
      • SUBJECT

        public static final SortTerm 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

        public static final SortTerm TO
        Sort by email address of first To recipient.