[Dovecot] Plugin development question

Timo Sirainen tss at iki.fi
Sat Aug 25 00:44:02 EEST 2007


On Fri, 2007-08-24 at 12:57 -0700, Gary Smith wrote:
> Hello, 
> 
> >From what I have read on the dovecot site, it's possible to create a
> plugin for a custom data store format.  We have emails in a custom
> format in a database and would like to create a plugin for accessing
> these emails through dovecot.  
> 
> Is there any supporting documentation from creating a plugin like this?
> Are there any samples?

I think you should begin with Dovecot v1.1 code which makes it a lot
easier. It has Cydir format that is really simple and serves as a pretty
good example of how to implement a new backend.

Cydir is a mail_storage backend, but you'll probably need to also
implement mailbox_list backend. Shouldn't be too difficult by looking at
FS and Maildir++ backends I think.

By database do you mean SQL or something else? I've beginnings of SQL
backend plugin already, but I don't remember if it was for v1.0 code or
some version of v1.1. http://dovecot.org/patches/mail-sql.tar.gz

-------------- 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/20070825/9e9d0229/attachment.bin 


More information about the dovecot mailing list