]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-login: Added support for Zimbra proxy's XOIP command.
authorTimo Sirainen <tss@iki.fi>
Tue, 2 Jun 2015 16:59:45 +0000 (19:59 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 2 Jun 2015 16:59:45 +0000 (19:59 +0300)
src/pop3-login/client.c

index 1e07f4f1b6ad6b428c9805cf589592672bb58a1b..9a1d88e0ada1d3ede1cfc464b1271fed2362926a 100644 (file)
@@ -99,6 +99,10 @@ static bool client_command_execute(struct pop3_client *client, const char *cmd,
                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.");