MBOX-Line: From janssen at parc.com  Fri Jan 25 23:10:50 2008
To: imap-protocol@u.washington.edu
From: Bill Janssen <janssen@parc.com>
Date: Fri Jun  8 12:34:41 2018
Subject: [Imap-protocol] example of authentication PLAIN with imap? 
In-Reply-To: <08Jan25.195809pst."58696"@synergy1.parc.xerox.com> 
References: <08Jan25.155553pst."58696"@synergy1.parc.xerox.com>
	<alpine.WNT.1.00.0801251607230.3096@Tomobiki-Cho.CAC.Washignton.EDU>
	<08Jan25.172524pst."58696"@synergy1.parc.xerox.com>
	<alpine.WNT.1.00.0801251732060.3096@Tomobiki-Cho.CAC.Washignton.EDU>
	<08Jan25.195809pst."58696"@synergy1.parc.xerox.com>
Message-ID: <08Jan25.231054pst."58696"@synergy1.parc.xerox.com>

> But what I see (from Thunderbird) is
> 
> C: 4 authenticate plain\r\n
> S: +\r\n
> C: AGphbnNzZW4AZm9v
> 
> so my server never knows when to stop waiting for the client to send
> more data...

Ah!  Got it.  T-bird was sending the right thing; my server framework was
eating the CRLF.  Now the handshake looks like

C: 4 authenticate plain\r\n
S: + \r\n
C: AGphbnNzZW4AZm9v\r\n
S: 4 OK [CAPABILITY IMAP4rev1 NAMESPACE UIDPLUS AUTH=PLAIN] AUTHENTICATE completed\r\n

which I believe is correct.

Bill

