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 :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20040522/01fad7af/attachment-0001.bin>