No need to have awkward globrefs for this.
use PublicInbox::GitAsyncCat;
use Text::ParseWords qw(parse_line);
use Errno qw(EAGAIN);
use PublicInbox::GitAsyncCat;
use Text::ParseWords qw(parse_line);
use Errno qw(EAGAIN);
-use PublicInbox::Search;
+use PublicInbox::Search qw(mdocid);
use PublicInbox::IMAPsearchqp;
use PublicInbox::IMAPsearchqp;
-*mdocid = \&PublicInbox::Search::mdocid;
my $Address;
for my $mod (qw(Email::Address::XS Mail::Address)) {
my $Address;
for my $mod (qw(Email::Address::XS Mail::Address)) {
# Read-only search interface for use by the web and NNTP interfaces
package PublicInbox::Search;
use strict;
# Read-only search interface for use by the web and NNTP interfaces
package PublicInbox::Search;
use strict;
+use parent qw(Exporter);
+our @EXPORT_OK = qw(mdocid);
# values for searching, changing the numeric value breaks
# compatibility with old indices (so don't change them it)
# values for searching, changing the numeric value breaks
# compatibility with old indices (so don't change them it)