From 43690b473b0c068e1587f93d1869aec95dbbc127 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 Sep 2023 01:48:37 +0000 Subject: imapd: lazy-load IMAPsearchqp for Parse::RecDescent This enables the t/pop3d.t test to pass when Parse::RecDescent is not available. --- lib/PublicInbox/IMAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/IMAP.pm') diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 00f99ef7..3c64cefa 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -39,7 +39,6 @@ use PublicInbox::DS qw(now); use PublicInbox::GitAsyncCat; use Text::ParseWords qw(parse_line); use Errno qw(EAGAIN); -use PublicInbox::IMAPsearchqp; my $Address; for my $mod (qw(Email::Address::XS Mail::Address)) { @@ -1088,6 +1087,7 @@ sub search_uid_range { # long_response sub parse_imap_query ($$) { my ($self, $query) = @_; + # IMAPsearchqp gets loaded in IMAPD->refresh_groups my $q = PublicInbox::IMAPsearchqp::parse($self, $query); if (ref($q)) { my $max = $self->{ibx}->over(1)->max; -- cgit v1.2.3-24-ge0c7