Adding a CouchDB backend
Nicolas Sebrecht
nicolas.s-dev at laposte.net
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 :
> https://github.com/theodoreb/offlineimap
First of all, I'm glad to hear people experimenting like that on
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
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
CouchDB?
--
Nicolas Sebrecht
More information about the OfflineIMAP-project
mailing list