managesieve: fix connecting with TLS not available
authorCharles Lehner <cel@celehner.com>
Fri, 17 Jul 2015 01:15:45 +0000 (21:15 -0400)
committerCharles Lehner <cel@celehner.com>
Fri, 17 Jul 2015 03:29:51 +0000 (23:29 -0400)
src/plugins/managesieve/managesieve.c

index 323c52d..111e4a0 100644 (file)
@@ -570,7 +570,7 @@ static gint sieve_session_recv_msg(Session *session, const gchar *msg)
                                        sieve_session->state = SIEVE_ERROR;
                                } else {
                                        log_warning(LOG_PROTOCOL, "Sieve: continuing without TLS\n");
-                                       sieve_session->state = SIEVE_CAPABILITIES;
+                                       sieve_session->state = SIEVE_READY;
                                }
                                break;
                        }