]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Logout format specifier 'u' is always empty
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 29 Aug 2024 10:32:07 +0000 (13:32 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 29 Aug 2024 10:32:07 +0000 (13:32 +0300)
Due to mistake in var_get_key() invocation, if 'u' key is used
the value is never populated. Call var_get_get_key() with correct
short char.

Broken in acfda38b75d0f0e899ef692fef01593bd56ed85e

src/pop3/pop3-client.c

index 12f1e9d450289ff16e73b26ab580177fb9025015..c1150c77c5d27f78ed35a75e6c859ac728f37237 100644 (file)
@@ -529,7 +529,7 @@ static const char *client_stats(struct client *client)
 {
        const char *uidl_change = "";
        if (var_has_key(client->set->pop3_logout_format,
-                       'o', "uidl_change"))
+                       'u', "uidl_change"))
                uidl_change = client_build_uidl_change_string(client);
 
        const struct var_expand_table logout_tab[] = {