Lines Matching refs:sync_ctx
123 struct mailbox *box = &ctx->sync_ctx->mbox->box;
146 if (mailbox_keyword_is_valid(&ctx->sync_ctx->mbox->box,
168 ctx->sync_ctx->renumber_uids) {
212 ctx->sync_ctx->base_uid_last_offset =
216 if (ctx->sync_ctx->base_uid_validity == 0) {
219 ctx->sync_ctx->base_uid_validity = uid_validity;
220 ctx->sync_ctx->base_uid_last = uid_last;
222 if (ctx->sync_ctx->next_uid-1 <= uid_last) {
225 ctx->sync_ctx->next_uid = uid_last+1;
230 i_assert(ctx->sync_ctx->next_uid > ctx->sync_ctx->prev_msg_uid);
258 struct mailbox *box = &ctx->sync_ctx->mbox->box;
312 ctx->sync_ctx->mail_keyword_pool,
357 if (ctx->sync_ctx == NULL) {
372 if (value == ctx->sync_ctx->next_uid) {
376 ctx->sync_ctx->next_uid++;
377 } else if (value > ctx->sync_ctx->next_uid) {
385 if (value <= ctx->sync_ctx->prev_msg_uid) {
396 if (ctx->sync_ctx->dest_first_mail && ctx->seq != 1) {
458 struct mbox_sync_context *sync_ctx = ctx->sync_ctx;
478 mbox_md5_ctx = ctx->sync_ctx->mbox->md5_v.init();
517 ctx->sync_ctx->mbox->md5_v.more(mbox_md5_ctx, hdr);
530 ctx->sync_ctx->mbox->md5_v.finish(mbox_md5_ctx, ctx->hdr_md5_sum);
533 (ctx->seq > 1 && sync_ctx->dest_first_mail)) {
536 if (sync_ctx->base_uid_validity == 0) {
538 sync_ctx->base_uid_validity =
539 sync_ctx->hdr->uid_validity != 0 &&
540 !sync_ctx->renumber_uids ?
541 sync_ctx->hdr->uid_validity :
548 mbox_sync_set_critical(ctx->sync_ctx, "read(%s) failed: %s",