Adding a CouchDB backend

Théodore Biadala theodore at biadala.net
Sat Sep 3 16:09:58 BST 2011


Hello,

I've been trying to add a couchdb backend with a friend, it's working pretty well. I'm not good at python so the code is a bit ugly : 
https://github.com/theodoreb/offlineimap

It was dead simple to implement, go offlineimap :)

And the relevant files are :
https://github.com/theodoreb/offlineimap/blob/couchdb-lite/offlineimap/folder/CouchDB.py
https://github.com/theodoreb/offlineimap/blob/couchdb-lite/offlineimap/repository/CouchDB.py


You need a couchdb server and the python-couchdb lib version 0.8 (or above) for this to work.

The config file looks like this :

[Repository Couch]
type = CouchDB
dbname = offlineimap
server = http://localhost:5984/

Works as local and remote repository.

Any improvement on the ugly python, var naming for the config or anything else is welcome :)






More information about the OfflineIMAP-project mailing list