[Dovecot] maildirsize virtual quota support
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi.
I'm interested to help you with maildirsize virtual quota support.
Is there any documented dovecot api?
Best regards,
Branko F. Gracnar Noviforum Ltd. Software & Media http://www.noviforum.si http://www.najdi.si
-----BEGIN PGP SIGNATURE-----
iD8DBQFArhbWfiC/E+t8hPcRAtX7AJ9A5ZtSN+6hGQVNLvEjdwV+h2AMBQCfVNem mn+DiJ2ov6+OB3O9hCu/NC8= =8rsG -----END PGP SIGNATURE-----
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 :)
participants (2)
-
"Branko F. Gračnar"
-
Timo Sirainen