cydir-sync.c revision af4244c8d400d25e7fb49311c75c9b4cd5fe8275
/* Copyright (c) 2007-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "str.h"
#include "cydir-storage.h"
#include "cydir-sync.h"
{
}
{
const char *dir;
return path;
}
static void
{
}
}
/* continue anyway */
}
}
}
{
const struct mail_index_header *hdr;
struct mail_index_sync_rec sync_rec;
if (hdr->uid_validity != 0)
else
/* mark the newly seen messages as recent */
}
/* already expunged, nothing to do. */
continue;
}
/* don't care */
break;
break;
/* FIXME: should be bother calling sync_notify()? */
break;
}
}
}
{
struct cydir_sync_context *ctx;
int ret;
if (!force)
if (ret <= 0) {
if (ret < 0)
return ret;
}
return 0;
}
{
if (success) {
ret = -1;
}
} else {
}
return ret;
}
{
struct cydir_sync_context *sync_ctx;
return -1;
}
struct mailbox_sync_context *
{
int ret = 0;
if (mailbox_open(box) < 0)
ret = -1;
}
}