Adding a CouchDB backend

Nicolas Sebrecht nicolas.s-dev at
Sat Sep 3 18:27:28 BST 2011

[ Please, limit you lines to 72-80 characters. ]

On Sat, Sep 03, 2011 at 05:09:58PM +0200,  Théodore Biadala wrote:
> 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 : 

First of all, I'm glad to hear people experimenting like that on

> It was dead simple to implement, go offlineimap :)
> And the relevant files are :

I ask contributors to send patches as plain emails to make the review as
easy as possible.

> 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 :)

I'm not sure: do you know we are slowly moving to the (currently
supported) sqlite backend? Of course, it doesn't mean we couldn't
support other backends.

So, I have to ask you what is your first intent in adding support for

Nicolas Sebrecht

More information about the OfflineIMAP-project mailing list