From b4fc92008adc6e35690a94a315fbf16ae89b97cc Mon Sep 17 00:00:00 2001 From: wwp Date: Thu, 21 Sep 2023 15:35:42 +0200 Subject: [PATCH] Updated quicksearch mini-doc in README file, sorted QA help list in dialog. --- README | 113 +++++++++++++++++++++++++++----------------------- src/gtk/quicksearch.c | 2 +- 2 files changed, 63 insertions(+), 52 deletions(-) diff --git a/README b/README index 5751c5ca8..c05424657 100644 --- a/README +++ b/README @@ -401,57 +401,68 @@ https://www.claws-mail.org/plugins.php powerful patterns for message selections. Mutt users will immediately recognise most of the available patterns: - Pattern Parameter Selects - ---------------------------------------------------- - a all messages - ag # messages whose age is greater than # - al # messages whose age is lower than # - b S messages which contain S in the message body - B S messages which contain S in the whole message - c S messages carbon-copied to S - C S message is either to: or cc: to S - D deleted messages - e S messages which contain S in the Sender field - E S true if execute "S" succeeds - f S messages originating from user S - F forwarded messages - h S messages which contain S in any header name or value - H S messages which contain S in the value of any header - i S messages which contain S in Message-Id header - I S messages which contain S in inreplyto header - k # messages which are marked with color # - L locked messages - n S messages which are in newsgroup S - N new messages - O old messages - r messages which have been replied to - R read messages - s S messages which contain S in subject - se # messages whose score is equal to # - sg # messages whose score is greater than # - sl # messages whose score is lower than # - Se # messages whose size is equal to # - Sg # messages whose size is greater than # - Ss # messages whose size is smaller than # - t S messages which have been sent to S - tg S messages with tags containing S - tagged messages which are tagged - T marked messages - U unread messages - x S messages which contain S in References header - x "cmd args" messages returning 0 when passed to command - - %F is message file - y S messages which contain S in X-Label header - - & logical AND operator - | logical OR operator - ! or ~ logical NOT operator - % case sensitive search - - all filtering expressions are allowed - - # means number - S means regexp string + Pattern Parameter Selects + -------------------------------------------------------------------------- + a all messages + ag # messages whose age is greater than # days + al # messages whose age is lower than # days + agh # messages whose age is greather than # hours + alh # messages whose age is lower than # hours + b S messages which contain S in the message body + B S messages which contain S in the whole message + c S messages carbon-copied to S + C S message is either To: or Cc: to S + D deleted messages + da "YYYY-MM-dd HH:mm:ss" messages whose date is after requested date + (time is optional) + db "YYYY-MM-dd HH:mm:ss" messages whose date is before requested date + (time is optional) + e S messages which contain S in the Sender field + E S true if execute "S" succeeds + f S messages originating from user S + F forwarded messages + h S messages which contain S in any header name + or value + H S messages which contain S in the value of + any header + ha messages which have attachments + i S messages which contain S in Message-Id header + I S messages which contain S in In-Reply-To + header + k # messages which are marked with color # + L locked messages + n S messages which are in newsgroup S + N new messages + O old messages + p incomplete messages (not entirely downloaded) + r messages which have been replied to + R read messages + s S messages which contain S in subject + se # messages whose score is equal to # points + sg # messages whose score is greater than # points + sl # messages whose score is lower than # points + Se # messages whose size is equal to # bytes + Sg # messages whose size is greater than # bytes + Ss # messages whose size is smaller than # bytes + t S messages which have been sent to S + tg S messages with tags contain S + tagged messages which have tag(s) + T marked messages + U unread messages + v H V messages which contain V in header H + x S messages which contain S in References header + x "cmd args" messages returning 0 when passed to command + - %F is message file + + & logical AND operator + | logical OR operator + ! or ~ logical NOT operator + % case sensitive search + # match using regular expressions instead of + substring search + + all filtering expressions are allowed, but cannot be mixed + through logical operators with the expressions above It is possible to use logical operators AND (&), OR (|) and NOT (! or ~). Case sensitive search is achieved with %. diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c index 75ad58464..bc1e3e069 100644 --- a/src/gtk/quicksearch.c +++ b/src/gtk/quicksearch.c @@ -422,9 +422,9 @@ static gchar *search_descr_strings[] = { "E S", N_("true if execute \"S\" succeeds"), "f S", N_("messages originating from user S"), "F", N_("forwarded messages"), - "ha", N_("messages which have attachments"), "h S", N_("messages which contain S in any header name or value"), "H S", N_("messages which contain S in the value of any header"), + "ha", N_("messages which have attachments"), "i S", N_("messages which contain S in Message-ID header"), "I S", N_("messages which contain S in In-Reply-To header"), "k #", N_("messages which are marked with color #"), -- 2.11.4.GIT