about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-05 18:19:48 +0000
committerEric Wong <e@80x24.org>2021-01-05 22:46:22 +0000
commitf692276e2bcce22160248f27a905e517e706a952 (patch)
treee54fc05be944f88d84529f224ee8c6703d9adf32 /lib
parent1ac1b90339670ac06c30d800548e018e6f425982 (diff)
downloadpublic-inbox-f692276e2bcce22160248f27a905e517e706a952.tar.gz
It seems only triggered by bots trying to steal information.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/IMAP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm
index 68a7e050..226e98a2 100644
--- a/lib/PublicInbox/IMAP.pm
+++ b/lib/PublicInbox/IMAP.pm
@@ -1142,7 +1142,7 @@ sub search_common {
                 };
                 my $mset = $srch->mset($q, $opt);
                 my $uids = $srch->mset_to_artnums($mset, $opt);
-                msn_convert($self, $uids) if $want_msn;
+                msn_convert($self, $uids) if scalar(@$uids) && $want_msn;
                 "* SEARCH @$uids\r\n$tag OK Search done\r\n";
         } else {
                 "$tag BAD Error\r\n";