[dovecot-cvs] dovecot/src/pop3-login pop3-proxy.c,1.16,1.17

tss at dovecot.org tss at dovecot.org
Fri Jan 19 21:19:55 UTC 2007


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

Modified Files:
	pop3-proxy.c 
Log Message:
Log the proxy destination host:port.



Index: pop3-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/pop3-proxy.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- pop3-proxy.c	15 Dec 2006 18:38:28 -0000	1.16
+++ pop3-proxy.c	19 Jan 2007 21:19:52 -0000	1.17
@@ -14,7 +14,7 @@
 			struct pop3_client *client)
 {
 	string_t *str;
-	const char *line;
+	const char *line, *msg;
 
 	i_assert(!client->destroyed);
 
@@ -96,6 +96,11 @@
 		(void)o_stream_send_str(client->output, line);
 		(void)o_stream_send(client->output, "\r\n", 2);
 
+		msg = t_strdup_printf("proxy(%s): started proxying to %s:%u",
+				      client->common.virtual_user,
+				      login_proxy_get_host(client->proxy),
+				      login_proxy_get_port(client->proxy));
+
 		login_proxy_detach(client->proxy, client->input,
 				   client->output);
 
@@ -103,9 +108,7 @@
 		client->input = NULL;
 		client->output = NULL;
 		client->common.fd = -1;
-		client_destroy(client,
-			       t_strdup_printf("proxy(%s): started",
-					       client->common.virtual_user));
+		client_destroy(client, msg);
 		return;
 	}
 



More information about the dovecot-cvs mailing list