Hello, I use Dovecot 1.1.11 and store the current quota usage in a Database. As far I can see it, the quota usage is updated each time dovecot performs an action on a mail. For example if a new mail is stored in the inbox, the current quota usage is increased. If a mail is deleted the quota usage is decreased. If there are still existing E-Mails in the inbox, before quota is turned on or if I perfom changes on the "mail storage" myself (for example purging trash or spam, or something) the current quota usage is NOT updated automatically by dovecot. For example I copy some mailboxes to my server, then the current quota for this mailboxes is still zero. Is it correct that dovecot can't do this for me? If yes, it seems I have to write my own (simple) update script and run it sometimes croned (because I don't really trust the actual quota implementation) and/or I have to update the current quota usage each time I perform actions myself. This "workaround" is easy by using a DB storage, but what about other implementations? Wouldn't it be nice if dovecot could do this or provide a tool for it? Thank you! Philipp
On Fri, 2009-03-20 at 11:43 +0100, floss at pBartels.info wrote:> For example I copy some mailboxes to my server, then the current quota > for this mailboxes is still zero. > > Is it correct that dovecot can't do this for me?Yes. It's too much work for Dovecot to try to figure out all the different things you might be doing under it. You can anyway easily make Dovecot recalculate the quota: delete the user's quota usage row from the database. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090320/6850fb6b/attachment-0002.bin>
Timo Sirainen <tss at iki.fi> wrote:> On Fri, 2009-03-20 at 11:43 +0100, floss at pBartels.info wrote: >> For example I copy some mailboxes to my server, then the current quota >> for this mailboxes is still zero. >> >> Is it correct that dovecot can't do this for me? > > Yes. It's too much work for Dovecot to try to figure out all the > different things you might be doing under it. You can anyway easily make > Dovecot recalculate the quota: delete the user's quota usage row from > the database. > >Well, thats a very simple solution. Also for my example. If I copy some mailboxes to the server I just remove the quota usage row and dovecot recalculates it. I can do this too, if I remove some spam messages or purge the trash... What did you mean with too much work? (It's able to do it and you said yes it can't but it can as you said later.) Thank you, Philipp