]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
imap: use spec compliant continuation request
authorManos Pitsidianakis <manos@pitsidianak.is>
Tue, 25 Jun 2024 12:26:51 +0000 (15:26 +0300)
committerEric Wong <e@80x24.org>
Tue, 25 Jun 2024 17:03:29 +0000 (17:03 +0000)
cmd_authenticate() replies to AUTHENTICATE commands with "+" CRLF but
the imap4rev1 RFC [^0] defines the following ABNF syntax for a continuation
request:

continue-req    = "+" SP (resp-text / base64) CRLF

A space (SP) is required before CRLF.

[0]: https://www.rfc-editor.org/rfc/rfc3501#page-84

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
lib/PublicInbox/IMAP.pm

index 0eb21b6a2def11b7b2733504ea00d26e198984f5..378a0363eb3e0ff4a48c28abdc45f9629af1ac73 100644 (file)
@@ -158,7 +158,7 @@ sub cmd_logout ($$) {
 sub cmd_authenticate ($$$) {
        my ($self, $tag) = @_; # $method = $_[2], should be "ANONYMOUS"
        $self->{-login_tag} = $tag;
-       "+\r\n"; # challenge
+       "+ \r\n"; # challenge
 }
 
 sub cmd_capability ($$) {