/dovecot/src/lib-dict/ |
H A D | dict-transaction-memory.c | 28 struct dict_transaction_memory_change *change; local 30 change = array_append_space(&ctx->changes); 31 change->type = DICT_CHANGE_TYPE_SET; 32 change->key = p_strdup(ctx->pool, key); 33 change->value.str = p_strdup(ctx->pool, value); 41 struct dict_transaction_memory_change *change; local 43 change = array_append_space(&ctx->changes); 44 change->type = DICT_CHANGE_TYPE_UNSET; 45 change->key = p_strdup(ctx->pool, key); 53 struct dict_transaction_memory_change *change; local [all...] |
H A D | dict-memcached-ascii.c | 558 const struct dict_transaction_memory_change *change) 563 key = memcached_ascii_dict_get_full_key(ctx->dict, change->key); 566 switch (change->type) { 570 key, strlen(change->value.str), change->value.str); 578 if (change->value.diff > 0) { 580 key, change->value.diff); 583 value = t_strdup_printf("%lld", change->value.diff); 588 key, -change->value.diff); 557 memcached_send_change(struct dict_memcached_ascii_commit_ctx *ctx, const struct dict_transaction_memory_change *change) argument
|
H A D | dict-file.c | 318 const struct dict_transaction_memory_change *change; local 322 array_foreach(&ctx->changes, change) { 323 if (hash_table_lookup_full(dict->hash, change->key, 333 switch (change->type) { 341 diff += change->value.diff; 353 key = p_strdup(dict->hash_pool, change->key); 356 change->value.str);
|
/dovecot/src/doveadm/dsync/ |
H A D | dsync-transaction-log-scan.c | 29 struct dsync_mail_change *change; local 40 change = hash_table_lookup(ctx->changes, POINTER_CAST(uid)); 41 if (change == NULL) { 42 /* first change for this UID */ 43 change = p_new(ctx->pool, struct dsync_mail_change, 1); 44 change->uid = uid; 45 change->type = type; 46 hash_table_insert(ctx->changes, POINTER_CAST(uid), change); 49 orig_guid = change->guid; 50 i_zero(change); 69 struct dsync_mail_change *change; local 91 struct dsync_mail_change *change; local 115 struct dsync_mail_change *change; local 144 struct dsync_mail_change *change; local 170 struct dsync_mail_change *change; local 193 struct dsync_mail_change *change; local 212 keywords_change_remove(struct dsync_mail_change *change, const char *name) argument 231 struct dsync_mail_change *change; local 280 struct dsync_mail_change *change; local [all...] |
H A D | dsync-brain-mailbox-tree-sync.c | 63 receiving backup, try change the mailbox GUID. 101 i_debug("brain %c: Other brain should change mailbox " 113 const struct dsync_mailbox_tree_sync_change *change, 126 switch (change->type) { 129 ret = dsync_brain_mailbox_alloc(brain, change->mailbox_guid, 133 change->full_name, 134 guid_128_to_string(change->mailbox_guid), errstr); 140 change->full_name, 141 guid_128_to_string(change->mailbox_guid), errstr)); 146 storage_name = mailbox_list_get_storage_name(change 112 dsync_brain_mailbox_tree_sync_change(struct dsync_brain *brain, const struct dsync_mailbox_tree_sync_change *change, enum mail_error *error_r) argument [all...] |
H A D | dsync-mailbox-export.c | 56 struct dsync_mail_change change; member in struct:dsync_mailbox_exporter 90 final_keyword_check(struct dsync_mail_change *change, const char *name, argument 98 changes = array_get(&change->keyword_changes, &count); 106 array_delete(&change->keyword_changes, i, 1); 112 array_delete(&change->keyword_changes, i, 1); 116 /* no change */ 125 struct mail *mail, struct dsync_mail_change *change) 131 i_assert((change->add_flags & change->remove_flags) == 0); 133 change 124 search_update_flag_changes(struct dsync_mailbox_exporter *exporter, struct mail *mail, struct dsync_mail_change *change) argument 193 struct dsync_mail_change *change, *log_change; local 235 struct dsync_mail_change *change; local 254 export_add_mail_instance(struct dsync_mailbox_exporter *exporter, struct dsync_mail_change *change, uint32_t seq) argument 287 struct dsync_mail_change *change; local 340 struct dsync_mail_change *change; local 355 struct dsync_mail_change *change; local 450 struct dsync_mail_change *change; local 478 struct dsync_mail_change *change, *dup_change; local [all...] |
H A D | dsync-mailbox-import.c | 31 struct dsync_mail_change *change; member in struct:importer_new_mail 136 "save", "expunge", "flag-change" 597 const struct dsync_mail_change *change, 602 if (change->type == DSYNC_MAIL_CHANGE_TYPE_EXPUNGE) { 603 if (guid_128_from_string(change->guid, change_guid_128) < 0) 606 mail_generate_guid_128_hash(change->guid, change_guid_128); 609 *cmp_guid_r = change->guid; 610 return strcmp(change->guid, guid) == 0; 618 change->guid); 641 expunge-change fo 596 dsync_mail_change_guid_equals(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change, const char *guid, const char **cmp_guid_r) argument 903 dsync_import_set_mail(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 935 dsync_check_cur_guid(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 1202 dsync_mailbox_import_replace_flags(struct mail *mail, const struct dsync_mail_change *change) argument 1244 dsync_mailbox_import_flag_change(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 1336 dsync_mail_change_have_keyword(const struct dsync_mail_change *change, const char *keyword) argument 1359 dsync_mailbox_import_want_change(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change, const char **result_r) argument 1415 dsync_mailbox_import_save(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 1452 dsync_mailbox_import_expunge(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 1546 dsync_mailbox_import_match_msg(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change, const char **result_r) argument 1606 dsync_mailbox_find_common_expunged_uid(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change, const char **result_r) argument 1650 dsync_mailbox_revert_missing(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 1667 dsync_mailbox_find_common_uid(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change, const char **result_r) argument 1749 dsync_mailbox_import_change(struct dsync_mailbox_importer *importer, const struct dsync_mail_change *change) argument 2304 dsync_mailbox_get_final_keywords(const struct dsync_mail_change *change) argument 2331 dsync_mailbox_save_set_metadata(struct dsync_mailbox_importer *importer, struct mail_save_context *save_ctx, const struct dsync_mail_change *change) argument [all...] |
H A D | dsync-mailbox-tree-sync.c | 89 struct dsync_mailbox_tree_sync_change *change; local 96 change = array_append_space(&ctx->changes); 97 change->type = type; 98 change->ns = node->ns; 99 change->full_name = p_strdup(ctx->pool, name); 106 struct dsync_mailbox_tree_sync_change *change; local 110 change = array_append_space(&ctx->changes); 111 change->type = DSYNC_MAILBOX_TREE_SYNC_TYPE_CREATE_BOX; 112 change->ns = node->ns; 113 change 157 struct dsync_mailbox_tree_sync_change *change; local 389 struct dsync_mailbox_tree_sync_change *change; local 460 struct dsync_mailbox_tree_sync_change *change; local [all...] |
H A D | dsync-brain-mails.c | 148 const struct dsync_mail_change *change; local 151 if ((ret = dsync_ibc_recv_change(brain->ibc, &change)) == 0) 162 if (dsync_mailbox_import_change(brain->box_importer, change) < 0) 169 const struct dsync_mail_change *change; local 172 while ((ret = dsync_mailbox_export_next(brain->box_exporter, &change)) > 0) { 173 if (dsync_ibc_send_change(brain->ibc, change) == 0)
|
H A D | dsync-ibc-stream.c | 1618 const struct dsync_mail_change *change) 1629 switch (change->type) { 1642 dsync_serializer_encode_add(encoder, "uid", dec2str(change->uid)); 1643 if (change->guid != NULL) 1644 dsync_serializer_encode_add(encoder, "guid", change->guid); 1645 if (change->hdr_hash != NULL) { 1647 change->hdr_hash); 1649 if (change->modseq != 0) { 1651 dec2str(change->modseq)); 1653 if (change 1617 dsync_ibc_stream_send_change(struct dsync_ibc *_ibc, const struct dsync_mail_change *change) argument 1707 struct dsync_mail_change *change; local [all...] |
H A D | dsync-mailbox-import.h | 45 const struct dsync_mail_change *change);
|
H A D | dsync-ibc-private.h | 54 const struct dsync_mail_change *change);
|
H A D | dsync-ibc.c | 145 const struct dsync_mail_change *change) 147 i_assert(change->uid > 0); 150 ibc->v.send_change(ibc, change); 144 dsync_ibc_send_change(struct dsync_ibc *ibc, const struct dsync_mail_change *change) argument
|
H A D | dsync-brain-private.h | 138 const struct dsync_mailbox_tree_sync_change *change,
|
H A D | dsync-ibc-pipe.c | 37 struct dsync_mail_change change; member in union:item::__anon26 398 const struct dsync_mail_change *change) 404 dsync_mail_change_dup(item->pool, change, &item->u.change); 421 *change_r = &item->u.change; 397 dsync_ibc_pipe_send_change(struct dsync_ibc *ibc, const struct dsync_mail_change *change) argument
|
H A D | dsync-brain-mailbox-tree.c | 221 /* 1) change any real separators to alt separators (this wouldn't 291 const struct dsync_mailbox_tree_sync_change *change; local 310 while ((change = dsync_mailbox_trees_sync_next(ctx)) != NULL) { 311 if (dsync_brain_mailbox_tree_sync_change(brain, change,
|
H A D | dsync-ibc.h | 141 const struct dsync_mail_change *change);
|
H A D | test-dsync-mailbox-tree-sync.c | 118 just change them to the same new one */ 174 const struct dsync_mailbox_tree_sync_change *change; local 185 while ((change = dsync_mailbox_trees_sync_next(ctx)) != NULL) { 200 while ((change = dsync_mailbox_trees_sync_next(ctx)) != NULL) {
|
/dovecot/src/lib-dict-extra/ |
H A D | dict-fs.c | 227 const struct dict_transaction_memory_change *change; local 231 array_foreach(&ctx->changes, change) { 232 key = fs_dict_get_full_key(dict, change->key); 233 switch (change->type) { 237 if (fs_write(file, change->value.str, strlen(change->value.str)) < 0) {
|
/dovecot/src/lib/ |
H A D | file-dotlock.c | 134 update_change_info(const struct stat *st, struct file_change_info *change, argument 139 if (change->ino != st->st_ino || !CMP_DEV_T(change->dev, st->st_dev) || 140 (change->ctime != st->st_ctime && check_ctime) || 141 change->mtime != st->st_mtime || change->size != st->st_size) { 144 if (change->ctime == 0) { 145 /* First check, set last_change to file's change time. 155 change->ino = st->st_ino; 156 change [all...] |
/dovecot/src/lib-index/ |
H A D | test-mail-index-transaction-update.c | 337 enum mail_flags *flags, change; local 347 change = i_rand_limit(MAIL_FLAGS_NONRECENT + 1); 356 flags[seq] |= change; 361 flags[seq] &= ~change; 366 flags[seq] = change; 372 change);
|
/dovecot/src/lib-storage/index/mbox/ |
H A D | mbox-sync.c | 1232 bool change = FALSE; local 1236 change = TRUE; 1240 change = TRUE; 1242 if (!change && !force) 1482 the file's size. If mtime doesn't change, another process
|