Subject: bug#22500: imap-starttls is completely borked

From: Andreas Schwab <[email-masked]>
Date: Sun, 31 Jan 2016 13:56:03 +0100

imap with :stream starttls doesn't work at all.  imap-open-1 hangs while
waiting for reponse.

This is the whole output from the imap server:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] frontend03 Dovecot ready.
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5
1 OK Pre-login capabilities listed, post-login capabilities have more.
1 OK Begin TLS negotiation now.
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5
1 OK Pre-login capabilities listed, post-login capabilities have more.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."