Name

Package javax.mail.search

Synopsis

The JavaMail Folder class includes a search() method that can return an array of messages matching a specified set of search criteria. The search criteria are defined by a SearchTerm object, which implements a method named match() that returns true or false, depending on whether the message matches the search criteria. There are a number of SearchTerm objects as well, including terms that aggregate other terms, all of which are defined in the javax.mail.search package.

Classes

  • SearchTerm

    • AddressTerm

      • FromTerm

      • RecipientTerm

    • AndTerm

    • ComparisonTerm

      • DateTerm

        • ReceivedDateTerm

        • SentDateTerm

      • IntegerComparisonTerm

        • MessageNumberTerm

        • SizeTerm

    • FlagTerm

    • NotTerm

    • OrTerm

    • StringTerm

      • AddressStringTerm

        • FromStringTerm

        • RecipientStringTerm

      • BodyTerm

      • HeaderTerm

      • MessageIDTerm

      • SubjectTerm

Exceptions

  • SearchException

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.