/dovecot/src/lib-storage/ |
H A D | fail-mail-storage.c | 5 #include "mail-storage-private.h" 6 #include "fail-mail-storage.h" 10 struct mail_storage *storage; local 13 pool = pool_alloconly_create("fail mail storage", 1024); 14 storage = p_new(pool, struct mail_storage, 1); 15 *storage = fail_storage; 16 storage->pool = pool; 17 return storage; 20 static void fail_storage_destroy(struct mail_storage *storage ATTR_UNUSED) 54 struct mail_storage *storage; local [all...] |
H A D | mailbox-attribute-private.h | 11 int mailbox_attribute_value_to_string(struct mail_storage *storage,
|
H A D | test-mail-storage.c | 11 #include "mail-storage-service.h" 12 #include "mail-storage-private.h" 21 static void test_deinit_storage(struct mail_storage *storage) argument 23 mail_storage_clear_error(storage); 24 if (array_is_created(&storage->error_stack)) { 25 mail_storage_clear_error(storage); 26 i_assert(array_count(&storage->error_stack) == 0); 27 array_free(&storage->error_stack); 29 event_unref(&storage->user->event); 43 struct mail_storage storage; local 155 struct mail_storage storage; local [all...] |
H A D | mail-storage.c | 26 #include "mail-storage-private.h" 27 #include "mail-storage-settings.h" 45 .name = "storage", 160 /* no autodetection if the storage driver is given. */ 187 "Unknown mail storage driver %s", driver); 203 /* root not required for this storage */ 227 "Mail storage autodetection failed with home=%s", home); 283 /* storage doesn't use directories (e.g. shared root) */ 294 i_debug("Namespace %s: Creating storage despite: %s", 309 mail_storage_match_class(struct mail_storage *storage, argument 333 struct mail_storage *storage = user->storages; local 347 struct mail_storage *storage_class, *storage = NULL; local 448 struct mail_storage *storage; local 456 struct mail_storage *storage = *_storage; local 490 mail_storage_obj_ref(struct mail_storage *storage) argument 498 mail_storage_obj_unref(struct mail_storage *storage) argument 509 mail_storage_clear_error(struct mail_storage *storage) argument 518 mail_storage_set_error(struct mail_storage *storage, enum mail_error error, const char *string) argument 529 mail_storage_set_internal_error(struct mail_storage *storage) argument 544 mail_storage_set_critical(struct mail_storage *storage, const char *fmt, ...) argument 599 mail_storage_get_last_internal_error(struct mail_storage *storage, enum mail_error *error_r) argument 631 mail_storage_copy_list_error(struct mail_storage *storage, struct mailbox_list *list) argument 651 mail_storage_set_index_error(struct mail_storage *storage, struct mail_index *index) argument 667 mail_storage_get_settings(struct mail_storage *storage) argument 672 mail_storage_get_user(struct mail_storage *storage) argument 677 mail_storage_set_callbacks(struct mail_storage *storage, struct mail_storage_callbacks *callbacks, void *context) argument 685 mail_storage_purge(struct mail_storage *storage) argument 691 mail_storage_get_last_error(struct mail_storage *storage, enum mail_error *error_r) argument 730 mail_storage_last_error_push(struct mail_storage *storage) argument 744 mail_storage_last_error_pop(struct mail_storage *storage) argument 759 mail_storage_is_mailbox_file(struct mail_storage *storage) argument 765 mail_storage_set_error_from_errno(struct mail_storage *storage) argument 811 struct mail_storage *storage; local 1459 mail_storage_free_binary_cache(struct mail_storage *storage) argument 2891 mail_storage_get_lock_timeout(struct mail_storage *storage, unsigned int secs) argument [all...] |
H A D | fail-mail-storage.h | 11 fail_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list,
|
/dovecot/src/lib-storage/index/dbox-multi/ |
H A D | mdbox-storage-rebuild.h | 6 int mdbox_storage_rebuild_in_context(struct mdbox_storage *storage, 8 int mdbox_storage_rebuild(struct mdbox_storage *storage);
|
H A D | mdbox-file.h | 8 struct mdbox_storage *storage; member in struct:mdbox_file 15 mdbox_file_init(struct mdbox_storage *storage, uint32_t file_id); 17 mdbox_file_init_new_alt(struct mdbox_storage *storage); 26 void mdbox_files_free(struct mdbox_storage *storage); 27 void mdbox_files_sync_input(struct mdbox_storage *storage);
|
H A D | mdbox-file.c | 18 #include "mdbox-storage.h" 28 mdbox_find_and_move_open_file(struct mdbox_storage *storage, uint32_t file_id) argument 33 files = array_get(&storage->open_files, &count); 41 void mdbox_files_free(struct mdbox_storage *storage) argument 46 files = array_get(&storage->open_files, &count); 49 array_clear(&storage->open_files); 52 void mdbox_files_sync_input(struct mdbox_storage *storage) argument 57 files = array_get(&storage->open_files, &count); 65 mdbox_close_open_files(struct mdbox_storage *storage, unsigned int close_count) argument 70 files = array_get(&storage 137 mdbox_file_init_full(struct mdbox_storage *storage, uint32_t file_id, bool alt_dir) argument 176 mdbox_file_init(struct mdbox_storage *storage, uint32_t file_id) argument 182 mdbox_file_init_new_alt(struct mdbox_storage *storage) argument 222 mdbox_find_oldest_unused_file(struct mdbox_storage *storage, unsigned int *idx_r) argument 242 mdbox_file_close_timeout(struct mdbox_storage *storage) argument [all...] |
H A D | mdbox-storage.c | 18 #include "mdbox-storage-rebuild.h" 19 #include "mdbox-storage.h" 26 struct mdbox_storage *storage; local 29 pool = pool_alloconly_create("mdbox storage", 2048); 30 storage = p_new(pool, struct mdbox_storage, 1); 31 storage->storage.v = mdbox_dbox_storage_vfuncs; 32 storage->storage.storage 40 struct mdbox_storage *storage = MDBOX_STORAGE(_storage); local 70 struct mdbox_storage *storage = MDBOX_STORAGE(_storage); local 141 mdbox_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument 345 mdbox_storage_set_corrupted(struct mdbox_storage *storage) argument [all...] |
H A D | mdbox-deleted-storage.c | 18 #include "mdbox-storage-rebuild.h" 19 #include "mdbox-storage.h" 27 struct mdbox_storage *storage; local 30 pool = pool_alloconly_create("mdbox deleted storage", 2048); 31 storage = p_new(pool, struct mdbox_storage, 1); 32 storage->storage.v = mdbox_dbox_storage_vfuncs; 33 storage->storage.storage 39 mdbox_deleted_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument [all...] |
H A D | mdbox-storage-rebuild.c | 13 #include "mdbox-storage.h" 17 #include "mdbox-storage-rebuild.h" 47 struct mdbox_storage *storage; member in struct:mdbox_storage_rebuild_context 68 mdbox_storage_rebuild_init(struct mdbox_storage *storage, argument 73 i_assert(!storage->rebuilding_storage); 76 ctx->storage = storage; 84 ctx->storage->rebuilding_storage = TRUE; 91 i_assert(ctx->storage->rebuilding_storage); 93 ctx->storage 636 struct mail_storage *storage = &ctx->storage->storage.storage; local 663 struct mail_storage *storage = &ctx->storage->storage.storage; local 961 mdbox_storage_rebuild_in_context(struct mdbox_storage *storage, struct mdbox_map_atomic_context *atomic) argument 986 mdbox_storage_rebuild(struct mdbox_storage *storage) argument [all...] |
/dovecot/src/imap/ |
H A D | cmd-close.c | 11 struct mail_storage *storage; local 20 storage = mailbox_get_storage(mailbox); 24 client_send_untagged_storage_error(client, storage); 31 client_send_untagged_storage_error(client, storage);
|
/dovecot/src/lib-storage/index/shared/ |
H A D | shared-storage.h | 5 struct mail_storage storage; member in struct:shared_storage 14 #define SHARED_STORAGE(s) container_of(s, struct shared_storage, storage)
|
H A D | shared-storage.c | 8 #include "index-storage.h" 9 #include "mail-storage-service.h" 11 #include "fail-mail-storage.h" 12 #include "shared-storage.h" 20 struct shared_storage *storage; local 23 pool = pool_alloconly_create("shared storage", 1024); 24 storage = p_new(pool, struct shared_storage, 1); 25 storage->storage = shared_storage; 26 storage 34 struct shared_storage *storage = SHARED_STORAGE(_storage); local 106 get_nonexistent_user_location(struct shared_storage *storage, const char *username, string_t *location) argument 138 struct shared_storage *storage = SHARED_STORAGE(_storage); local [all...] |
/dovecot/src/lib-storage/index/cydir/ |
H A D | cydir-storage.h | 4 #include "index-storage.h" 10 struct mail_storage storage; member in struct:cydir_storage 15 struct cydir_storage *storage; member in struct:cydir_mailbox 18 #define CYDIR_STORAGE(s) container_of(s, struct cydir_storage, storage)
|
H A D | cydir-storage.c | 8 #include "cydir-storage.h" 17 struct cydir_storage *storage; local 20 pool = pool_alloconly_create("cydir storage", 512+256); 21 storage = p_new(pool, struct cydir_storage, 1); 22 storage->storage = cydir_storage; 23 storage->storage.pool = pool; 24 return &storage->storage; 38 cydir_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument [all...] |
/dovecot/src/lib-storage/index/pop3c/ |
H A D | pop3c-storage.c | 12 #include "pop3c-storage.h" 21 struct pop3c_storage *storage; local 24 pool = pool_alloconly_create("pop3c storage", 512+256); 25 storage = p_new(pool, struct pop3c_storage, 1); 26 storage->storage = pop3c_storage; 27 storage->storage.pool = pool; 28 return &storage->storage; 36 struct pop3c_storage *storage = POP3C_STORAGE(_storage); local 52 pop3c_client_create_from_set(struct mail_storage *storage, const struct pop3c_settings *set) argument 106 pop3c_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument [all...] |
H A D | pop3c-storage.h | 4 #include "index-storage.h" 9 struct mail_storage storage; member in struct:pop3c_storage 15 struct pop3c_storage *storage; member in struct:pop3c_mailbox 40 #define POP3C_STORAGE(s) container_of(s, struct pop3c_storage, storage)
|
/dovecot/src/lib-storage/index/dbox-common/ |
H A D | dbox-attachment.c | 33 if (file->storage->attachment_dir == NULL) { 34 mail_storage_set_critical(&file->storage->storage, 41 path_suffix = file->storage->v.get_attachment_path_suffix(file); 42 if (index_attachment_stream_get(file->storage->attachment_fs, 43 file->storage->attachment_dir,
|
/dovecot/src/lib-storage/index/ |
H A D | index-attribute.c | 6 #include "index-storage.h" 84 struct mail_storage *storage = box->storage; local 97 return index_storage_get_user_dict(storage, storage->user, dict_r); 101 return index_storage_get_user_dict(storage, storage->user, dict_r); 105 return index_storage_get_user_dict(storage, ns->owner, dict_r); 109 so use the storage's dict. */ 110 if (storage [all...] |
/dovecot/src/lib-storage/index/imapc/ |
H A D | imapc-storage.c | 16 #include "imapc-storage.h" 86 struct imapc_storage *storage; local 89 pool = pool_alloconly_create("imapc storage", 2048); 90 storage = p_new(pool, struct imapc_storage, 1); 91 storage->storage = imapc_storage; 92 storage->storage.pool = pool; 93 storage->root_ioloop = current_ioloop; 94 return &storage 97 imapc_copy_error_from_reply(struct imapc_storage *storage, enum mail_error default_error, const struct imapc_command_reply *reply) argument 391 struct imapc_storage *storage = IMAPC_STORAGE(_storage); local 444 struct imapc_storage *storage = IMAPC_STORAGE(_storage); local 477 imapc_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument 834 struct imapc_storage *storage = client->_storage; local 882 struct imapc_storage *storage = client->_storage; local 1026 struct imapc_storage *storage = mbox->storage; local 1054 imapc_namespace_find_mailbox(struct imapc_storage *storage, const char *name) argument 1106 struct imapc_storage *storage = context; local [all...] |
/dovecot/src/lib-storage/index/dbox-single/ |
H A D | sdbox-file.c | 12 #include "sdbox-storage.h" 40 file->file.storage = &mbox->storage->storage; 60 file->fd = file->storage->v. 125 struct dbox_storage *storage = file->file.storage; local 131 src = t_strdup_printf("%s/%s", storage->attachment_dir, *pathp); 132 dest = t_strdup_printf("%s/%s", storage->attachment_dir, 134 src_file = fs_file_init(storage 190 struct dbox_storage *storage = file->file.storage; local 292 struct mail_storage *storage = &file->storage->storage; local 405 struct dbox_storage *storage = sfile->file.storage; local [all...] |
/dovecot/src/lib-storage/index/raw/ |
H A D | raw-storage.h | 4 #include "index-storage.h" 10 struct mail_storage storage; member in struct:raw_storage 15 struct raw_storage *storage; member in struct:raw_mailbox 25 #define RAW_STORAGE(s) container_of(s, struct raw_storage, storage)
|
H A D | raw-storage.c | 10 #include "raw-storage.h" 32 ns_set->name = "raw-storage"; 37 /* raw storage doesn't have INBOX. We especially don't want LIST to 42 /* absolute paths are ok with raw storage */ 49 i_fatal("Couldn't create internal raw storage: %s", error); 78 i_assert(strcmp(box->storage->name, RAW_STORAGE_NAME) == 0); 103 struct raw_storage *storage; local 106 pool = pool_alloconly_create("raw storage", 512+256); 107 storage = p_new(pool, struct raw_storage, 1); 108 storage 124 raw_mailbox_alloc(struct mail_storage *storage, struct mailbox_list *list, const char *vname, enum mailbox_flags flags) argument [all...] |
/dovecot/src/plugins/snarf/ |
H A D | snarf-plugin.c | 8 #include "mail-storage-private.h" 146 struct snarf_mail_storage *sstorage = SNARF_CONTEXT(box->storage); 157 if (!snarf_box_find(box->storage->user, &snarf_list, &snarf_name)) 173 snarf_mailbox_alloc(struct mail_storage *storage, argument 177 struct snarf_mail_storage *sstorage = SNARF_CONTEXT_REQUIRE(storage); 190 mail_storage_set_critical(storage, 196 if (snarf_box_find(storage->user, &snarf_list, 205 mailbox_alloc(storage, list, vname, flags); 214 snarf_mail_storage_create(struct mail_storage *storage, const char *path) argument 217 struct mail_storage_vfuncs *v = storage 229 snarf_mail_storage_created(struct mail_storage *storage) argument [all...] |