Mercurial > dovecot > core-2.2
changeset 22204:3b85ccb26ac3
maildir backend parameter parsing changed to use common function
author | Sergey Kitov <sergey.kitov@open-xchange.com> |
---|---|
date | Fri, 19 May 2017 10:49:01 +0300 |
parents | 01abf99c7876 |
children | d15bd7985690 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 1 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-maildir.c Fri May 19 10:46:27 2017 +0300 +++ b/src/plugins/quota/quota-maildir.c Fri May 19 10:49:01 2017 +0300 @@ -764,26 +764,7 @@ static int maildir_quota_init(struct quota_root *_root, const char *args, const char **error_r) { - const char *const *tmp; - - if (args == NULL) - return 0; - - for (tmp = t_strsplit(args, ":"); *tmp != NULL; tmp++) { - if (strcmp(*tmp, "noenforcing") == 0) - _root->no_enforcing = TRUE; - else if (strcmp(*tmp, "hidden") == 0) - _root->hidden = TRUE; - else if (strcmp(*tmp, "ignoreunlimited") == 0) - _root->disable_unlimited_tracking = TRUE; - else if (strncmp(*tmp, "ns=", 3) == 0) - _root->ns_prefix = p_strdup(_root->pool, *tmp + 3); - else { - *error_r = t_strdup_printf("Invalid parameter: %s", *tmp); - return -1; - } - } - return 0; + return quota_root_default_init(_root, args, error_r); } static void maildir_quota_deinit(struct quota_root *_root)