]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: Added "x-session-ext-id" parameter for ID command.
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Oct 2014 01:33:46 +0000 (18:33 -0700)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Oct 2014 01:33:46 +0000 (18:33 -0700)
It's exactly the same as "x-session-id", but this one can be safely used by
external software without having to worry about causing error messages in
older versions about too long session-id.

src/imap-login/client.c

index 4d477c09d60477d747e4e685b5861489dbb41f0c..26f2111ebdfe2ced0893cec30b9c74eeecdbc1e1 100644 (file)
@@ -158,6 +158,9 @@ client_update_info(struct imap_client *client,
        else if (strcasecmp(key, "x-session-id") == 0) {
                client->common.session_id =
                        p_strdup(client->common.pool, value);
+       } else if (strcasecmp(key, "x-session-ext-id") == 0) {
+               client->common.session_id =
+                       p_strdup(client->common.pool, value);
        }
 }