unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] imap: use spec compliant continuation request
@ 2024-06-25 12:26 Manos Pitsidianakis
  2024-06-25 17:52 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Manos Pitsidianakis @ 2024-06-25 12:26 UTC (permalink / raw)
  To: meta

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm
index 0eb21b6a..378a0363 100644
--- a/lib/PublicInbox/IMAP.pm
+++ b/lib/PublicInbox/IMAP.pm
@@ -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 ($$) {

base-commit: f4844140d92d24493ce9acb4311f3df0edf5a449
-- 
γαῖα πυρί μιχθήτω


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-26  3:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 12:26 [PATCH] imap: use spec compliant continuation request Manos Pitsidianakis
2024-06-25 17:52 ` Eric Wong
2024-06-25 18:40   ` Manos Pitsidianakis
2024-06-26  3:32     ` Undelivered replies [was: [PATCH] imap: use spec compliant continuation request] Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).