Gilles Chauvin
2013-Dec-04 17:02 UTC
[Dovecot] Question regarding quotas (is this a bug or intended behavior) ?
Hi, I was wondering if this is a normal behavior (test was made using Dovecot v2.2.9). In my config, quotas are configured as follows: plugin { quota = dict:Userquota::file:%h/dovecot-quota quota_rule = *:storage=1G quota_rule2 = Trash:ignore } # doveadm mailbox status -u my_user "messages vsize" '*' Trash messages=4997 vsize=229535631 Drafts messages=0 vsize=0 Sent messages=0 vsize=0 Junk messages=0 vsize=0 INBOX messages=0 vsize=0 # doveadm -f flow quota get -u my_user Quota name=Userquota Type=STORAGE Value=0 Limit=1048576 %=0 Quota name=Userquota Type=MESSAGE Value=0 Limit=- %=0 The 4997 mails in the Trash mailbox are ignored as desired, but now, if I have the following case: # doveadm mailbox status -u my_user "messages vsize" '*' Trash messages=0 vsize=0 Trash/TEST messages=4997 vsize=229535631 Drafts messages=0 vsize=0 Sent messages=0 vsize=0 Junk messages=0 vsize=0 INBOX messages=0 vsize=0 (As you can see mails were moved to a Trash/TEST mailbox) # doveadm -f flow quota get -u my_user Quota name=Userquota Type=STORAGE Value=220918 Limit=1048576 %=21 Quota name=Userquota Type=MESSAGE Value=4997 Limit=- %=0 I tried to add the following quota_rule: quota_rule3 = Trash/*:ignore But this doesn't fix anything. Do you have any idea about why this is not working ? Thanks, Regards, Gilles.
Timo Sirainen
2013-Dec-08 21:05 UTC
[Dovecot] Question regarding quotas (is this a bug or intended behavior) ?
On 4.12.2013, at 19.02, Gilles Chauvin <gilles.chauvin at univ-rouen.fr> wrote:> I tried to add the following quota_rule: > quota_rule3 = Trash/*:ignore > > But this doesn't fix anything. > > Do you have any idea about why this is not working ?It wasn?t implemented. But I guess it?s useful and there?s no harm in adding it, so: http://hg.dovecot.org/dovecot-2.2/rev/78b34eb7c6c5