diff options
author | Eric Wong <e@yhbt.net> | 2020-06-10 07:04:18 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-13 07:55:45 +0000 |
commit | 1804e2961f3a28045b601a982f44ff61ea33a2fe (patch) | |
tree | 918caac2ff24140cf43eaa22b31d393a44b4b473 /lib | |
parent | 1189ecdca2b43769ebc92eb1dcbfc63418396e2c (diff) | |
download | public-inbox-1804e2961f3a28045b601a982f44ff61ea33a2fe.tar.gz |
It seems worthless to support CLOSE for read-only inboxes, but mutt sends it, so don't return a BAD error with proper use.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/IMAP.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 54c616ee..0852ffab 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -121,6 +121,12 @@ sub cmd_login ($$$$) { login_success($self, $tag); } +sub cmd_close ($$) { + my ($self, $tag) = @_; + delete $self->{ibx} ? "$tag OK Close done\r\n" + : "$tag BAD No mailbox\r\n"; +} + sub cmd_logout ($$) { my ($self, $tag) = @_; delete $self->{logged_in}; |