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/IMAPD.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/IMAPD.pm') diff --git a/lib/PublicInbox/IMAPD.pm b/lib/PublicInbox/IMAPD.pm index 78323e57..bdadb7a3 100644 --- a/lib/PublicInbox/IMAPD.pm +++ b/lib/PublicInbox/IMAPD.pm @@ -55,6 +55,7 @@ sub _refresh_ibx { # pi_cfg->each_inbox cb sub refresh_groups { my ($self, $sig) = @_; my $pi_cfg = PublicInbox::Config->new; + require PublicInbox::IMAPsearchqp; $self->{mailboxes} = $pi_cfg->{-imap_mailboxes} // do { my $mailboxes = $self->{mailboxes} = {}; my $cache = eval { $pi_cfg->ALL->misc->nntpd_cache_load } // {}; -- cgit v1.2.3-24-ge0c7