Hello,
i'm using dict quota stored in mysql (/etc/dovecot/dovecot-dict-quota.conf):
connect = host=localhost dbname=vmail user=dovecot password=
# CREATE TABLE quota ( # username varchar(100) not null, # bytes bigint not null default 0, # messages integer not null default 0, # primary key (username) # );
map { pattern = priv/quota/storage table = quota username_field = username value_field = bytes } map { pattern = priv/quota/messages table = quota username_field = username value_field = messages }
from dovecot.conf (quota rule is get from passdb sql + prefetch): dict { quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf }
plugin { quota = dict:user::proxy::quotadict quota_warning = storage=99%% /etc/dovecot/quota-warning.sh 99 quota_warning2 = storage=95%% /etc/dovecot/quota-warning.sh 95 quota_warning3 = storage=80%% /etc/dovecot/quota-warning.sh 80
But how to add another quota for Trash folder ?
It seeems that will be needed another table something like quota2 but how to map it using map {}
-- Lampa
On 11/22/2009 11:36 AM Lampa wrote:
Hello, … plugin { quota = dict:user::proxy::quotadict quota_warning = storage=99%% /etc/dovecot/quota-warning.sh 99 quota_warning2 = storage=95%% /etc/dovecot/quota-warning.sh 95 quota_warning3 = storage=80%% /etc/dovecot/quota-warning.sh 80
But how to add another quota for Trash folder ?
It seeems that will be needed another table something like quota2 but how to map it using map {}
No, one table for quota values is sufficient. All you need in addition are one or more quota rules: http://wiki.dovecot.org/Quota/1.1#Quota_rules
Regards, Pascal
The trapper recommends today: beeffeed.0932611@localdomain.org
Hello,
hmm, if you mean:
quota2_rule = Trash:ignore
that seems not working.
I'm copying message between Trash and inbox, both contains one message with size 1m5, quota_rule = *:storage=2M:messages=10000 (from userdb) now is not possible to copy message from Trash to inbox and vice versa.
2009/11/22 Pascal Volk user+dovecot@localhost.localdomain.org:
On 11/22/2009 11:36 AM Lampa wrote:
Hello, … plugin { quota = dict:user::proxy::quotadict quota_warning = storage=99%% /etc/dovecot/quota-warning.sh 99 quota_warning2 = storage=95%% /etc/dovecot/quota-warning.sh 95 quota_warning3 = storage=80%% /etc/dovecot/quota-warning.sh 80
But how to add another quota for Trash folder ?
It seeems that will be needed another table something like quota2 but how to map it using map {}
No, one table for quota values is sufficient. All you need in addition are one or more quota rules: http://wiki.dovecot.org/Quota/1.1#Quota_rules
Regards, Pascal
The trapper recommends today: beeffeed.0932611@localdomain.org
-- Lampa
On 11/22/2009 11:56 AM Lampa wrote:
Hello,
hmm, if you mean:
quota2_rule = Trash:ignore
that seems not working.
I'm copying message between Trash and inbox, both contains one message with size 1m5, quota_rule = *:storage=2M:messages=10000 (from userdb) now is not possible to copy message from Trash to inbox and vice versa.
Please stop top posting.
Make sure your client executes the EXPUNGE command, after you've marked the message in the INBOX as deleted. When your Trash folder is a subfolder of your INBOX, use: quota2_rule = INBOX.Trash:ignore
Regards, Pascal
The trapper recommends today: beeffeed.0932611@localdomain.org
On 11/22/2009 12:03 PM Pascal Volk wrote:
On 11/22/2009 11:56 AM Lampa wrote:
Hello,
hmm, if you mean:
quota2_rule = Trash:ignore ^ quota2_rule = INBOX.Trash:ignore ^
Use quota_ruleN: quota_rule2 = Trash:ignore
Regards, Pascal
The trapper recommends today: decade.0932612@localdomain.org
participants (2)
-
Lampa
-
Pascal Volk