Package jakarta.mail.search
Class MessageIDTerm
java.lang.Object
jakarta.mail.search.SearchTerm
jakarta.mail.search.StringTerm
jakarta.mail.search.MessageIDTerm
- All Implemented Interfaces:
Serializable
This term models the RFC822 "MessageId" - a message-id for
Internet messages that is supposed to be unique per message.
Clients can use this term to search a folder for a message given
its MessageId.
The MessageId is represented as a String.
- Author:
- Bill Shannon, John Mani
- See Also:
-
Field Summary
Fields inherited from class jakarta.mail.search.StringTerm
ignoreCase, pattern
-
Constructor Summary
-
Method Summary
Methods inherited from class jakarta.mail.search.StringTerm
getIgnoreCase, getPattern, hashCode, match
-
Constructor Details
-
MessageIDTerm
Constructor.- Parameters:
msgid
- the msgid to search for
-
-
Method Details
-
match
The match method.- Specified by:
match
in classSearchTerm
- Parameters:
msg
- the match is applied to this Message's Message-ID header- Returns:
- true if the match succeeds, otherwise false
-
equals
Equality comparison.- Overrides:
equals
in classStringTerm
-