Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8961:b2cd58981808 HEAD
maildir++ quota: Make sure we don't create maildirsize file to wrong namespace.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 16 Apr 2009 22:08:01 -0400 |
parents | 56b21ef694cc |
children | a2a28c52e951 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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); }