Mercurial > dovecot > core-2.2
changeset 13480:9ea79795088d
quota-dirsize: Get the quota from "mail root dir", not "mailboxes dir".
Normally they are different only with dbox (~/dbox vs. ~/dbox/mailboxes).
This mainly fixes using dirsize with mdbox, where the mail data is in
~/dbox/storage/ directory.
Patch by Роман Захров.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Sep 2011 14:01:36 +0300 |
parents | d00c95f33643 |
children | a930318a74a1 |
files | src/plugins/quota/quota-dirsize.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-dirsize.c Mon Sep 12 14:02:30 2011 +0300 +++ b/src/plugins/quota/quota-dirsize.c Mon Sep 12 14:01:36 2011 +0300 @@ -163,7 +163,7 @@ is_file = mail_storage_is_mailbox_file(namespaces[i]->storage); path = mailbox_list_get_path(namespaces[i]->list, NULL, - MAILBOX_LIST_PATH_TYPE_MAILBOX); + MAILBOX_LIST_PATH_TYPE_DIR); quota_count_path_add(&paths, path, FALSE); /* INBOX may be in different path. */