]> Sergey Matveev's repositories - public-inbox.git/commitdiff
pop3: implement IN-USE from RESP-CODES (RFC 2449)
authorEric Wong <e@80x24.org>
Wed, 20 Jul 2022 09:24:10 +0000 (09:24 +0000)
committerEric Wong <e@80x24.org>
Wed, 20 Jul 2022 16:52:09 +0000 (16:52 +0000)
This may help clients communicate to users if they're
making parallel connections or if we have server bugs.

lib/PublicInbox/POP3.pm

index 8612356329fde8ac4584221b071efde1bd63dbeb..51c2b71a560fd10e041ad8bb949e2b8c3ab6486e 100644 (file)
@@ -176,7 +176,7 @@ sub _login_ok ($) {
                $self->{uid_max} = $self->{ibx}->over(1)->max;
                \"+OK logged in\r\n";
        } else {
-               \"-ERR unable to lock maildrop\r\n";
+               \"-ERR [IN-USE] unable to lock maildrop\r\n";
        }
 }
 
@@ -350,6 +350,7 @@ USER\r
 PIPELINING\r
 UIDL\r
 EXPIRE 0\r
+RESP-CODES\r
 .\r
 EOM
 }