On Fri, 2004-05-21 at 17:48, "Branko F. Gračnar" wrote:
I'm interested to help you with maildirsize virtual quota support.
Is there any documented dovecot api?
For 0.99.x it's not easy and I wouldn't even try. For 1.0-tests it should be possible with a plugin. http://dovecot.org/patches/quota.c has a dummy implementation but it too needs a bit of work and I don't think it compiles against 1.0-tests.
src/mail-storage/mail-storage.h is the most important API you need, but quota.c already handles that. There's the one FIXME which is still a bit of a problem, but that'll get fixed before 1.0. I'll probably change mailbox_save() to return struct mail* from which you can ask get_size().
So, if you just implement functions to add to maildir quota, remove from it and recalculate it, it's mostly there :)