From df8e72695103078a8acdad117198fd27be00508a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 21 Jun 2008 17:45:08 +0300 Subject: [PATCH] Don't drop automatic post-login CAPABILITY reply if client sent CAPABILITY command _before_ STARTTLS. --HG-- branch : HEAD --- src/imap-login/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/imap-login/client.c b/src/imap-login/client.c index 390c5ed630..0027dc5510 100644 --- a/src/imap-login/client.c +++ b/src/imap-login/client.c @@ -138,6 +138,10 @@ static void client_start_tls(struct imap_client *client) client->common.secured = TRUE; client_set_title(client); + /* CAPABILITY sent before STARTTLS can't be trusted */ + client->common.master_login_flags &= + ~LOGIN_IMAP_FLAG_FULL_CAPABILITY_SENT; + client->common.fd = fd_ssl; i_stream_unref(&client->common.input); o_stream_unref(&client->output); -- 2.47.3