-
Class Summary Class Description AddressStringTerm This abstract class implements string comparisons for Message addresses.AddressTerm This class implements Message Address comparisons.AndTerm This class implements the logical AND operator on individual SearchTerms.BodyTerm This class implements searches on a message body.ComparisonTerm This class models the comparison operator.DateTerm This class implements comparisons for DatesFlagTerm This class implements comparisons for Message Flags.FromStringTerm This class implements string comparisons for the From Address header.FromTerm This class implements comparisons for the From Address header.HeaderTerm This class implements comparisons for Message headers.IntegerComparisonTerm This class implements comparisons for integers.MessageIDTerm This term models the RFC822 "MessageId" - a message-id for Internet messages that is supposed to be unique per message.MessageNumberTerm This class implements comparisons for Message numbers.NotTerm This class implements the logical NEGATION operator.OrTerm This class implements the logical OR operator on individual SearchTerms.ReceivedDateTerm This class implements comparisons for the Message Received dateRecipientStringTerm This class implements string comparisons for the Recipient Address headers.RecipientTerm This class implements comparisons for the Recipient Address headers.SearchTerm Search criteria are expressed as a tree of search-terms, forming a parse-tree for the search expression.SentDateTerm This class implements comparisons for the Message SentDate.SizeTerm This class implements comparisons for Message sizes.StringTerm This class implements the match method for Strings.SubjectTerm This class implements comparisons for the message Subject header. -
Exception Summary Exception Description SearchException The exception thrown when a Search expression could not be handled.
Package javax.mail.search Description
search
method on
javax.mail.Folder
.
See SearchTerm
.
Note that the exact search capabilities depend on the protocol, provider, and server in use. For the POP3 protocol, all searching is done on the client side using the JavaMail classes. For IMAP, all searching is done on the server side and is limited by the search capabilities of the IMAP protocol and the IMAP server being used. For example, IMAP date based searches have only day granularity.
In general, all of the string patterns supported by search terms are just simple strings; no regular expressions are supported.
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/mail/search/package-summary.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.