cydir-sync.c revision 4b41116563110d00330896a568eff1078c382827
/* Copyright (C) 2007 Timo Sirainen */
#include "lib.h"
#include "ioloop.h"
#include "str.h"
#include "cydir-storage.h"
#include "cydir-sync.h"
{
struct mail_index_transaction *trans;
return -1;
}
return 0;
}
{
const char *dir;
return path;
}
static int
{
}
return -1;
}
}
/* continue anyway */
}
}
return 0;
}
{
const struct mail_index_header *hdr;
struct mail_index_sync_rec sync_rec;
int ret = 1;
if (hdr->uid_validity == 0) {
if (cydir_sync_set_uidvalidity(ctx) < 0)
return -1;
}
while (ret > 0 &&
&sync_rec)) > 0) {
return -1;
}
if (seq1 == 0) {
/* already expunged, nothing to do. */
continue;
}
/* don't care */
break;
ret = -1;
break;
/* FIXME: should be bother calling sync_notify()? */
break;
}
}
return ret;
}
struct cydir_sync_context **ctx_r)
{
struct cydir_sync_context *ctx;
int ret;
if (ret <= 0) {
if (ret < 0)
return ret;
}
if (cydir_sync_index(ctx) < 0) {
return -1;
}
return 0;
}
{
if (success) {
ret = -1;
}
} else {
}
return 0;
}
{
struct cydir_sync_context *sync_ctx;
return -1;
}
struct mailbox_sync_context *
{
int ret = 0;
if ((flags & MAILBOX_SYNC_FLAG_FAST) == 0 ||
}