Re: [PATCH] use notmuch_database_open_verbose

2016-03-12 Thread David Bremner
Patrick Totzke writes: > ... instead of the deprecated notmuch_database_open Perhaps it should be formally deprecated, but unlike several other functions, it isn't. > when opening the database in notmuch.database.Database.open. > This prevents the library to print

[PATCH 2/6] lib: config list iterators

2016-03-12 Thread David Bremner
Since xapian provides the ability to restrict the iterator to a given prefix, we expose this ability to the user. Otherwise we mimic the other iterator interfances in notmuch (e.g. tags.c). --- lib/config.cc | 104 + lib/notmuch.h

library config api v4

2016-03-12 Thread David Bremner
This is an updated version of id:1453561198-2893-1-git-send-email-da...@tethera.net The main change is patch 6/6 that uses the config facility to split the database from the mail messages. In order to cut the Gordian knot of how to find the database using config information stored in the

Re: (emacs) Parsing problems replying to encrypted html

2016-03-12 Thread David Edmondson
On Sat, Mar 12 2016, David Bremner wrote: > Tomi Ollila writes: > >> 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1 >> --reply-to=sender thread:4a6f >> 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2 >> id:56dde706.6060...@bubblegen.co.uk

Re: Notmuch -- Just an email system

2016-03-12 Thread David Bremner
Bagrii Alisa writes: > Hello Carl, > > I really like your e-mail system - Notmuch. Very helpful and fast to use. > > You have a page on How to use it with > some tips which I would like to translate into Russian - my native

[PATCH] use notmuch_database_open_verbose

2016-03-12 Thread Patrick Totzke
... instead of the deprecated notmuch_database_open when opening the database in notmuch.database.Database.open. This prevents the library to print Xapian exceptions to stderr. --- bindings/python/notmuch/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/6] lib: provide config API

2016-03-12 Thread David Bremner
This is a thin wrapper around the Xapian metadata API. The job of this layer is to keep the config key value pairs from colliding with other metadata by transparently prefixing the keys, along with the usual glue to provide a C interface. The split of _get_config into two functions is to allow

[PATCH 6/6] WIP: support XDG database directory

2016-03-12 Thread David Bremner
--- lib/database.cc| 66 +- test/T560-lib-error.sh | 2 +- test/T590-libconfig.sh | 35 ++ 3 files changed, 90 insertions(+), 13 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 3b342f1..3d19bec

[PATCH 5/6] CLI: optionally restore config data.

2016-03-12 Thread David Bremner
Like the corresponding change to dump, this needs documentation --- notmuch-restore.c | 53 ++ test/T590-libconfig.sh | 11 +++ 2 files changed, 64 insertions(+) diff --git a/notmuch-restore.c b/notmuch-restore.c index 9abc64f..e06fbde

[PATCH 4/6] CLI: add optional config data to dump output.

2016-03-12 Thread David Bremner
This lacks at least documentation. Note that it changes the default dump output format, but doesn't break existing notmuch-restore. It might break user scripts though. --- notmuch-client.h | 8 + notmuch-dump.c| 80 +--

[PATCH 3/6] CLI: add print_status_database

2016-03-12 Thread David Bremner
This could probably be used at quite a few places in the existing code, but in the immediate future I plan to use in some new code in notmuch-dump --- notmuch-client.h | 5 + status.c | 17 + 2 files changed, 22 insertions(+) diff --git a/notmuch-client.h

Re: (emacs) Parsing problems replying to encrypted html

2016-03-12 Thread David Bremner
Tomi Ollila writes: > 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1 > --reply-to=sender thread:4a6f > 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2 > id:56dde706.6060...@bubblegen.co.uk > 2016-03-08 (Tue) 14:16:01: show --format=sexp

Re: Bug#817964: notmuch: indexing daemon

2016-03-12 Thread David Bremner
Paul Wise writes: > I would like to have a daemon running to index my mail as it arrives, > gets marked read and is deleted. This would ensure that the database is > up to date when I do a search using notmuch or one of the interfaces. > > Right now if I mark a mail as read and

Re: [PATCH] use notmuch_database_open_verbose

2016-03-12 Thread David Bremner
David Bremner writes: >> -"""notmuch_database_open""" >> -_open = nmlib.notmuch_database_open >> +"""notmuch_database_open_verbose""" >> +_open = nmlib.notmuch_database_open_verbose >> _open.argtypes = [c_char_p, c_uint, POINTER(NotmuchDatabaseP)] >>