[dovecot-cvs] dovecot/src/imap-login client.c,1.50,1.51

cras at dovecot.org cras at dovecot.org
Fri Apr 14 21:20:56 EEST 2006


Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv5712/imap-login

Modified Files:
	client.c 
Log Message:
If we have plugins set and imap_capability unset, figure out the IMAP
capabilities automatically by running imap binary at startup. The generated
capability list isn't updated until Dovecot is restarted completely, so if
you add or remove IMAP plugins you should restart.



Index: client.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- client.c	2 Apr 2006 10:48:59 -0000	1.50
+++ client.c	14 Apr 2006 18:20:54 -0000	1.51
@@ -44,6 +44,7 @@
 #endif
 
 const char *login_protocol = "IMAP";
+const char *capability_string = CAPABILITY_STRING;
 
 static struct hash_table *clients;
 static struct timeout *to_idle;
@@ -97,7 +98,7 @@
 	const char *auths;
 
 	auths = client_authenticate_get_capabilities(client->common.secured);
-	return t_strconcat(CAPABILITY_STRING,
+	return t_strconcat(capability_string,
 			   (ssl_initialized && !client->common.tls) ?
 			   " STARTTLS" : "",
 			   disable_plaintext_auth && !client->common.secured ?



More information about the dovecot-cvs mailing list