diff options
author | Eric Wong <e@80x24.org> | 2020-12-16 23:55:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-17 10:02:33 +0000 |
commit | 6e0c641338c00007b30af3b9b18390e587e4fc29 (patch) | |
tree | a3c832636d75142cfe46307a6b95aec032b0b333 /lib/PublicInbox/IMAP.pm | |
parent | 4aafd44087292ac5ab254f02c3358267c685374b (diff) | |
download | public-inbox-6e0c641338c00007b30af3b9b18390e587e4fc29.tar.gz |
imap: rename parse_query => parse_imap_query
Avoid confusing hackers since this conflicts with a method name provided by (Search::)Xapian::QueryParser.
Diffstat (limited to 'lib/PublicInbox/IMAP.pm')
-rw-r--r-- | lib/PublicInbox/IMAP.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index f123eb01..a3a10bde 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -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 |