Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/quota/quota-maildir.c @ 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 | 56732ef5ff96 |
comparison
equal
deleted
inserted
replaced
8960:56b21ef694cc | 8961:b2cd58981808 |
---|---|
764 return; | 764 return; |
765 | 765 |
766 roots = array_get_modifiable("a->roots, &count); | 766 roots = array_get_modifiable("a->roots, &count); |
767 for (i = 0; i < count; i++) { | 767 for (i = 0; i < count; i++) { |
768 if (roots[i]->backend.name == quota_backend_maildir.name && | 768 if (roots[i]->backend.name == quota_backend_maildir.name && |
769 (roots[i]->ns_prefix == NULL || | 769 ((roots[i]->ns_prefix == NULL && |
770 storage->ns->type == NAMESPACE_PRIVATE) || | |
770 roots[i]->ns == storage->ns)) | 771 roots[i]->ns == storage->ns)) |
771 maildir_quota_root_storage_added(roots[i], storage); | 772 maildir_quota_root_storage_added(roots[i], storage); |
772 } | 773 } |
773 } | 774 } |
774 | 775 |