dovecot-2.0: dsync: Refuse to run if we detect virtual hierarchy...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 6 21:14:45 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/cd0d3392366e
changeset: 11743:cd0d3392366e
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 06 19:14:39 2010 +0100
description:
dsync: Refuse to run if we detect virtual hierarchy separators differ for mail locations.
The real separators can differ, but to work properly there must be a default
namespace with a separator defined.
diffstat:
src/dsync/dsync.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r ab2670833cb7 -r cd0d3392366e src/dsync/dsync.c
--- a/src/dsync/dsync.c Tue Jul 06 18:52:16 2010 +0100
+++ b/src/dsync/dsync.c Tue Jul 06 19:14:39 2010 +0100
@@ -8,6 +8,7 @@
#include "master-service-settings.h"
#include "mail-storage-service.h"
#include "mail-user.h"
+#include "mail-namespace.h"
#include "dsync-brain.h"
#include "dsync-worker.h"
#include "dsync-proxy-server.h"
@@ -256,6 +257,13 @@
&mail_user2) < 0)
i_fatal("User init failed");
+ if (mail_namespaces_get_root_sep(mail_user->namespaces) !=
+ mail_namespaces_get_root_sep(mail_user2->namespaces)) {
+ i_fatal("Mail locations must use the same "
+ "virtual mailbox hierarchy separator "
+ "(specify separator for the default namespace)");
+ }
+
worker2 = dsync_worker_init_local(mail_user2, alt_char);
if (reverse_workers) {
workertmp = worker1;
More information about the dovecot-cvs
mailing list