} else if (strcmp(key, "NO-NOSELECT") == 0) {
set_r->no_noselect = TRUE;
continue;
+ } else if (strcmp(key, "NO-FS-VALIDATION") == 0) {
+ set_r->no_fs_validation = TRUE;
+ continue;
} else {
*error_r = t_strdup_printf("Unknown setting: %s", key);
return -1;
*error_r = NULL;
- if (list->mail_set->mail_full_filesystem_access)
+ if (list->mail_set->mail_full_filesystem_access ||
+ list->set.no_fs_validation)
return TRUE;
/* either the list backend uses '/' as the hierarchy separator or
bool iter_from_index_dir;
/* Avoid creating or listing \NoSelect mailboxes. */
bool no_noselect;
+ /* Do not validate names as fs names (allows weird names) */
+ bool no_fs_validation;
};
struct mailbox_permissions {