]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-dirsize: Get the quota from "mail root dir", not "mailboxes dir".
authorTimo Sirainen <tss@iki.fi>
Mon, 12 Sep 2011 11:01:36 +0000 (14:01 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 12 Sep 2011 11:01:36 +0000 (14:01 +0300)
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 Роман Захров.

src/plugins/quota/quota-dirsize.c

index 719675c94f90dfff1bfa80550e98a693863781b3..4d12b0bb0e805296ad046c25adcbb2754f777e00 100644 (file)
@@ -163,7 +163,7 @@ get_quota_root_usage(struct quota_root *root, uint64_t *value_r)
 
                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. */