]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: rename parse_query => parse_imap_query
authorEric Wong <e@80x24.org>
Wed, 16 Dec 2020 23:55:34 +0000 (23:55 +0000)
committerEric Wong <e@80x24.org>
Thu, 17 Dec 2020 10:02:33 +0000 (10:02 +0000)
Avoid confusing hackers since this conflicts with a method name
provided by (Search::)Xapian::QueryParser.

lib/PublicInbox/IMAP.pm

index f123eb01a519ea6114b65834d5abbfafddc39631..a3a10bde411d58605e2a3f68837c2fa677c40160 100644 (file)
@@ -1110,7 +1110,7 @@ sub search_uid_range { # long_response
        1; # more
 }
 
-sub parse_query ($$) {
+sub parse_imap_query ($$) {
        my ($self, $query) = @_;
        my $q = PublicInbox::IMAPsearchqp::parse($self, $query);
        if (ref($q)) {
@@ -1125,7 +1125,7 @@ sub parse_query ($$) {
 sub search_common {
        my ($self, $tag, $query, $want_msn) = @_;
        my $ibx = $self->{ibx} or return "$tag BAD No mailbox selected\r\n";
-       my $q = parse_query($self, $query);
+       my $q = parse_imap_query($self, $query);
        return "$tag $q\r\n" if !ref($q);
        my ($sql, $range_info) = delete @$q{qw(sql range_info)};
        if (!scalar(keys %$q)) { # overview.sqlite3