From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4E6481FBC6 for ; Wed, 10 Jun 2020 07:06:24 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 27/82] imap: support LSUB command Date: Wed, 10 Jun 2020 07:04:24 +0000 Message-Id: <20200610070519.18252-28-e@yhbt.net> In-Reply-To: <20200610070519.18252-1-e@yhbt.net> References: <20200610070519.18252-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Since we only support read-only operation, we can't save subscriptions requested by clients. So just list no inboxes as subscribed, some MUAs may blindly try to fetch everything its subscribed to. --- lib/PublicInbox/IMAP.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 2282e3ce78c..51ab8b8c2f2 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -497,6 +497,11 @@ sub cmd_list ($$$$) { \(join('', @$l, "$tag OK List done\r\n")); } +sub cmd_lsub ($$$$) { + my (undef, $tag) = @_; # same args as cmd_list + "$tag OK Lsub done\r\n"; +} + sub eml_index_offs_i { # PublicInbox::Eml::each_part callback my ($p, $all) = @_; my ($eml, undef, $idx) = @$p;