dovecot-1.2: maildir++ quota: Make sure we don't create maildirs...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 17 05:08:06 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b2cd58981808
changeset: 8961:b2cd58981808
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 16 22:08:01 2009 -0400
description:
maildir++ quota: Make sure we don't create maildirsize file to wrong namespace.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/plugins/quota/quota-maildir.c | 3 ++-
diffs (13 lines):
diff -r 56b21ef694cc -r b2cd58981808 src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c Thu Apr 16 22:07:54 2009 -0400
+++ b/src/plugins/quota/quota-maildir.c Thu Apr 16 22:08:01 2009 -0400
@@ -766,7 +766,8 @@ maildir_quota_storage_added(struct quota
roots = array_get_modifiable("a->roots, &count);
for (i = 0; i < count; i++) {
if (roots[i]->backend.name == quota_backend_maildir.name &&
- (roots[i]->ns_prefix == NULL ||
+ ((roots[i]->ns_prefix == NULL &&
+ storage->ns->type == NAMESPACE_PRIVATE) ||
roots[i]->ns == storage->ns))
maildir_quota_root_storage_added(roots[i], storage);
}
More information about the dovecot-cvs
mailing list