pub enum Pattern {
Show 39 variants
All(Vec<Pattern>),
Any(Vec<Pattern>),
Not(Box<Pattern>),
From(Matcher),
Subject(Matcher),
Body(Matcher),
To(Matcher),
Cc(Matcher),
Recipient(Matcher),
Sender(Matcher),
Header(Matcher),
MessageId(Matcher),
References(Matcher),
Whole(Matcher),
Label(Matcher),
FromOrTo(Matcher),
Read,
Old,
Replied,
Subscribed,
Thread(Box<Pattern>),
Parent(Box<Pattern>),
Child(Box<Pattern>),
Collapsed,
Unreferenced,
Date {
min: Option<i64>,
max: Option<i64>,
},
Received {
min: Option<i64>,
max: Option<i64>,
},
Number {
min: Option<Bound>,
max: Option<Bound>,
},
Size {
min: Option<u64>,
max: Option<u64>,
},
Duplicate,
New,
Flagged,
Deleted,
Unread,
Tagged,
ToMe,
FromMe,
ToList,
Default(Matcher),
}Variants§
All(Vec<Pattern>)
Any(Vec<Pattern>)
Not(Box<Pattern>)
From(Matcher)
Subject(Matcher)
Body(Matcher)
To(Matcher)
Cc(Matcher)
Recipient(Matcher)
~C: any To or Cc address.
Sender(Matcher)
~e: the Sender header (read from disk on demand).
Header(Matcher)
~h: any header line, as Name: value text (read from disk).
MessageId(Matcher)
~i: the Message-ID.
References(Matcher)
~x: any References / In-Reply-To id.
Whole(Matcher)
~B: any header or the body (the whole message text).
Label(Matcher)
~y: the X-Label header.
FromOrTo(Matcher)
~L: an address in From, To or Cc.
Read
~R: read (seen).
Old
~O: old — unread but not new this session.
Replied
~Q: replied to (the Answered flag).
Subscribed
~u: addressed to a subscribed mailing list.
Thread(Box<Pattern>)
~(P): some message in the same thread matches P.
Parent(Box<Pattern>)
~<(P): the immediate parent matches P.
Child(Box<Pattern>)
~>(P): an immediate child matches P.
Collapsed
~v: the message heads a collapsed thread.
Unreferenced
~$: no parent and no children, in a threaded index.
Date
~d: epoch-second bounds, min inclusive, max exclusive.
Received
~r: the same bounds against the file’s delivery time.
Number
~m: index-number range, inclusive, over the numbering on
screen; . is the selected message and $ the last one.
Size
~z: size in bytes, min inclusive, max inclusive.
Duplicate
~=: the Message-ID occurs more than once in the mailbox.
New
Flagged
Deleted
Unread
Tagged
ToMe
~p: addressed to one of my addresses.
FromMe
~P: sent by me (From is one of my addresses).
ToList
~l: addressed to a known mailing list.
Default(Matcher)
Bare word: matches subject or from.
Trait Implementations§
impl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl !Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.