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
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/