cydir-sync.c revision cc977f55ce66b63e8b37c20fce58d0ef516f0f29
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx/* Copyright (c) 2007-2008 Dovecot authors, see the included COPYING file */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxstatic void cydir_sync_set_uidvalidity(struct cydir_sync_context *ctx)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxstatic string_t *cydir_get_path_prefix(struct cydir_mailbox *mbox)
0d2f4bc964616a7fec76406480264fcaa2cfbc14ff const char *dir;
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxstatic void
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxcydir_sync_expunge(struct cydir_sync_context *ctx, uint32_t seq1, uint32_t seq2)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx /* continue anyway */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxstatic void cydir_sync_index(struct cydir_sync_context *ctx)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx /* mark the newly seen messages as recent */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx if (mail_index_lookup_seq_range(ctx->sync_view, hdr->first_recent_uid,
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx index_mailbox_set_recent_seq(&ctx->mbox->ibox, ctx->sync_view,
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx while (mail_index_sync_next(ctx->index_sync_ctx, &sync_rec)) {
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx /* already expunged, nothing to do. */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx /* don't care */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx /* FIXME: should be bother calling sync_notify()? */
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx ret = mail_index_sync_begin(mbox->ibox.index, &ctx->index_sync_ctx,
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx if (ret <= 0) {
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxint cydir_sync_finish(struct cydir_sync_context **_ctx, bool success)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx return -1;
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhxcydir_storage_sync_init(struct mailbox *box, enum mailbox_sync_flags flags)
516fc7f3e48e25d0375ea3f93ead33ec38bc597bhx struct cydir_mailbox *mbox = (struct cydir_mailbox *)box;