]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-solr: Fix default_ns parameter parsing
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Wed, 27 Jun 2018 14:27:15 +0000 (17:27 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Aug 2018 11:10:08 +0000 (14:10 +0300)
This version makes it possible to specify a value to the setting as
well.

src/plugins/fts-solr/fts-solr-plugin.c

index 19b89b1906504b32e5317339cff99a74f3fe20bd..5f9e16cac39619a6d7b3f965ab0c9eef996e0812 100644 (file)
@@ -34,7 +34,7 @@ fts_solr_plugin_init_settings(struct mail_user *user,
                        set->use_libfts = TRUE;
                } else if (strcmp(*tmp, "break-imap-search") == 0) {
                        /* for backwards compatibility */
-               } else if (strcmp(*tmp, "default_ns=") == 0) {
+               } else if (str_begins(*tmp, "default_ns=")) {
                        set->default_ns_prefix =
                                p_strdup(user->pool, *tmp + 11);
                } else {