dovecot-2.2: imapc: Don't automatically login to IMAP server for...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 23 09:05:01 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/771254b34a42
changeset: 18883:771254b34a42
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 23 11:02:20 2015 +0200
description:
imapc: Don't automatically login to IMAP server for list=no namespaces.

diffstat:

 src/lib-storage/index/imapc/imapc-storage.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r eddc7a17dd46 -r 771254b34a42 src/lib-storage/index/imapc/imapc-storage.c
--- a/src/lib-storage/index/imapc/imapc-storage.c	Thu Jun 18 11:10:05 2015 +0300
+++ b/src/lib-storage/index/imapc/imapc-storage.c	Tue Jun 23 11:02:20 2015 +0200
@@ -292,8 +292,10 @@
 	client->client = imapc_client_init(&set);
 	imapc_client_register_untagged(client->client,
 				       imapc_storage_client_untagged_cb, client);
-	/* start logging in immediately */
-	imapc_client_login(client->client, imapc_storage_client_login, client);
+	if ((ns->flags & NAMESPACE_FLAG_LIST_PREFIX) != 0) {
+		/* start logging in immediately */
+		imapc_client_login(client->client, imapc_storage_client_login, client);
+	}
 
 	*client_r = client;
 	return 0;


More information about the dovecot-cvs mailing list