[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
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.
participants (2)
-
Armando Adami Zaro
-
Timo Sirainen