]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: Retain client ID only when enabled
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 6 Apr 2017 16:49:07 +0000 (19:49 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 6 Apr 2017 17:22:41 +0000 (20:22 +0300)
src/imap-login/imap-login-client.c

index ab764594945694ddc8ad71baf54edc3e967ee888..fd0a4eb2a8a4c9d180add637b61f1527c31ef78b 100644 (file)
@@ -217,7 +217,7 @@ static void cmd_id_handle_keyvalue(struct imap_client *client,
                client_id_str = !client_id_reserved_word(key);
        }
 
-       if (client_id_str &&
+       if (client->set->imap_id_retain && client_id_str &&
            (client->common.client_id == NULL ||
             str_len(client->common.client_id) + kvlen < LOGIN_MAX_CLIENT_ID_LEN)) {
                if (client->common.client_id == NULL) {