pub enum SearchKey {
}Expand description
Parsed IMAP SEARCH key.
Variants§
All
ALL — match every message in the mailbox.
Seen
SEEN — messages with the \Seen flag.
Unseen
UNSEEN — messages without \Seen.
Flagged
FLAGGED — messages with \Flagged.
Unflagged
UNFLAGGED — messages without \Flagged.
Answered
ANSWERED — messages with \Answered.
Unanswered
UNANSWERED — messages without \Answered.
Deleted
DELETED — messages with \Deleted.
Undeleted
UNDELETED — messages without \Deleted.
Draft
DRAFT — messages with \Draft.
Undraft
UNDRAFT — messages without \Draft.
Recent
RECENT — messages with \Recent (per-session).
From(String)
FROM <string> — substring match on the From header.
To(String)
TO <string> — substring match on the To header.
Subject(String)
SUBJECT <string> — substring match on the Subject header.
Text(String)
TEXT <string> — substring match on headers + body.
Body(String)
BODY <string> — substring match on body only.
Since(i64)
SINCE <date> — internal date on or after (epoch seconds).
Before(i64)
BEFORE <date> — internal date strictly before (epoch seconds).
On(i64)
ON <date> — internal date matches that day (epoch seconds, start of day).
Uid(String)
UID <sequence-set> — match specific UIDs.