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.
signature.asc
Description: This is a digitally signed message part