]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: Change imapc_features to be case-sensitive
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Dec 2025 20:59:09 +0000 (22:59 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Dec 2025 20:59:09 +0000 (22:59 +0200)
Settings in general are case sensitive - there's no reason to make them case
insensitive.

src/lib-imap-client/imapc-settings.c

index 01abb4505f1ef3eda340dab90e1addc6c3dd2410..40e1c385fb8a7ea9ae133d99b5d1b15c2bab1931 100644 (file)
@@ -175,12 +175,12 @@ imapc_settings_parse_features(struct imapc_settings *set,
        for (; *str != NULL; str++) {
                list = imapc_feature_list;
                for (; list->name != NULL; list++) {
-                       if (strcasecmp(*str, list->name) == 0) {
+                       if (strcmp(*str, list->name) == 0) {
                                features |= list->num;
                                break;
                        }
                }
-               if (str_begins_icase(*str, "throttle:", &value)) {
+               if (str_begins(*str, "throttle:", &value)) {
                        if (imapc_settings_parse_throttle(set, value, error_r) < 0)
                                return -1;
                        continue;