From: Eric Wong <e@yhbt.net>
To: meta@public-inbox.org
Subject: [PATCH 0/2] imap: search improvements
Date: Tue, 16 Jun 2020 05:05:38 +0000 [thread overview]
Message-ID: <20200616050540.13357-1-e@yhbt.net> (raw)
Non-UID SEARCH could be useful to someone, somewhere;
now that we have the memory-efficient uo2m mapping to
satisfy mutt users.
I also decided to replace the janky IMAP search parser
with a more proper one based on Parse::RecDescent:
https://public-inbox.org/meta/20200615062114.GA19510@dcvr/
Learning P::RD was fairly straightforward for an old dog like me
and I may use it more in the future for this and other projects.
Eric Wong (2):
imap: reinstate non-UID SEARCH
imap: *SEARCH: use Parse::RecDescent
MANIFEST | 2 +
lib/PublicInbox/IMAP.pm | 132 +++++----------
lib/PublicInbox/IMAPsearchqp.pm | 276 ++++++++++++++++++++++++++++++++
t/imap.t | 18 +--
t/imap_searchqp.t | 105 ++++++++++++
t/imapd-tls.t | 2 +-
t/imapd.t | 48 +++++-
xt/mem-imapd-tls.t | 3 +-
8 files changed, 474 insertions(+), 112 deletions(-)
create mode 100644 lib/PublicInbox/IMAPsearchqp.pm
create mode 100644 t/imap_searchqp.t
next reply other threads:[~2020-06-16 5:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-16 5:05 Eric Wong [this message]
2020-06-16 5:05 ` [PATCH 1/2] imap: reinstate non-UID SEARCH Eric Wong
2020-06-16 5:05 ` [PATCH 2/2] imap: *SEARCH: use Parse::RecDescent Eric Wong
2020-06-16 7:04 ` [PATCH 3/2] imap: *SEARCH: fix CHARSET handling Eric Wong
2020-06-16 7:05 ` [PATCH 4/2] imap: *SEARCH: reinstate "TEXT" search-key Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200616050540.13357-1-e@yhbt.net \
--to=e@yhbt.net \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).