I'd suggest downloading the latest v1.2 code from hg: http://hg.dovecot.org/dovecot-1.2/archive/tip.tar.gz
With that you could implement the whole thing as a plugin, like I mentioned in my previous mail. Anyway Cydir code is in src/lib-storage/index/cydir/ and zlib plugin code is in src/plugins/zlib/. src/lib-storage/mail-storage.h and mail-storage-private.h are probably the most helpful files for understanding how lib-storage API works. On Tue, 2009-03-10 at 09:52 +0800, Wei Da wrote: > Yes, nearly is. > I have download the dovecot-1.1.11 source code. which file should I read? > Can you tell me in detail ? > > > > 2009/3/10 Seth Mattinen <[email protected]> > > > Wei Da wrote: > > > Hello, > > > I'm a software programmer and I work for a software corporation. We > > worked > > > on dovecot for a while. We want to add some new functions to dovecot. For > > > example, the mail stored on Mail-Server is plaintext, so we want to make > > it > > > encrypted. As the documentation was not too much, and read the source > > code > > > was too difficult for em. Would you give me some advice if I make this > > > specialty as a plugin? > > > Thank you! > > > > > > > Sounds like you want to write a new storage engine. See the "Cydir" > > storage source code for an example. Wiki page: > > http://wiki.dovecot.org/MailboxFormat/Cydir > > > > ~Seth > >
signature.asc
Description: This is a digitally signed message part
