[Dovecot] Question regarding quotas (is this a bug or intended behavior) ?

Gilles Chauvin gilles.chauvin at univ-rouen.fr
Mon Dec 9 16:14:46 EET 2013


On 09/12/2013 14:42, Timo Sirainen wrote:
> On 9.12.2013, at 14.08, Gilles Chauvin <gilles.chauvin at univ-rouen.fr> wrote:
> 
>> On 08/12/2013 22:05, Timo Sirainen wrote:
>>> 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
>>
>> Looks like something is broken now :-/
> 
> Right, it actually came to my mind when I went to sleep that I probably messed up this: http://hg.dovecot.org/dovecot-2.2/rev/feb656fd212e
> 

That's better, thanks. Although there is still a problem.


# doveadm mailbox status -u myuser "messages vsize" '*'
TEST messages=765 vsize=151182915
Junk messages=0 vsize=0
Trash messages=0 vsize=0
Drafts messages=0 vsize=0
Sent messages=0 vsize=0
INBOX messages=0 vsize=0

# doveadm -f flow quota get -u myuser
Quota name=Userquota Type=STORAGE Value=145564 Limit=1048576 %=13
Quota name=Userquota Type=MESSAGE Value=765 Limit=- %=0


If now I just drag n' drop the "TEST" mailbox to the Trash, the log says
"Mailbox renamed: TEST -> Trash/TEST"

But...

This is only taken into account if I issue a "quota recalc" command.

# doveadm -f flow quota get -u myuser
Quota name=Userquota Type=STORAGE Value=145564 Limit=1048576 %=13
Quota name=Userquota Type=MESSAGE Value=765 Limit=- %=0

# doveadm quota recalc -u myuser

# doveadm -f flow quota get -u myuser
Quota name=Userquota Type=STORAGE Value=0 Limit=1048576 %=0
Quota name=Userquota Type=MESSAGE Value=0 Limit=- %=0


If this is not easy to fix for you, I guess I'll have to recalc the
quotas in a cron job!


Thanks,
Gilles.


More information about the dovecot mailing list