acl-shared-storage.c (dovecot-2.3.16) | : | acl-shared-storage.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 69 | skipping to change at line 69 | |||
sstorage->ns_prefix_pattern, error); | sstorage->ns_prefix_pattern, error); | |||
return; | return; | |||
} | } | |||
mailbox = str_c(str); | mailbox = str_c(str); | |||
if (shared_storage_get_namespace(&new_ns, &mailbox) < 0) | if (shared_storage_get_namespace(&new_ns, &mailbox) < 0) | |||
return; | return; | |||
/* check if there are any mailboxes really visible to us */ | /* check if there are any mailboxes really visible to us */ | |||
iter = mailbox_list_iter_init(new_ns->list, "*", | iter = mailbox_list_iter_init(new_ns->list, "*", | |||
MAILBOX_LIST_ITER_RETURN_NO_FLAGS); | MAILBOX_LIST_ITER_RETURN_NO_FLAGS); | |||
while ((info = mailbox_list_iter_next(iter)) != NULL) | info = mailbox_list_iter_next(iter); | |||
break; | ||||
(void)mailbox_list_iter_deinit(&iter); | (void)mailbox_list_iter_deinit(&iter); | |||
if (info == NULL && !acl_ns_prefix_exists(new_ns)) { | if (info == NULL && !acl_ns_prefix_exists(new_ns)) { | |||
/* no visible mailboxes, remove the namespace */ | /* no visible mailboxes, remove the namespace */ | |||
mail_namespace_destroy(new_ns); | mail_namespace_destroy(new_ns); | |||
} | } | |||
} | } | |||
int acl_shared_namespaces_add(struct mail_namespace *ns) | int acl_shared_namespaces_add(struct mail_namespace *ns) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added |