Howdy,

I had a complaint from RoundCube users that the maildir quotas weren't accurate 
when they logged in after something wound up deleting their maildirsize file on 
Dovecot 2.4. Since that does IMAP GETQUOTAROOT to fetch the info, I figured 
we're probably not triggering quota recalculation on maildir like we did on 
dovecot 2.3 (which doesn't seem to have this issue).

Wound up writing a patch to src/plugins/imap-quota/imap-quota-plugin.c to add a 
hook into cmd_setquota which looks to see if imap_quota is enabled, and if so 
trigger maildir quota recalculation on IMAP login. This does work to solve the 
reported issue, but I'm ultimately more curious whether this could even be 
considered a regression, as per your own documentation for the quota plugin:

> Once the maildirsize reaches 5120 bytes, the quota is recalculated and the 
> file is recreated. This makes sure that if quota happens to be broken (e.g. 
> externally deleted files) it won't stay that way forever.

This suggests to me that the behavior I'm "fixing" a regression in is actually 
working "as designed." As such my question would be: Is there a good reason I 
*should not* be doing this?

I would of course be happy to share this patch with the list, but I'm not going 
to bother if it's actually something the maintainers are not interested in due 
to it not being a good idea in the first place.

Thanks,
--
Thomas "Andy" Baugh | Software Development Engineer IV
[email protected]
www.webpros.com
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to