Searched defs:box (Results 1 - 25 of 196) sorted by relevance

12345678

/dovecot/src/lib-storage/
H A Dmailbox-attribute-private.h5 struct mailbox *box; member in struct:mailbox_attribute_iter
H A Dmailbox-attribute-internal.c14 mailbox_attribute_specialuse_get(struct mailbox *box, argument
18 const struct mailbox_settings *set = box->set;
39 mailbox_attribute_comment_get(struct mailbox *box, argument
43 const struct mailbox_settings *set = box->set;
76 server_attribute_comment_get(struct mailbox *box, argument
80 const struct mail_storage_settings *set = box->storage->set;
101 server_attribute_admin_get(struct mailbox *box, argument
105 const struct mail_storage_settings *set = box->storage->set;
H A Dmailbox-guid-cache.c44 struct mailbox *box; local
70 box = mailbox_alloc(list, info->vname, 0);
71 if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID,
74 info->vname, mailbox_get_last_internal_error(box, NULL));
89 mailbox_free(&box);
H A Dmailbox-search-result-private.h7 struct mailbox *box; member in struct:mail_search_result
23 mailbox_search_result_alloc(struct mailbox *box, struct mail_search_args *args,
34 void mailbox_search_results_remove(struct mailbox *box, uint32_t uid);
H A Dmailbox-header.c10 mailbox_header_lookup_init_real(struct mailbox *box, argument
43 mail_cache_register_fields(box->cache, fields, count);
47 ctx->box = box;
65 mailbox_header_lookup_init(struct mailbox *box, const char *const headers[]) argument
70 ctx = mailbox_header_lookup_init_real(box, headers);
H A Dmailbox-keywords.c8 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 Dmailbox-recent-flags.c7 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 Dtest-mail-search-args-simplify.c273 struct mailbox box = { .opened = TRUE, .storage = &storage }; local
279 box.index = mail_index_alloc(NULL, NULL, "dovecot.index.");
286 mail_search_args_init(args, &box, FALSE, NULL);
296 mail_index_free(&box.index);
/dovecot/src/lib-storage/index/cydir/
H A Dcydir-storage.h14 struct mailbox box; member in struct:cydir_mailbox
19 #define CYDIR_MAILBOX(s) container_of(s, struct cydir_mailbox, box)
/dovecot/src/imap/
H A Dcmd-create.c12 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 Dcmd-delete.c10 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 Dimap-expunge.c8 int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg, argument
17 if (mailbox_is_readonly(box)) {
30 t = mailbox_transaction_begin(box, MAILBOX_TRANSACTION_FLAG_REFRESH,
H A Dcmd-resetkey.c25 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-storage/index/
H A Dindex-pop3-uidl.c8 void index_pop3_uidl_set_max_uid(struct mailbox *box, argument
17 mail_index_update_header_ext(trans, box->pop3_uidl_hdr_ext_id,
34 mail->box->pop3_uidl_hdr_ext_id,
68 mail_index_get_header_ext(trans->view, trans->box->pop3_uidl_hdr_ext_id,
88 view = mail_index_view_open(trans->box->index);
89 seen_all_msgs = mail_index_refresh(trans->box->index) == 0 &&
102 index_pop3_uidl_set_max_uid(trans->box, trans->itrans,
H A Dindex-rebuild.h7 struct mailbox *box; member in struct:index_rebuild_context
24 index_index_rebuild_init(struct mailbox *box, struct mail_index_view *view,
/dovecot/src/lib-storage/index/raw/
H A Draw-storage.h14 struct mailbox box; member in struct:raw_mailbox
26 #define RAW_MAILBOX(s) container_of(s, struct raw_mailbox, box)
H A Draw-sync.c21 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/mail-crypt/
H A Dmail-crypt-plugin.h9 struct mailbox *box; member in struct:mail_crypt_cache
/dovecot/src/plugins/push-notification/
H A Dpush-notification-txn-mbox.c14 struct mailbox *box)
18 txn->mbox_txn->mailbox = mailbox_get_vname(box);
13 push_notification_txn_mbox_create(struct push_notification_txn *txn, struct mailbox *box) argument
/dovecot/src/doveadm/
H A Ddoveadm-mail-search.c17 struct mailbox *box; local
26 box = doveadm_mail_iter_get_mailbox(iter);
28 if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID, &metadata) < 0) {
30 mailbox_get_vname(box),
31 mailbox_get_last_internal_error(box, NULL));
33 doveadm_mail_failed_mailbox(ctx, box);
/dovecot/src/doveadm/dsync/
H A Ddsync-brain-mailbox-tree-sync.c10 sync_create_box(struct dsync_brain *brain, struct mailbox *box, argument
24 if (mailbox_create(box, &update, FALSE) < 0) {
25 errstr = mailbox_get_last_internal_error(box, &error);
28 mailbox_get_vname(box), errstr);
39 if (mailbox_sync(box, MAILBOX_SYNC_FLAG_FULL_READ) < 0) {
41 mailbox_get_vname(box),
42 mailbox_get_last_internal_error(box, error_r));
52 if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID, &metadata) < 0) {
54 mailbox_get_vname(box),
55 mailbox_get_last_internal_error(box, error_
116 struct mailbox *box = NULL, *destbox; local
[all...]
H A Ddsync-mailbox.c26 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);
/dovecot/src/lib-storage/index/dbox-single/
H A Dsdbox-storage.h25 struct mailbox box; member in struct:sdbox_mailbox
37 #define SDBOX_MAILBOX(s) container_of(s, struct sdbox_mailbox, box)
47 int sdbox_mailbox_create_indexes(struct mailbox *box,
50 void sdbox_set_mailbox_corrupted(struct mailbox *box);
/dovecot/src/lib-storage/index/mbox/
H A Dmbox-sync-list-index.c21 int mbox_list_index_has_changed(struct mailbox *box, argument
25 struct mbox_mailbox *mbox = MBOX_MAILBOX(box);
34 ret = index_storage_list_index_has_changed(box, list_view, seq, quick);
35 if (ret != 0 || box->storage->set->mailbox_list_index_very_dirty_syncs)
47 ret = mailbox_get_path_to(box, MAILBOX_LIST_PATH_TYPE_MAILBOX, &path);
53 mailbox_set_critical(box, "stat(%s) failed: %m", path);
62 void mbox_list_index_update_sync(struct mailbox *box, argument
66 struct mbox_mailbox *mbox = MBOX_MAILBOX(box);
75 index_storage_list_index_update_sync(box, trans, seq);
/dovecot/src/lib-storage/list/
H A Dmailbox-list-index-iter.c73 struct mailbox *box; local
121 box = mailbox_alloc(ctx->ctx.list, ctx->info.vname, 0);
122 mailbox_list_index_status_set_info_flags(box, node->uid,
124 mailbox_free(&box);

Completed in 142 milliseconds

12345678