Package org.apache.commons.net.imap
Enum IMAPClient.SEARCH_CRITERIA
- All Implemented Interfaces:
- Serializable,- Comparable<IMAPClient.SEARCH_CRITERIA>
- Enclosing class:
- IMAPClient
The search criteria defined in RFC 3501.
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAll messages in the mailbox.Messages with the \Answered flag set.Messages that contain the specified string in the envelope structure's BCC field.Messages whose internal date (disregarding time and time zone) is earlier than the specified date.Messages that contain the specified string in the body of the message.Messages that contain the specified string in the envelope structure's CC field.Messages with the \Deleted flag set.Messages with the \Draft flag set.Messages with the \Flagged flag set.Messages that contain the specified string in the envelope structure's FROM field.Messages that have a header with the specified field-name (as defined in [RFC-2822]) and that contains the specified string in the text of the header (what comes after the colon).Messages with the specified keyword flag set.Messages with an [RFC-2822] size larger than the specified number of octets.Messages that have the \Recent flag set but not the \Seen flag.Messages that do not match the specified search key.Messages that do not have the \Recent flag set.Messages whose internal date (disregarding time and time zone) is within the specified date.Messages that match either search key.Messages that have the \Recent flag set.Messages that have the \Seen flag set.Messages whose [RFC-2822] Date: header (disregarding time and time zone) is earlier than the specified date.Messages whose [RFC-2822] Date: header (disregarding time and time zone) is within the specified date.Messages whose [RFC-2822] Date: header (disregarding time and time zone) is within or later than the specified date.Messages whose internal date (disregarding time and time zone) is within or later than the specified date.Messages with an [RFC-2822] size smaller than the specified number of octets.Messages that contain the specified string in the envelope structure's SUBJECT field.Messages that contain the specified string in the header or body of the message.Messages that contain the specified string in the envelope structure's TO field.Messages with unique identifiers corresponding to the specified unique identifier set.Messages that do not have the \Answered flag set.Messages that do not have the \Deleted flag set.Messages that do not have the \Draft flag set.Messages that do not have the \Flagged flag set.Messages that do not have the specified keyword flag set.Messages that do not have the \Seen flag set.
- 
Method SummaryModifier and TypeMethodDescriptionstatic IMAPClient.SEARCH_CRITERIAReturns the enum constant of this type with the specified name.static IMAPClient.SEARCH_CRITERIA[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
ALLAll messages in the mailbox.
- 
ANSWEREDMessages with the \Answered flag set.
- 
BCCMessages that contain the specified string in the envelope structure's BCC field.
- 
BEFOREMessages whose internal date (disregarding time and time zone) is earlier than the specified date.
- 
BODYMessages that contain the specified string in the body of the message.
- 
CCMessages that contain the specified string in the envelope structure's CC field.
- 
DELETEDMessages with the \Deleted flag set.
- 
DRAFTMessages with the \Draft flag set.
- 
FLAGGEDMessages with the \Flagged flag set.
- 
FROMMessages that contain the specified string in the envelope structure's FROM field.
- 
HEADERMessages that have a header with the specified field-name (as defined in [RFC-2822]) and that contains the specified string in the text of the header (what comes after the colon). If the string to search is zero-length, this matches all messages that have a header line with the specified field-name regardless of the contents.
- 
KEYWORDMessages with the specified keyword flag set.
- 
LARGERMessages with an [RFC-2822] size larger than the specified number of octets.
- 
NEWMessages that have the \Recent flag set but not the \Seen flag. This is functionally equivalent to "(RECENT UNSEEN)".
- 
NOTMessages that do not match the specified search key.
- 
OLDMessages that do not have the \Recent flag set. This is functionally equivalent to "NOT RECENT" (as opposed to "NOT NEW").
- 
ONMessages whose internal date (disregarding time and time zone) is within the specified date.
- 
ORMessages that match either search key.
- 
RECENTMessages that have the \Recent flag set.
- 
SEENMessages that have the \Seen flag set.
- 
SENTBEFOREMessages whose [RFC-2822] Date: header (disregarding time and time zone) is earlier than the specified date.
- 
SENTONMessages whose [RFC-2822] Date: header (disregarding time and time zone) is within the specified date.
- 
SENTSINCEMessages whose [RFC-2822] Date: header (disregarding time and time zone) is within or later than the specified date.
- 
SINCEMessages whose internal date (disregarding time and time zone) is within or later than the specified date.
- 
SMALLERMessages with an [RFC-2822] size smaller than the specified number of octets.
- 
SUBJECTMessages that contain the specified string in the envelope structure's SUBJECT field.
- 
TEXTMessages that contain the specified string in the header or body of the message.
- 
TOMessages that contain the specified string in the envelope structure's TO field.
- 
UIDMessages with unique identifiers corresponding to the specified unique identifier set. Sequence set ranges are permitted.
- 
UNANSWEREDMessages that do not have the \Answered flag set.
- 
UNDELETEDMessages that do not have the \Deleted flag set.
- 
UNDRAFTMessages that do not have the \Draft flag set.
- 
UNFLAGGEDMessages that do not have the \Flagged flag set.
- 
UNKEYWORDMessages that do not have the specified keyword flag set.
- 
UNSEENMessages that do not have the \Seen flag set.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-