ui: add "is:" alias for "flags:" query

jmap
Manos Pitsidianakis 2019-11-11 22:48:39 +02:00
parent 6ce88667c0
commit 35e34d1c09
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 26 additions and 23 deletions

View File

@ -144,7 +144,10 @@ pub mod query_parser {
fn flags<'a>() -> impl Parser<'a, Query> {
move |input| {
whitespace_wrap(match_literal_anycase("flags:"))
whitespace_wrap(either(
match_literal_anycase("flags:"),
match_literal_anycase("is:"),
))
.parse(input)
.and_then(|(rest, _)| {
map(one_or_more(pred(any_char, |c| *c != ' ')), |chars| {