[Dovecot] Doubt on adding support for new mailbox format
Timo Sirainen
tss at iki.fi
Thu Feb 7 13:37:21 EET 2008
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: not available
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.bin
More information about the dovecot
mailing list