]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: SEARCH fails more gracefully in non-slice mailbox
authorEric Wong <e@yhbt.net>
Mon, 13 Jul 2020 07:00:35 +0000 (07:00 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jul 2020 21:12:54 +0000 (21:12 +0000)
Instead of returning "BAD program fault", just give the
standard "BAD search not available"... message we show
for mailbox slices.

lib/PublicInbox/DummyInbox.pm

index c3f4f5c66749c11dfadf7a1ea5d71504cbb9514f..69b0b6837c7b9a1cbff333a9d4c8fa4235ccf363 100644 (file)
@@ -16,7 +16,7 @@ no warnings 'once';
 *max = \&created_at;
 *query_xover = \&uid_range;
 *over = \&mm;
-*unsubscribe_unlock =
+*search = *unsubscribe_unlock =
        *get_art = *description = *base_url = \&subscribe_unlock;
 
 1;