[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.48, 1.49

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


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

Modified Files:
	client-authenticate.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-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- client-authenticate.c	5 Feb 2006 13:07:16 -0000	1.48
+++ client-authenticate.c	14 Apr 2006 18:20:57 -0000	1.49
@@ -19,6 +19,8 @@
 
 #include <stdlib.h>
 
+const char *capability_string = POP3_CAPABILITY_REPLY;
+
 bool cmd_capa(struct pop3_client *client, const char *args __attr_unused__)
 {
 	const struct auth_mech_desc *mech;
@@ -26,7 +28,8 @@
 	string_t *str;
 
 	str = t_str_new(128);
-	str_append(str, "+OK\r\n" POP3_CAPABILITY_REPLY);
+	str_append(str, "+OK\r\n");
+	str_append(str, capability_string);
 
 	if (ssl_initialized && !client->common.tls)
 		str_append(str, "STLS\r\n");



More information about the dovecot-cvs mailing list