/dovecot/src/lib-storage/index/ |
H A D | index-mailbox-size.h | 8 void index_mailbox_vsize_update_deinit(struct mailbox_vsize_update **update); 10 void index_mailbox_vsize_hdr_expunge(struct mailbox_vsize_update *update, 13 bool index_mailbox_vsize_update_try_lock(struct mailbox_vsize_update *update); 14 bool index_mailbox_vsize_update_wait_lock(struct mailbox_vsize_update *update); 16 bool index_mailbox_vsize_want_updates(struct mailbox_vsize_update *update);
|
H A D | index-mailbox-size.c | 31 locking. The final vsize header update requires committing a transaction, 54 static void vsize_header_refresh(struct mailbox_vsize_update *update) argument 59 if (update->view != NULL) 60 mail_index_view_close(&update->view); 61 (void)mail_index_refresh(update->box->index); 62 update->view = mail_index_view_open(update->box->index); 64 mail_index_get_header_ext(update->view, update->box->vsize_hdr_ext_id, 67 memcpy(&update 84 index_mailbox_vsize_check_rebuild(struct mailbox_vsize_update *update) argument 111 struct mailbox_vsize_update *update; local 122 vsize_update_lock_full(struct mailbox_vsize_update *update, unsigned int lock_secs) argument 152 index_mailbox_vsize_update_try_lock(struct mailbox_vsize_update *update) argument 157 index_mailbox_vsize_update_wait_lock(struct mailbox_vsize_update *update) argument 162 index_mailbox_vsize_want_updates(struct mailbox_vsize_update *update) argument 168 index_mailbox_vsize_update_write(struct mailbox_vsize_update *update) argument 222 struct mailbox_vsize_update *update = *_update; local 236 index_mailbox_vsize_hdr_expunge(struct mailbox_vsize_update *update, uint32_t uid, uoff_t vsize) argument 260 index_mailbox_vsize_hdr_add_missing(struct mailbox_vsize_update *update, bool require_result) argument 360 struct mailbox_vsize_update *update; local 444 struct mailbox_vsize_update *update; local [all...] |
H A D | index-storage.c | 457 const struct mailbox_update *update) 459 const struct mailbox_cache_field *updates = update->cache_updates; 503 const struct mailbox_update *update) 516 if (update->min_highest_modseq != 0 && 517 mail_index_modseq_get_highest(view) < update->min_highest_pvt_modseq) { 520 update->min_highest_pvt_modseq); 530 const struct mailbox_update *update) 534 if (update->cache_updates != NULL) 535 index_storage_mailbox_update_cache(box, update); 537 if (update 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 [all...] |
/dovecot/src/plugins/acl/ |
H A D | acl-backend-vfile-update.c | 31 i_error("Can't update acl object '%s': No local acl file path", 60 const struct acl_rights_update *update) 67 update->rights.rights, update->modify_mode); 69 update->rights.neg_rights, 70 update->neg_modify_mode); 82 const struct acl_rights_update *update) 87 if (update->modify_mode == ACL_MODIFY_MODE_REMOVE && 88 update->neg_modify_mode == ACL_MODIFY_MODE_REMOVE) { 94 right.id_type = update 59 vfile_object_modify_right(struct acl_object *aclobj, unsigned int idx, const struct acl_rights_update *update) argument 81 vfile_object_add_right(struct acl_object *aclobj, unsigned int idx, const struct acl_rights_update *update) argument 194 acl_backend_vfile_object_update(struct acl_object *_aclobj, const struct acl_rights_update *update) argument [all...] |
H A D | acl-mailbox.c | 97 struct acl_rights_update update; local 99 i_zero(&update); 100 update.modify_mode = ACL_MODIFY_MODE_REPLACE; 101 update.neg_modify_mode = ACL_MODIFY_MODE_REPLACE; 106 while (acl_object_list_next(iter, &update.rights)) { 108 if (!update.rights.global) 109 (void)acl_object_update(abox->aclobj, &update); 117 acl_mailbox_create(struct mailbox *box, const struct mailbox_update *update, argument 149 ret = abox->module_ctx.super.create_box(box, update, directory); 157 acl_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 614 acl_mailbox_update_removed_id(struct acl_object *aclobj, const struct acl_rights_update *update) argument 637 acl_mailbox_update_acl(struct mailbox_transaction_context *t, const struct acl_rights_update *update) argument [all...] |
H A D | acl-attributes.c | 25 struct acl_rights_update update; local 27 /* for now allow only dsync to update ACLs this way. 30 files directly that they don't want users to update. and in any case 42 i_zero(&update); 43 update.modify_mode = ACL_MODIFY_MODE_REPLACE; 44 update.neg_modify_mode = ACL_MODIFY_MODE_REPLACE; 45 update.last_change = value->last_change; 48 if (acl_rights_update_import(&update, id, rights, &error) < 0) { 53 return acl_mailbox_update_acl(t, &update);
|
H A D | acl-cache.h | 37 const struct acl_rights_update *update);
|
H A D | acl-storage.h | 32 const struct acl_rights_update *update);
|
H A D | doveadm-acl.c | 205 const struct acl_rights_update *update) 212 ret = acl_mailbox_update_acl(t, update); 226 struct acl_rights_update update; local 233 i_zero(&update); 234 update.modify_mode = ctx->modify_mode; 235 update.neg_modify_mode = ctx->modify_mode; 236 if (acl_rights_update_import(&update, id, rights, &error) < 0) 238 if ((ret = cmd_acl_mailbox_update(box, &update)) < 0) { 286 struct acl_rights_update update; local 293 i_zero(&update); 204 cmd_acl_mailbox_update(struct mailbox *box, const struct acl_rights_update *update) argument [all...] |
H A D | acl-api-private.h | 34 const struct acl_rights_update *update); 111 int acl_rights_update_import(struct acl_rights_update *update,
|
/dovecot/src/imap/ |
H A D | cmd-cancelupdate.c | 9 struct imap_search_update *update; local 12 update = client_search_update_lookup(client, tag, &idx); 13 if (update == NULL) 16 imap_search_update_free(update);
|
H A D | imap-search.c | 50 ctx->fetch_pool = pool_alloconly_create("search update fetch", 512); 131 client_send_command_error(cmd, "Duplicate search update tag"); 171 struct imap_search_update *update; local 191 update = array_append_space(&client->search_updates); 192 update->tag = i_strdup(ctx->cmd->tag); 193 update->result = result; 194 update->return_uids = ctx->cmd->uid; 195 update->fetch_pool = ctx->fetch_pool; 196 update->fetch_ctx = ctx->fetch_ctx; 654 void imap_search_update_free(struct imap_search_update *update) argument [all...] |
/dovecot/src/lib-storage/index/dbox-multi/ |
H A D | mdbox-storage.c | 229 const struct mailbox_update *update) 241 if (update != NULL && !guid_128_is_empty(update->mailbox_guid)) { 242 memcpy(new_hdr.mailbox_guid, update->mailbox_guid, 262 const struct mailbox_update *update, 282 if (update != NULL && update->uid_validity != 0) 283 uid_validity = update->uid_validity; 294 if (update != NULL && hdr->next_uid < update 227 mdbox_update_header(struct mdbox_mailbox *mbox, struct mail_index_transaction *trans, const struct mailbox_update *update) argument 261 mdbox_write_index_header(struct mailbox *box, const struct mailbox_update *update, struct mail_index_transaction *trans) argument 332 mdbox_mailbox_create_indexes(struct mailbox *box, const struct mailbox_update *update, struct mail_index_transaction *trans) argument 434 mdbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument [all...] |
H A D | mdbox-deleted-storage.c | 64 const struct mailbox_update *update, 72 if (update != NULL && update->uid_validity != 0) 73 uid_validity = update->uid_validity; 87 mdbox_update_header(mbox, trans, update); 63 mdbox_deleted_mailbox_create_indexes(struct mailbox *box, const struct mailbox_update *update, struct mail_index_transaction *trans) argument
|
H A D | mdbox-storage.h | 84 const struct mailbox_update *update) ATTR_NULL(3); 86 const struct mailbox_update *update,
|
/dovecot/src/lib-storage/index/dbox-single/ |
H A D | sdbox-storage.c | 182 const struct mailbox_update *update) 194 if (update != NULL && !guid_128_is_empty(update->mailbox_guid)) { 195 memcpy(new_hdr.mailbox_guid, update->mailbox_guid, 214 const struct mailbox_update *update, 228 if (update != NULL && update->uid_validity != 0) 229 uid_validity = update->uid_validity; 242 if (update != NULL && hdr->next_uid < update 180 sdbox_update_header(struct sdbox_mailbox *mbox, struct mail_index_transaction *trans, const struct mailbox_update *update) argument 213 sdbox_mailbox_create_indexes(struct mailbox *box, const struct mailbox_update *update, struct mail_index_transaction *trans) argument 378 sdbox_mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument 419 dbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument [all...] |
/dovecot/src/lib-storage/index/dbox-common/ |
H A D | dbox-storage.h | 44 /* create/update mailbox indexes */ 46 const struct mailbox_update *update, 78 const struct mailbox_update *update, bool directory); 80 const struct mailbox_update *update);
|
/dovecot/src/lib-index/ |
H A D | mail-index-transaction-finish.c | 46 /* ignore this extension update */ 84 struct mail_index_flag_update update, 93 update.uid1 == keep_range[0].seq1 && 94 update.uid2 == keep_range[0].seq2) { 103 update.uid1 = keep_range[i].seq1; 104 update.uid2 = keep_range[i].seq2; 105 array_insert(&t->updates, update_idx, &update, 1); 265 struct mail_index_transaction_keyword_update *update; local 270 array_foreach_modifiable(&t->keyword_updates, update) { 271 mail_index_transaction_seq_range_to_uid(t, &update 83 mail_transaction_drop_range(struct mail_index_transaction *t, struct mail_index_flag_update update, unsigned int update_idx, ARRAY_TYPE(seq_range) *keeps) argument [all...] |
H A D | mail-index-transaction-sort-appends.c | 106 struct mail_index_transaction_keyword_update *update; local 111 array_foreach_modifiable(&t->keyword_updates, update) { 112 if (array_is_created(&update->add_seq)) { 113 sort_appends_seq_range(&update->add_seq, 117 if (array_is_created(&update->remove_seq)) { 118 sort_appends_seq_range(&update->remove_seq,
|
/dovecot/src/plugins/imap-acl/ |
H A D | imap-acl-plugin.c | 485 struct acl_rights_update *update) 488 const char *const *rights = update->rights.rights; 500 switch (update->modify_mode) { 532 update->rights.rights = array_idx(&new_rights, 0); 537 const struct acl_rights_update *update, 550 ret = acl_mailbox_update_acl(t, update); 563 struct acl_rights_update update; local 576 i_zero(&update); 584 update.modify_mode = ACL_MODIFY_MODE_REMOVE; 588 update 483 imap_acl_update_ensure_keep_admins(struct acl_backend *backend, struct acl_object *aclobj, struct acl_rights_update *update) argument 536 cmd_acl_mailbox_update(struct mailbox *box, const struct acl_rights_update *update, const char **error_r) argument 649 struct acl_rights_update update; local [all...] |
/dovecot/src/doveadm/dsync/ |
H A D | dsync-brain-mailbox-tree-sync.c | 15 struct mailbox_update update; local 20 i_zero(&update); 21 memcpy(update.mailbox_guid, mailbox_guid, sizeof(update.mailbox_guid)); 22 update.uid_validity = uid_validity; 24 if (mailbox_create(box, &update, FALSE) < 0) { 75 i_zero(&update); 76 memcpy(update.mailbox_guid, mailbox_guid, 77 sizeof(update.mailbox_guid)); 78 if (mailbox_update(box, &update) < [all...] |
H A D | dsync-mailbox-tree-fill.c | 241 struct mailbox_update update; local 246 i_zero(&update); 247 guid_128_generate(update.mailbox_guid); 263 guid_128_to_string(update.mailbox_guid), change_vname); 267 if (mailbox_update(box, &update) < 0) { 268 i_error("Couldn't update mailbox %s GUID: %s", 272 memcpy(change_node->mailbox_guid, update.mailbox_guid,
|
/dovecot/src/lib-storage/index/maildir/ |
H A D | maildir-storage.c | 428 maildir_mailbox_update(struct mailbox *box, const struct mailbox_update *update) argument 441 if (update->uid_validity != 0 || update->min_next_uid != 0 || 442 !guid_128_is_empty(update->mailbox_guid)) { 447 if (!guid_128_is_empty(update->mailbox_guid)) 448 maildir_uidlist_set_mailbox_guid(uidlist, update->mailbox_guid); 449 if (update->uid_validity != 0) 450 maildir_uidlist_set_uid_validity(uidlist, update->uid_validity); 451 if (update->min_next_uid != 0) { 452 maildir_uidlist_set_next_uid(uidlist, update 510 maildir_mailbox_create(struct mailbox *box, const struct mailbox_update *update, bool directory) argument [all...] |
/dovecot/src/lib-storage/index/pop3c/ |
H A D | pop3c-storage.c | 195 const struct mailbox_update *update ATTR_UNUSED, 205 const struct mailbox_update *update ATTR_UNUSED) 207 if (!guid_128_is_empty(update->mailbox_guid) || 208 update->uid_validity != 0 || update->min_next_uid != 0 || 209 update->min_first_recent_uid != 0) { 211 "POP3 mailbox update isn't supported"); 213 return index_storage_mailbox_update(box, update);
|
/dovecot/src/lib-storage/index/cydir/ |
H A D | cydir-storage.c | 90 cydir_mailbox_create(struct mailbox *box, const struct mailbox_update *update, argument 98 return update == NULL ? 0 : 99 index_storage_mailbox_update(box, update);
|