cydir-sync.c revision 817d027593510c3ba70ad542ce0011f5f6916d1e
/* Copyright (c) 2007-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "str.h"
#include "cydir-storage.h"
#include "cydir-sync.h"
{
}
{
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;
}
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;
}
}