]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: support LSUB command
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:24 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
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

index 2282e3ce78c6be097b289d04f68ce9c9b0e0842b..51ab8b8c2f2eae4e9c11dee582cd2af9383ddc2e 100644 (file)
@@ -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;