dovecot-2.2: pop3-login: Added support for Zimbra proxy's XOIP c...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 2 17:02:07 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/0bcd3e9e77d4
changeset: 18795:0bcd3e9e77d4
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 02 19:59:45 2015 +0300
description:
pop3-login: Added support for Zimbra proxy's XOIP command.

diffstat:

 src/pop3-login/client.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r dc4826a29990 -r 0bcd3e9e77d4 src/pop3-login/client.c
--- a/src/pop3-login/client.c	Tue Jun 02 19:52:37 2015 +0300
+++ b/src/pop3-login/client.c	Tue Jun 02 19:59:45 2015 +0300
@@ -99,6 +99,10 @@
 		return cmd_quit(client);
 	if (strcmp(cmd, "XCLIENT") == 0)
 		return cmd_xclient(client, args);
+	if (strcmp(cmd, "XOIP") == 0) {
+		/* Compatibility with Zimbra's patched nginx */
+		return cmd_xclient(client, t_strconcat("ADDR=", args, NULL));
+	}
 
 	client_send_reply(&client->common, POP3_CMD_REPLY_ERROR,
 			  "Unknown command.");


More information about the dovecot-cvs mailing list