From dec32238ffb7ecba8edb4ee983442d1e442b40df Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Wed, 6 Feb 2013 21:24:30 +0100
Subject: [PATCH] managesieve: Fixed bug in skipping of CRLF at end of
 AUTHENTICATE command. Setting skip_newline is useless when the connection is
 transfered to another process after successful login.

---
 src/managesieve-login/client-authenticate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/managesieve-login/client-authenticate.c b/src/managesieve-login/client-authenticate.c
index 95053b14e..87cb91bb2 100644
--- a/src/managesieve-login/client-authenticate.c
+++ b/src/managesieve-login/client-authenticate.c
@@ -257,7 +257,7 @@ static int managesieve_client_auth_read_response
 	}
 
 	if ( i_stream_next_line(client->input) == NULL )
-		msieve_client->skip_line = TRUE;
+		return 0;
 
 	return 1;
 }
-- 
GitLab