pub enum SearchKey {
}Expand description
A single search criterion in an IMAP SEARCH command.
Variants§
From(String)
FROM — messages whose From header contains the substring.
To(String)
TO — messages whose To header contains the substring.
Subject(String)
SUBJECT — messages whose Subject header contains the substring.
Body(String)
BODY — messages whose body contains the substring.
Text(String)
TEXT — messages whose header or body contains the substring.
All
ALL — every message in the mailbox.
Answered
ANSWERED — messages with the \Answered flag.
Deleted
DELETED — messages with the \Deleted flag.
Draft
DRAFT — messages with the \Draft flag.
Flagged
FLAGGED — messages with the \Flagged flag.
Recent
RECENT — messages with the \Recent flag.
Seen
SEEN — messages with the \Seen flag.
Unanswered
UNANSWERED — messages without the \Answered flag.
Undeleted
UNDELETED — messages without the \Deleted flag.
Undraft
UNDRAFT — messages without the \Draft flag.
Unflagged
UNFLAGGED — messages without the \Flagged flag.
Unseen
UNSEEN — messages without the \Seen flag.
And(Vec<SearchKey>)
Conjunction — all of the contained keys must match (space-joined).
Or(Box<SearchKey>, Box<SearchKey>)
OR — either of the two keys must match.
Not(Box<SearchKey>)
NOT — the contained key must not match.