dovecot-1.0: Call mail storage creation hook before getting name...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 24 05:48:06 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/a23be6956727
changeset: 5356:a23be6956727
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 24 05:48:03 2007 +0300
description:
Call mail storage creation hook before getting namespace separator, so that
it can be changed by a plugin.
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
src/imap/namespace.c | 6 +++---
diffs (23 lines):
diff -r be2c4dacae2c -r a23be6956727 src/imap/namespace.c
--- a/src/imap/namespace.c Mon Jul 23 08:09:04 2007 +0300
+++ b/src/imap/namespace.c Tue Jul 24 05:48:03 2007 +0300
@@ -8,6 +8,9 @@
static void namespace_init_storage(struct namespace *ns)
{
+ if (hook_mail_storage_created != NULL)
+ hook_mail_storage_created(ns->storage);
+
ns->prefix_len = strlen(ns->prefix);
ns->real_sep = mail_storage_get_hierarchy_sep(ns->storage);
@@ -20,9 +23,6 @@ static void namespace_init_storage(struc
} else {
ns->sep_str[0] = ns->sep;
}
-
- if (hook_mail_storage_created != NULL)
- hook_mail_storage_created(ns->storage);
}
static struct namespace *
More information about the dovecot-cvs
mailing list