| /dovecot/src/lib-storage/ |
| H A D | mailbox-watch.h | 4 void mailbox_watch_add(struct mailbox *box, const char *path); 5 void mailbox_watch_remove_all(struct mailbox *box); 9 int mailbox_watch_extract_notify_fd(struct mailbox *box, const char **reason_r);
|
| H A D | mailbox-recent-flags.c | 7 void mailbox_recent_flags_set_uid(struct mailbox *box, uint32_t uid) argument 9 if (uid <= box->recent_flags_prev_uid) { 10 if (seq_range_exists(&box->recent_flags, uid)) 13 mailbox_set_critical(box, "Recent flags state corrupted"); 14 array_clear(&box->recent_flags); 15 box->recent_flags_count = 0; 17 mailbox_recent_flags_set_uid_forced(box, uid); 20 void mailbox_recent_flags_set_uid_forced(struct mailbox *box, uint32_t uid) argument 22 box->recent_flags_prev_uid = uid; 24 if (!mailbox_recent_flags_have_uid(box, ui 30 mailbox_recent_flags_set_seqs(struct mailbox *box, struct mail_index_view *view, uint32_t seq1, uint32_t seq2) argument 42 mailbox_recent_flags_have_uid(struct mailbox *box, uint32_t uid) argument 48 mailbox_recent_flags_reset(struct mailbox *box) argument 56 mailbox_recent_flags_count(struct mailbox *box) argument 85 mailbox_recent_flags_expunge_seqs(struct mailbox *box, uint32_t seq1, uint32_t seq2) argument 100 mailbox_recent_flags_expunge_uid(struct mailbox *box, uint32_t uid) argument [all...] |
| H A D | mailbox-recent-flags.h | 7 void mailbox_recent_flags_set_uid(struct mailbox *box, uint32_t uid); 8 void mailbox_recent_flags_set_uid_forced(struct mailbox *box, uint32_t uid); 9 void mailbox_recent_flags_set_seqs(struct mailbox *box, 12 bool mailbox_recent_flags_have_uid(struct mailbox *box, uint32_t uid); 13 void mailbox_recent_flags_reset(struct mailbox *box); 14 unsigned int mailbox_recent_flags_count(struct mailbox *box); 15 void mailbox_recent_flags_expunge_seqs(struct mailbox *box, 17 void mailbox_recent_flags_expunge_uid(struct mailbox *box, uint32_t uid);
|
| H A D | mailbox-keywords.c | 8 mailbox_keywords_create_skip(struct mailbox *box, argument 19 if (mailbox_keyword_is_valid(box, *keywords, &error)) 23 kw = mail_index_keywords_create(box->index, keywords); 29 mailbox_keywords_are_valid(struct mailbox *box, const char *const keywords[], argument 35 if (!mailbox_keyword_is_valid(box, keywords[i], error_r)) 41 int mailbox_keywords_create(struct mailbox *box, const char *const keywords[], argument 46 i_assert(box->opened); 50 if (!mailbox_keywords_are_valid(box, keywords, &error)) { 51 mail_storage_set_error(box->storage, MAIL_ERROR_PARAMS, error); 55 *keywords_r = mail_index_keywords_create(box 60 mailbox_keywords_create_valid(struct mailbox *box, const char *const keywords[]) argument 79 mailbox_keywords_create_from_indexes(struct mailbox *box, const ARRAY_TYPE(keyword_indexes) *idx) argument 97 mailbox_keyword_is_valid(struct mailbox *box, const char *keyword, const char **error_r) argument [all...] |
| H A D | mail-storage.c | 570 void mailbox_set_critical(struct mailbox *box, const char *fmt, ...) argument 576 mail_storage_set_critical(box->storage, "Mailbox %s: %s", 577 box->vname, t_strdup_vprintf(fmt, va)); 589 mailbox_set_critical(mail->box, "Saving mail: %s", 592 mailbox_set_critical(mail->box, "UID=%u: %s", 611 const char *mailbox_get_last_internal_error(struct mailbox *box, argument 614 return mail_storage_get_last_internal_error(mailbox_get_storage(box), 641 void mailbox_set_index_error(struct mailbox *box) argument 643 if (mail_index_is_deleted(box->index)) { 644 mailbox_set_deleted(box); 716 mailbox_get_last_error(struct mailbox *box, enum mail_error *error_r) argument 722 mailbox_get_last_mail_error(struct mailbox *box) argument 812 struct mailbox *box; local 865 struct mailbox *box = NULL; local 933 mailbox_set_reason(struct mailbox *box, const char *reason) argument 940 mailbox_is_autocreated(struct mailbox *box) argument 950 mailbox_is_autosubscribed(struct mailbox *box) argument 958 mailbox_autocreate(struct mailbox *box) argument 982 mailbox_autocreate_and_reopen(struct mailbox *box) argument 1036 mailbox_verify_name_prefix(struct mailbox *box, const char **error_r) argument 1070 mailbox_verify_name(struct mailbox *box) argument 1123 mailbox_verify_existing_name(struct mailbox *box) argument 1162 mailbox_skip_create_name_restrictions(struct mailbox *box, bool set) argument 1167 mailbox_verify_create_name(struct mailbox *box) argument 1231 mailbox_exists(struct mailbox *box, bool auto_boxes, enum mailbox_existence *existence_r) argument 1276 mailbox_open_full(struct mailbox *box, struct istream *input) argument 1336 mailbox_try_undelete(struct mailbox *box) argument 1363 mailbox_open(struct mailbox *box) argument 1394 mailbox_alloc_index_pvt(struct mailbox *box) argument 1420 mailbox_open_index_pvt(struct mailbox *box) argument 1442 mailbox_open_stream(struct mailbox *box, struct istream *input) argument 1447 mailbox_enable(struct mailbox *box, enum mailbox_feature features) argument 1454 mailbox_get_enabled_features(struct mailbox *box) argument 1469 mailbox_close(struct mailbox *box) argument 1494 struct mailbox *box = *_box; local 1529 mailbox_is_any_inbox(struct mailbox *box) argument 1534 mailbox_copy_cache_decisions_from_inbox(struct mailbox *box) argument 1562 mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument 1598 mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 1614 mailbox_mark_index_deleted(struct mailbox *box, bool del) argument 1661 mailbox_close_reset_path(struct mailbox *box) argument 1668 mailbox_delete(struct mailbox *box) argument 1713 mailbox_delete_empty(struct mailbox *box) argument 1878 mailbox_set_subscribed(struct mailbox *box, bool set) argument 1891 mailbox_is_subscribed(struct mailbox *box) argument 1901 mailbox_get_storage(const struct mailbox *box) argument 1907 mailbox_get_namespace(const struct mailbox *box) argument 1912 mailbox_get_settings(struct mailbox *box) argument 1917 mailbox_get_name(const struct mailbox *box) argument 1922 mailbox_get_vname(const struct mailbox *box) argument 1927 mailbox_is_readonly(struct mailbox *box) argument 1950 mailbox_get_status_set_defaults(struct mailbox *box, struct mailbox_status *status_r) argument 1962 mailbox_get_status(struct mailbox *box, enum mailbox_status_items items, struct mailbox_status *status_r) argument 1976 mailbox_get_open_status(struct mailbox *box, enum mailbox_status_items items, struct mailbox_status *status_r) argument 1988 mailbox_get_metadata(struct mailbox *box, enum mailbox_metadata_items items, struct mailbox_metadata *metadata_r) argument 2006 mailbox_get_private_flags_mask(struct mailbox *box) argument 2017 mailbox_sync_init(struct mailbox *box, enum mailbox_sync_flags flags) argument 2052 struct mailbox *box = ctx->box; local 2080 mailbox_sync(struct mailbox *box, enum mailbox_sync_flags flags) argument 2096 mailbox_notify_changes(struct mailbox *box, mailbox_notify_callback_t *callback, void *context) argument 2107 mailbox_notify_changes_stop(struct mailbox *box) argument 2160 struct mailbox *box = ctx->transaction->box; local 2198 mailbox_transaction_begin(struct mailbox *box, enum mailbox_transaction_flags flags, const char *reason) argument 2232 struct mailbox *box = t->box; local 2261 struct mailbox *box = t->box; local 2268 mailbox_transaction_get_count(const struct mailbox *box) argument 2335 struct mailbox *box = ctx->transaction->box; local 2429 struct mailbox *box = (*ctx)->transaction->box; local 2667 mailbox_is_inconsistent(struct mailbox *box) argument 2672 mailbox_set_deleted(struct mailbox *box) argument 2679 get_path_to(struct mailbox *box, enum mailbox_list_path_type type, const char **internal_path, const char **path_r) argument 2702 mailbox_get_path_to(struct mailbox *box, enum mailbox_list_path_type type, const char **path_r) argument 2712 mailbox_get_path(struct mailbox *box) argument 2719 mailbox_get_index_path(struct mailbox *box) argument 2726 mailbox_get_permissions_if_not_set(struct mailbox *box) argument 2745 mailbox_get_permissions(struct mailbox *box) argument 2759 mailbox_refresh_permissions(struct mailbox *box) argument 2765 mailbox_create_fd(struct mailbox *box, const char *path, int flags, int *fd_r) argument 2816 mailbox_mkdir(struct mailbox *box, const char *path, enum mailbox_list_path_type type) argument 2849 mailbox_create_missing_dir(struct mailbox *box, enum mailbox_list_path_type type) argument 3021 mailbox_lock_file_create(struct mailbox *box, const char *lock_fname, unsigned int lock_secs, struct file_lock **lock_r, const char **error_r) argument [all...] |
| H A D | mailbox-watch.c | 22 static void notify_delay_callback(struct mailbox *box) argument 24 timeout_remove(&box->to_notify_delay); 25 box->notify_callback(box, box->notify_context); 28 static void notify_timeout(struct mailbox *box) argument 34 for (file = box->notify_files; file != NULL; file = file->next) { 43 notify_delay_callback(box); 46 static void notify_callback(struct mailbox *box) argument 48 timeout_reset(box 57 mailbox_watch_add(struct mailbox *box, const char *path) argument 87 mailbox_watch_remove_all(struct mailbox *box) argument 109 mailbox_watch_extract_notify_fd(struct mailbox *box, const char **reason_r) argument [all...] |
| H A D | fail-mailbox.c | 11 static bool fail_mailbox_is_readonly(struct mailbox *box ATTR_UNUSED) 16 static int fail_mailbox_enable(struct mailbox *box, argument 19 box->enabled_features = features; 23 static int fail_mailbox_exists(struct mailbox *box ATTR_UNUSED, 31 static int fail_mailbox_open(struct mailbox *box) argument 33 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND, 34 T_MAIL_ERR_MAILBOX_NOT_FOUND(box->vname)); 38 static void fail_mailbox_close(struct mailbox *box ATTR_UNUSED) 42 static void fail_mailbox_free(struct mailbox *box ATTR_UNUSED) 47 fail_mailbox_create(struct mailbox *box, argument 57 fail_mailbox_update(struct mailbox *box, const struct mailbox_update *update ATTR_UNUSED) argument 65 fail_mailbox_delete(struct mailbox *box) argument 92 fail_mailbox_get_metadata(struct mailbox *box, enum mailbox_metadata_items items ATTR_UNUSED, struct mailbox_metadata *metadata_r ATTR_UNUSED) argument 101 fail_mailbox_set_subscribed(struct mailbox *box, bool set ATTR_UNUSED) argument 110 fail_mailbox_sync_init(struct mailbox *box, enum mailbox_sync_flags flags ATTR_UNUSED) argument 142 fail_mailbox_transaction_begin(struct mailbox *box, enum mailbox_transaction_flags flags, const char *reason ATTR_UNUSED) argument 311 struct mailbox *box; local [all...] |
| H A D | mailbox-attribute-private.h | 5 struct mailbox *box; member in struct:mailbox_attribute_iter
|
| /dovecot/src/lib-storage/index/ |
| H A D | index-storage.c | 64 static void index_cache_register_defaults(struct mailbox *box) argument 66 struct index_mailbox_context *ibox = INDEX_STORAGE_CONTEXT(box); 67 const struct mail_storage_settings *set = box->storage->set; 68 struct mail_cache *cache = box->cache; 78 box->mail_cache_disabled = TRUE; 95 void index_storage_lock_notify(struct mailbox *box, argument 99 struct index_mailbox_context *ibox = INDEX_STORAGE_CONTEXT(box); 100 struct mail_storage *storage = box->storage; 130 notify_no(box, str, storage->callback_context); 139 notify_ok(box, st 144 index_storage_lock_notify_reset(struct mailbox *box) argument 153 index_mailbox_alloc_index(struct mailbox *box, struct mail_index **index_r) argument 170 index_storage_mailbox_exists(struct mailbox *box, bool auto_boxes ATTR_UNUSED, enum mailbox_existence *existence_r) argument 177 index_storage_mailbox_exists_full(struct mailbox *box, const char *subdir, enum mailbox_existence *existence_r) argument 236 index_storage_mailbox_alloc_index(struct mailbox *box) argument 283 index_storage_mailbox_open(struct mailbox *box, bool move_to_memory) argument 365 index_storage_mailbox_alloc(struct mailbox *box, const char *vname, enum mailbox_flags flags, const char *index_prefix) argument 407 index_storage_mailbox_enable(struct mailbox *box, enum mailbox_feature feature) argument 418 index_storage_mailbox_close(struct mailbox *box) argument 441 index_storage_mailbox_unref_indexes(struct mailbox *box) argument 449 index_storage_mailbox_free(struct mailbox *box) argument 456 index_storage_mailbox_update_cache(struct mailbox *box, const struct mailbox_update *update) argument 502 index_storage_mailbox_update_pvt(struct mailbox *box, const struct mailbox_update *update) argument 529 index_storage_mailbox_update_common(struct mailbox *box, const struct mailbox_update *update) argument 544 index_storage_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 604 index_storage_mailbox_create(struct mailbox *box, bool directory) argument 682 index_storage_mailbox_delete_dir(struct mailbox *box, bool mailbox_deleted) argument 732 mailbox_expunge_all_data(struct mailbox *box) argument 767 index_storage_mailbox_delete_pre(struct mailbox *box) argument 826 index_storage_mailbox_delete_post(struct mailbox *box) argument 860 index_storage_mailbox_delete(struct mailbox *box) argument 903 index_mailbox_update_last_temp_file_scan(struct mailbox *box) argument 919 index_storage_is_readonly(struct mailbox *box) argument 924 index_storage_is_inconsistent(struct mailbox *box) argument 1057 index_storage_set_subscribed(struct mailbox *box, bool set) argument 1108 index_storage_expunging_init(struct mailbox *box) argument 1121 index_storage_expunging_deinit(struct mailbox *box) argument 1129 index_storage_expunging_want_updates(struct mailbox *box) argument 1142 index_storage_expunged_sync_begin(struct mailbox *box, struct mail_index_sync_ctx **ctx_r, struct mail_index_view **view_r, struct mail_index_transaction **trans_r, enum mail_index_sync_flags flags) argument 1234 index_mailbox_fix_inconsistent_existence(struct mailbox *box, const char *path) argument [all...] |
| H A D | index-status.c | 11 get_last_cached_seq(struct mailbox *box, uint32_t *last_cached_seq_r) argument 18 if (!mail_cache_exists(box->cache)) 21 cache_view = mail_cache_view_open(box->cache, box->view); 22 hdr = mail_index_get_header(box->view); 32 int index_storage_get_status(struct mailbox *box, argument 42 if (!box->opened) { 43 if (mailbox_open(box) < 0) 45 if (mailbox_sync(box, MAILBOX_SYNC_FLAG_FAST) < 0) 48 index_storage_get_open_status(box, item 52 index_storage_count_pvt_unseen(struct mailbox *box) argument 84 index_storage_find_first_pvt_unseen_seq(struct mailbox *box) argument 110 index_storage_get_open_status(struct mailbox *box, enum mailbox_status_items items, struct mailbox_status *status_r) argument 193 get_metadata_cache_fields(struct mailbox *box, struct mailbox_metadata *metadata_r) argument 225 get_metadata_precache_fields(struct mailbox *box, struct mailbox_metadata *metadata_r) argument 270 index_mailbox_get_first_save_date(struct mailbox *box, struct mailbox_metadata *metadata_r) argument 308 index_mailbox_get_metadata(struct mailbox *box, enum mailbox_metadata_items items, struct mailbox_metadata *metadata_r) argument [all...] |
| H A D | index-storage.h | 54 void index_storage_lock_notify(struct mailbox *box, 57 void index_storage_lock_notify_reset(struct mailbox *box); 59 int index_storage_mailbox_alloc_index(struct mailbox *box); 60 void index_storage_mailbox_alloc(struct mailbox *box, const char *vname, 63 int index_storage_mailbox_exists(struct mailbox *box, bool auto_boxes, 65 int index_storage_mailbox_exists_full(struct mailbox *box, const char *subdir, 68 int index_storage_mailbox_open(struct mailbox *box, bool move_to_memory); 69 int index_storage_mailbox_enable(struct mailbox *box, 71 void index_storage_mailbox_close(struct mailbox *box); 72 void index_storage_mailbox_free(struct mailbox *box); [all...] |
| /dovecot/src/imap/ |
| H A D | cmd-delete.c | 10 struct mailbox *box; local 23 box = mailbox_alloc(ns->list, name, 0); 24 mailbox_set_reason(box, "DELETE"); 25 if (mailbox_is_any_inbox(box)) { 28 mailbox_free(&box); 33 mailbox_backends_equal(box, client->mailbox)) { 40 if (mailbox_delete(box) == 0) 43 errstr = mailbox_get_last_error(box, &error); 45 client_send_box_error(cmd, box); 51 mailbox_free(&box); [all...] |
| H A D | imap-expunge.h | 6 int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg,
|
| H A D | cmd-subscribe.c | 9 subscribe_is_valid_name(struct client_command_context *cmd, struct mailbox *box) argument 14 if ((ret = mailbox_exists(box, TRUE, &existence)) < 0) { 15 client_send_box_error(cmd, box); 21 mailbox_get_vname(box))); 37 struct mailbox *box, *box2; local 51 box = mailbox_alloc(ns->list, mailbox, 0); 52 mailbox_set_reason(box, subscribe ? "SUBSCRIBE" : "UNSUBSCRIBE"); 54 if (!subscribe_is_valid_name(cmd, box)) { 55 mailbox_free(&box); 65 /* try to unsubscribe both "box" an [all...] |
| H A D | cmd-create.c | 12 struct mailbox *box; local 40 box = mailbox_alloc(ns->list, mailbox, 0); 41 mailbox_set_reason(box, "CREATE"); 42 if (mailbox_create(box, NULL, directory) < 0) 43 client_send_box_error(cmd, box); 46 mailbox_free(&box);
|
| H A D | cmd-resetkey.c | 25 struct mailbox *box; local 51 box = mailbox_alloc(ns->list, mailbox, flags); 52 mailbox_set_reason(box, "RESETKEY"); 53 if (mailbox_open(box) < 0) { 54 client_send_box_error(cmd, box); 55 mailbox_free(&box); 60 if (imap_urlauth_reset_mailbox_key(cmd->client->urlauth_ctx, box) < 0) { 62 mailbox_free(&box); 73 mailbox_free(&box);
|
| /dovecot/src/lib-imap-urlauth/ |
| H A D | imap-urlauth-backend.h | 8 int imap_urlauth_backend_get_mailbox_key(struct mailbox *box, bool create, 12 int imap_urlauth_backend_reset_mailbox_key(struct mailbox *box);
|
| H A D | imap-urlauth-backend.c | 16 imap_urlauth_backend_trans_set_mailbox_key(struct mailbox *box, argument 25 if (mailbox_open(box) < 0) { 26 *error_r = mailbox_get_last_error(box, error_code_r); 31 mailbox_transaction_begin(box, 45 *error_r = mailbox_get_last_error(box, error_code_r); 53 imap_urlauth_backend_trans_get_mailbox_key(struct mailbox *box, argument 59 struct mail_user *user = mail_storage_get_user(mailbox_get_storage(box)); 68 ret = mailbox_attribute_get(box, MAIL_ATTRIBUTE_TYPE_PRIVATE, 75 (ret > 0 ? "" : "no "), mailbox_get_vname(box)); 82 ret = imap_urlauth_backend_trans_set_mailbox_key(box, 109 imap_urlauth_backend_get_mailbox_key(struct mailbox *box, bool create, unsigned char mailbox_key_r[IMAP_URLAUTH_KEY_LEN], const char **error_r, enum mail_error *error_code_r) argument 120 imap_urlauth_backend_reset_mailbox_key(struct mailbox *box) argument 134 imap_urlauth_backend_mailbox_reset_key(struct mailbox *box) argument 155 struct mailbox *box; local [all...] |
| /dovecot/src/lib-storage/index/raw/ |
| H A D | raw-sync.h | 7 raw_storage_sync_init(struct mailbox *box, enum mailbox_sync_flags flags);
|
| H A D | raw-sync.c | 21 sync_flags = index_storage_get_sync_flags(&mbox->box) | 25 if (mail_index_view_get_messages_count(mbox->box.view) > 0) { 31 ret = mail_index_sync_begin(mbox->box.index, &index_sync_ctx, 35 mailbox_set_index_error(&mbox->box); 46 mailbox_recent_flags_set_uid(&mbox->box, 1); 50 mailbox_set_index_error(&mbox->box); 58 raw_storage_sync_init(struct mailbox *box, enum mailbox_sync_flags flags) argument 60 struct raw_mailbox *mbox = RAW_MAILBOX(box); 66 return index_mailbox_sync_init(box, flags, ret < 0);
|
| /dovecot/src/plugins/acl/ |
| H A D | acl-mailbox.c | 27 struct acl_object *acl_mailbox_get_aclobj(struct mailbox *box) argument 29 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box); 34 int acl_mailbox_right_lookup(struct mailbox *box, unsigned int right_idx) argument 36 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box); 42 struct acl_mailbox_list *alist = ACL_LIST_CONTEXT_REQUIRE(box->list); 49 mail_storage_set_internal_error(box->storage); 53 mail_storage_set_error(box->storage, MAIL_ERROR_PERM, 58 static bool acl_is_readonly(struct mailbox *box) argument 60 struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(box); 63 if (abox->module_ctx.super.is_readonly(box)) 83 acl_mailbox_free(struct mailbox *box) argument 91 acl_mailbox_copy_acls_from_parent(struct mailbox *box) argument 117 acl_mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument 157 acl_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 168 acl_mailbox_fail_not_found(struct mailbox *box) argument 183 acl_mailbox_delete(struct mailbox *box) argument 235 acl_get_write_rights(struct mailbox *box, bool *flags_r, bool *flag_seen_r, bool *flag_del_r) argument 362 acl_save_get_flags(struct mailbox *box, enum mail_flags *flags, enum mail_flags *pvt_flags, struct mail_keywords **keywords) argument 390 struct mailbox *box = ctx->transaction->box; local 462 acl_mailbox_exists(struct mailbox *box, bool auto_boxes, enum mailbox_existence *existence_r) argument 489 acl_mailbox_open_check_acl(struct mailbox *box) argument 531 acl_mailbox_open(struct mailbox *box) argument 541 acl_mailbox_get_status(struct mailbox *box, enum mailbox_status_items items, struct mailbox_status *status_r) argument 564 acl_mailbox_allocated(struct mailbox *box) argument [all...] |
| H A D | acl-attributes.c | 32 if (!t->box->storage->user->dsyncing) { 33 mail_storage_set_error(t->box->storage, MAIL_ERROR_PERM, 38 if (mailbox_attribute_value_to_string(t->box->storage, value, 49 mail_storage_set_error(t->box->storage, MAIL_ERROR_PARAMS, error); 56 static int acl_attribute_get_acl(struct mailbox *box, const char *key, argument 59 struct acl_object *aclobj = acl_mailbox_get_aclobj(box); 67 if (!box->storage->user->dsyncing) { 68 mail_storage_set_error(box->storage, MAIL_ERROR_PERM, 80 mail_storage_set_error(box->storage, MAIL_ERROR_PARAMS, 95 mail_storage_set_internal_error(box 99 acl_have_attribute_rights(struct mailbox *box) argument 151 acl_attribute_get(struct mailbox *box, enum mail_attribute_type type, const char *key, struct mail_attribute_value *value_r) argument 166 acl_attribute_iter_init(struct mailbox *box, enum mail_attribute_type type, const char *prefix) argument [all...] |
| /dovecot/src/lib-storage/index/cydir/ |
| H A D | cydir-storage.c | 49 mbox->box = cydir_mailbox; 50 mbox->box.pool = pool; 51 mbox->box.storage = storage; 52 mbox->box.list = list; 53 mbox->box.mail_vfuncs = &cydir_mail_vfuncs; 55 index_storage_mailbox_alloc(&mbox->box, vname, flags, MAIL_INDEX_PREFIX); 58 return &mbox->box; 61 static int cydir_mailbox_open(struct mailbox *box) argument 63 const char *box_path = mailbox_get_path(box); 69 mail_storage_set_error(box 90 cydir_mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument 102 cydir_notify_changes(struct mailbox *box) argument [all...] |
| /dovecot/src/lib-storage/index/maildir/ |
| H A D | maildir-storage.c | 34 static void maildir_mailbox_close(struct mailbox *box); 160 mkdir_verify(struct mailbox *box, const char *dir, bool verify) argument 170 mailbox_set_critical(box, "stat(%s) failed: %m", dir); 175 perm = mailbox_get_permissions(box); 184 mail_storage_set_error(box->storage, MAIL_ERROR_EXISTS, 187 mail_storage_set_error(box->storage, MAIL_ERROR_NOTFOUND, 190 if (box->list->ns->type == MAIL_NAMESPACE_TYPE_SHARED) { 192 mail_storage_set_error(box->storage, MAIL_ERROR_PERM, 196 mailbox_set_critical(box, "%s", 199 mailbox_set_critical(box, "mkdi 238 create_maildir_subdirs(struct mailbox *box, bool verify) argument 290 maildir_mailbox_open_existing(struct mailbox *box) argument 318 maildir_storage_is_readonly(struct mailbox *box) argument 335 maildir_mailbox_exists(struct mailbox *box, bool auto_boxes ATTR_UNUSED, enum mailbox_existence *existence_r) argument 341 maildir_mailbox_open(struct mailbox *box) argument 389 maildir_create_shared(struct mailbox *box) argument 428 maildir_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 464 maildir_create_maildirfolder_file(struct mailbox *box) argument 510 maildir_mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument 542 maildir_mailbox_get_metadata(struct mailbox *box, enum mailbox_metadata_items items, struct mailbox_metadata *metadata_r) argument 559 maildir_mailbox_close(struct mailbox *box) argument 576 maildir_notify_changes(struct mailbox *box) argument 622 maildir_get_private_flags_mask(struct mailbox *box) argument [all...] |
| /dovecot/src/doveadm/dsync/ |
| H A D | dsync-mailbox.c | 26 int dsync_mailbox_lock(struct dsync_brain *brain, struct mailbox *box, argument 33 if (mailbox_open(box) < 0) { 34 i_error("Can't open mailbox %s: %s", mailbox_get_vname(box), 35 mailbox_get_last_internal_error(box, &brain->mail_error)); 39 ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_INDEX, &path); 41 i_error("Can't get mailbox %s path: %s", mailbox_get_vname(box), 42 mailbox_get_last_internal_error(box, &brain->mail_error)); 53 if (mailbox_lock_file_create(box, DSYNC_MAILBOX_LOCK_FILENAME, 57 box->vname, error);
|