[Dovecot] dovecot 2.0.12: mdbox & quota=dirsize
#doveconf -v ...................... quota = dirsize:User quota quota_debug = yes quota_exceeded_message = message quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u ............................ # du --max-depth=1 -h 311M ./storage 20K ./sieve 7,8M ./mailboxes 319M . # doveadm quota get -u myuser Quota name Type Value Limit % User quota STORAGE 7948 399360 2 # then i change ./dovecot-2.0.12/src/plugins/quota/quota-dirsize.c 165-- </span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166-- MAILBOX_LIST_PATH_TYPE_MAILBOX); 165++ </span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166++ MAILBOX_LIST_PATH_TYPE_DIR);
# doveadm quota get -u myuser Quota name Type Value Limit % User quota STORAGE 325885 399360 81 #
On Fri, 2011-09-09 at 15:24 +0400, Роман Захров wrote:
#doveconf -v ...................... quota = dirsize:User quota quota_debug = yes
There's no such setting as quota_debug.
then i change ./dovecot-2.0.12/src/plugins/quota/quota-dirsize.c 165-- </span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166-- MAILBOX_LIST_PATH_TYPE_MAILBOX); 165++ </span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166++ MAILBOX_LIST_PATH_TYPE_DIR);
Well.. Hmm. I suppose that's ok. Done: http://hg.dovecot.org/dovecot-2.0/rev/9ea79795088d (Looks like hg web doesn't like UTF-8 in your name.)
12.09.2011 15:04, Timo Sirainen пишет:
On Fri, 2011-09-09 at 15:24 +0400, Роман Захров wrote:
#doveconf -v ...................... quota = dirsize:User quota quota_debug = yes There's no such setting as quota_debug. Yes, really, not used adjustment, but doesn't cause errors :)
then i change ./dovecot-2.0.12/src/plugins/quota/quota-dirsize.c 165--</span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166-- MAILBOX_LIST_PATH_TYPE_MAILBOX); 165++</span>path = mailbox_list_get_path(namespaces[i]->list, NULL, 166++ MAILBOX_LIST_PATH_TYPE_DIR); Well.. Hmm. I suppose that's ok. Done: http://hg.dovecot.org/dovecot-2.0/rev/9ea79795088d (Looks like hg web doesn't like UTF-8 in your name.)
Roman Zakharov, it is not important, i think
participants (3)
-
Roman Zakharov
-
Timo Sirainen
-
Роман Захров