[Dovecot] Question regarding quotas (is this a bug or intended behavior) ?
Gilles Chauvin
gilles.chauvin at univ-rouen.fr
Wed Dec 4 19:02:59 EET 2013
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.
More information about the dovecot
mailing list