cydir-sync.c revision c6a57378d3c54988f525f81e19c0c5d132a0770d
/* 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;
}
{
const struct mail_index_header *hdr;
struct mail_index_sync_rec sync_rec;
unsigned int prefix_len = 0;
int ret;
if (hdr->uid_validity == 0) {
if (cydir_sync_set_uidvalidity(ctx) < 0)
return -1;
}
/* unlink expunged messages */
&sync_rec)) > 0) {
continue;
return -1;
}
if (seq1 == 0) {
/* already expunged everything. nothing to do. */
continue;
}
}
&uid) < 0) {
return -1;
}
/* continue anyway */
}
}
}
return 0;
}
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 ||
}