/dovecot/src/lib-storage/list/ |
H A D | mailbox-list-fs.c | 51 const char *root_dir, const char *name) 54 return t_strdup_printf("%s/%s%s/%s", root_dir, 58 return t_strdup_printf("%s/%s%s", root_dir, 68 const char *root_dir, *error; local 85 root_dir = set->root_dir; 89 *path_r = t_strdup_printf("%s/%s%s", set->root_dir, 104 root_dir = set->alt_dir; 111 root_dir = set->alt_dir; 156 if (root_dir 50 fs_list_get_path_to(const struct mailbox_list_settings *set, const char *root_dir, const char *name) argument 215 const char *root_dir; local [all...] |
H A D | mailbox-list-delete.c | 20 const char *root_dir; local 22 root_dir = mailbox_list_get_root_forced(list, MAILBOX_LIST_PATH_TYPE_DIR); 23 if (strcmp(root_dir, path) != 0) 277 const char *root_dir, *p; local 289 root_dir = mailbox_list_get_root_forced(list, type); 290 if (strncmp(path, root_dir, strlen(root_dir)) != 0) { 291 /* mbox workaround: name=child/box, root_dir=mail/.imap/, 305 root_dir = t_strndup(path, len-1); 307 while (strcmp(path, root_dir) ! [all...] |
H A D | mailbox-list-maildir.c | 107 const char *root_dir; local 121 root_dir = _list->set.root_dir; 130 root_dir = _list->set.alt_dir; 173 *path_r = maildir_list_get_dirname_path(_list, root_dir, name); 200 _list->set.control_dir : _list->set.root_dir, 212 const char *root_dir; local 214 root_dir = mailbox_list_get_root_forced(_list, MAILBOX_LIST_PATH_TYPE_DIR); 216 root_dir, list->sep, list->sep);
|
H A D | mailbox-list-index-backend.c | 96 index_get_guid_path(struct mailbox_list *_list, const char *root_dir, argument 99 return t_strdup_printf("%s/%s%s", root_dir, 113 const char *root_dir; local 136 if (!mailbox_list_set_get_root_path(&_list->set, type, &root_dir)) 141 *path_r = index_get_guid_path(_list, root_dir, 185 *path_r = index_get_guid_path(_list, root_dir, mailbox_guid); 214 _list->set.control_dir : _list->set.root_dir, 431 const char *root_dir, *old_path, *new_path; local 445 &root_dir)) { 446 new_path = index_get_guid_path(box->list, root_dir, [all...] |
H A D | mailbox-list-fs-iter.c | 145 const char *storage_name, *vname, *root_dir; local 167 root_dir = mailbox_list_get_root_forced(ctx->ctx.list, 169 if (strcmp(root_dir, dir_path) == 0)
|
H A D | mailbox-list-maildir-iter.c | 447 ctx->dir = _list->set.root_dir;
|
/dovecot/src/lib-storage/index/maildir/ |
H A D | maildir-storage.c | 89 set->inbox_path = set->root_dir; 128 const char *path, *root_dir; local 130 if (set->root_dir != NULL) 131 root_dir = set->root_dir; 133 root_dir = maildir_storage_find_root_dir(ns); 134 if (root_dir == NULL) { 141 path = t_strconcat(root_dir, "/cur", NULL); 154 set->root_dir = root_dir; 344 const char *root_dir; local 513 const char *root_dir, *shared_path; local [all...] |
H A D | maildir-sync-index.c | 708 const char *root_dir, *new_dir, *cur_dir; local 733 &root_dir); 739 new_dir = t_strconcat(root_dir, "/new", NULL); 748 cur_dir = t_strconcat(root_dir, "/cur", NULL);
|
/dovecot/src/lib-storage/index/dbox-common/ |
H A D | dbox-storage.c | 33 dbox_alt_path_has_changed(const char *root_dir, const char *alt_path, argument 47 "but currently no ALT path set", root_dir, linkpath); 58 "but currently ALT=%s", root_dir, linkpath, alt_path); 66 const char *root_dir, *alt_symlink_path, *alt_path, *alt_path2; local 68 root_dir = mailbox_list_get_root_forced(list, MAILBOX_LIST_PATH_TYPE_DIR); 70 t_strconcat(root_dir, "/"DBOX_ALT_SYMLINK_NAME, NULL); 75 if (!dbox_alt_path_has_changed(root_dir, alt_path, alt_path2, 84 /* root_dir doesn't exist yet - create it */ 85 if (mailbox_list_mkdir_root(list, root_dir,
|
/dovecot/src/lib-storage/index/dbox-multi/ |
H A D | mdbox-storage.c | 52 p_strdup(_storage->pool, ns->list->set.root_dir); 109 const char *path, *root_dir; local 111 if (set->root_dir != NULL) 112 root_dir = set->root_dir; 114 root_dir = mdbox_storage_find_root_dir(ns); 115 if (root_dir == NULL) { 122 path = t_strconcat(root_dir, "/"MDBOX_GLOBAL_DIR_NAME, NULL); 135 set->root_dir = root_dir; [all...] |
/dovecot/src/lib-storage/ |
H A D | mailbox-list.c | 140 i_assert(set->root_dir == NULL || *set->root_dir != '\0' || 157 if (set->root_dir != NULL) { 158 list->set.root_dir = p_strdup(list->pool, set->root_dir); 160 strcmp(set->index_dir, set->root_dir) == 0 ? NULL : 163 strcmp(set->index_pvt_dir, set->root_dir) == 0 ? NULL : 166 strcmp(set->index_cache_dir, set->root_dir) == 0 ? NULL : 169 strcmp(set->control_dir, set->root_dir) == 0 ? NULL : 215 list->set.root_dir 1145 const char *expanded, *unexpanded, *root_dir, *p; local 1227 const char *root_dir; local 1869 const char *root_dir, *path, *mailbox_name; local 2020 mailbox_list_init_fs(struct mailbox_list *list, const char *driver, const char *args, const char *root_dir, struct fs **fs_r, const char **error_r) argument [all...] |
H A D | mailbox-list.h | 110 const char *root_dir; member in struct:mailbox_list_settings 141 /* if set, store mailboxes under root_dir/mailbox_dir_name/. 314 const char *args, const char *root_dir,
|
H A D | mail-storage.c | 178 if (list_set->root_dir != NULL && 179 *list_set->root_dir == '\0') { 181 list_set->root_dir = NULL; 192 if (list_set->root_dir == NULL || *list_set->root_dir == '\0') { 243 mail_storage_verify_root(const char *root_dir, const char *dir_type, argument 248 if (stat(root_dir, &st) == 0) { 253 "Root mail directory is a file: %s", root_dir); 256 *error_r = mail_error_eacces_msg("stat", root_dir); 259 *error_r = t_strdup_printf("stat(%s) failed: %m", root_dir); 272 const char *root_dir, *type_name, *error; local 2820 const char *root_dir; local [all...] |
/dovecot/src/lib-storage/index/dbox-single/ |
H A D | sdbox-storage.c | 79 const char *path, *root_dir; local 81 if (set->root_dir != NULL) 82 root_dir = set->root_dir; 84 root_dir = sdbox_storage_find_root_dir(ns); 85 if (root_dir == NULL) { 94 path = t_strconcat(root_dir, "/"DBOX_MAILBOX_DIR_NAME, NULL); 107 set->root_dir = root_dir;
|
/dovecot/src/lib-storage/index/mbox/ |
H A D | mbox-storage.c | 168 if (stat(ns->list->set.root_dir, &st) == 0 && !S_ISDIR(st.st_mode)) { 172 ns->list->set.root_dir); 188 set->inbox_path = t_strconcat(set->root_dir, "/inbox", NULL); 319 const char *root_dir, *inbox_path; local 321 root_dir = set->root_dir; 324 if (root_dir != NULL) { 326 mbox_is_file(root_dir, "INBOX file", debug)) { 328 inbox_path = root_dir; 329 root_dir [all...] |
/dovecot/src/lib-storage/index/pop3c/ |
H A D | pop3c-storage.c | 94 if (set->root_dir != NULL && *set->root_dir != '\0' && 96 /* we don't really care about root_dir, but we 98 it happens when index_dir differs from root_dir. */ 99 set->index_dir = set->root_dir; 100 set->root_dir = p_strconcat(ns->user->pool, 101 set->root_dir, "/.", NULL);
|
/dovecot/src/plugins/acl/ |
H A D | acl-backend-vfile-acllist.c | 81 const char *root_dir; local 83 if (!acl_list_get_root_dir(backend, &root_dir, &type)) 85 *path_r = t_strconcat(root_dir, "/"ACLLIST_FILENAME, NULL);
|
/dovecot/src/lib-storage/index/imapc/ |
H A D | imapc-list.c | 388 dir = list->list.set.root_dir; 395 list_set.root_dir = dir;
|
H A D | imapc-storage.c | 400 "pop3delflg:%s root_dir:%s", 416 ns->list->set.root_dir);
|