[Dovecot] dovecot 2.0.12: mdbox & quota=dirsize
Роман Захров
zaharovr at inbox.ru
Fri Sep 9 14:24:32 EEST 2011
#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
#
More information about the dovecot
mailing list