[dovecot-cvs] dovecot/src/pop3-login pop3-proxy.c, 1.10.2.5, 1.10.2.6
tss at dovecot.org
tss at dovecot.org
Fri Jan 19 21:19:50 UTC 2007
Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv27349/pop3-login
Modified Files:
Tag: branch_1_0
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.10.2.5
retrieving revision 1.10.2.6
diff -u -d -r1.10.2.5 -r1.10.2.6
--- pop3-proxy.c 3 Dec 2006 20:02:48 -0000 1.10.2.5
+++ pop3-proxy.c 19 Jan 2007 21:19:48 -0000 1.10.2.6
@@ -15,7 +15,7 @@
{
struct pop3_client *client = context;
string_t *str;
- const char *line;
+ const char *line, *msg;
i_assert(!client->destroyed);
@@ -97,6 +97,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);
@@ -104,9 +109,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