Armando Adami Zaro
2008-Feb-07 10:20 UTC
[Dovecot] Doubt on adding support for new mailbox format
Hi! I'm starting to read and play with dovecot since a month ago. But my mailboxes' format is hashdir, which has been implemented here by my team. Here: http://wiki.dovecot.org/MailboxFormat I've noticed that "Adding support for new formats for Dovecot isn't very difficult, although it can be time consuming. Dovecot exposes a nice and simple API which needs to be implemented" But I couldn't find that API. I've read the documentation so many times but have not found. Can you help me? Thanks a lot! -- Armando Adami Zaro Canopus Inform?tica Ltda Porto Alegre - RS - Brasil +55 51 3062-2404
Timo Sirainen
2008-Feb-07 11:37 UTC
[Dovecot] Doubt on adding support for new mailbox format
On Thu, 2008-02-07 at 08:20 -0200, Armando Adami Zaro wrote:> "Adding support for new formats for Dovecot isn't very difficult, > although it can be time consuming. Dovecot exposes a nice and simple API > which needs to be implemented" > > But I couldn't find that API. I've read the documentation so many times > but have not found. Can you help me?First of all don't bother trying to add it to v1.0. It's a lot easier in v1.1. So in v1.1 the APIs are in src/lib-storage/mail-storage-private.h and src/lib-storage/mailbox-list-private.h. A lot of these can be implemented using the generic functions in src/lib-storage/index/*. Only if you're using something like a SQL server as backend you might want to override things like searching and mailbox listing. src/lib-storage/index/cydir/ implements a really simple Cydir backend in 1200 lines. That would be a good starting place to look. -------------- 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/20080207/b9dade25/attachment-0002.bin>