Mercurial > dovecot > core-2.2
changeset 19248:08725018dedd
quota: The new quota counting code was counting only the last mailbox.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 28 Sep 2015 16:17:13 +0300 |
parents | f2c25d5b6280 |
children | 2db9595b302e |
files | src/plugins/quota/quota-count.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-count.c Mon Sep 28 16:15:00 2015 +0300 +++ b/src/plugins/quota/quota-count.c Mon Sep 28 16:17:13 2015 +0300 @@ -17,7 +17,7 @@ static int quota_count_mailbox(struct quota_root *root, struct mail_namespace *ns, - const char *vname, uint64_t *bytes_r, uint64_t *count_r) + const char *vname, uint64_t *bytes, uint64_t *count) { struct quota_rule *rule; struct mailbox *box; @@ -50,9 +50,9 @@ } } else { ret = 1; - *bytes_r = root->quota->set->vsizes ? + *bytes += root->quota->set->vsizes ? metadata.virtual_size : metadata.physical_size; - *count_r = status.messages; + *count += status.messages; } mailbox_free(&box); return ret;