/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "mail-storage-private.h"
#include "dsync-brain-private.h"
#include "dsync-mailbox.h"
const struct dsync_mailbox_attribute *src,
struct dsync_mailbox_attribute *dest_r)
{
}
}
{
int ret;
/* Make sure the mailbox is open - locking requires it */
if (mailbox_open(box) < 0) {
return -1;
}
if (ret < 0) {
return -1;
}
if (ret == 0) {
/* No index files - don't do any locking. In theory we still
could, but this lock is mainly meant to prevent replication
problems, and replication wouldn't work without indexes. */
return 0;
}
i_error("Failed to lock mailbox %s for dsyncing: %s",
return -1;
}
return 0;
}