unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] imap: rename parse_query => parse_imap_query
@ 2020-12-16 23:55 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-12-16 23:55 UTC (permalink / raw)
  To: meta

Avoid confusing hackers since this conflicts with a method name
provided by (Search::)Xapian::QueryParser.
---
 lib/PublicInbox/IMAP.pm | 4 ++--
 1 file 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-16 23:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 23:55 [PATCH] imap: rename parse_query => parse_imap_query Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).