Inheriting tags from parent

2012-08-05 Thread Michal Nazarewicz
, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Micha? ?mina86? Nazarewicz(o o) ooo +--ooO--(_)--Ooo-- -- next part -- A non-text attachment was scrubbed... Name:

Release plans for 0.14

2012-08-05 Thread David Bremner
It has been a few months since we last had a release. I'd like to to another release within the next few weeks. To this end I'd like to take a snapshot of master next Sunday (August 12), and release that plus urgent bugfixes a week later (August 19). I realize this won't be time to get all of th

[PATCH 4/4] test: conform to content-length fields (text)

2012-08-05 Thread Peter Wang
Update tests to expect Content-length fields in show --format=text output, for leaf parts with omitted body content. --- test/crypto|4 ++-- test/multipart | 18 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/crypto b/test/crypto index 4a73dcc..8

[PATCH 3/4] show: indicate length of omitted body content (text)

2012-08-05 Thread Peter Wang
If a leaf part's body content is omitted, return the content length in --format=text output, for parity with --format=json output. --- notmuch-show.c | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 5c54257..cde8a

[PATCH 2/4] test: conform to content-length fields (json)

2012-08-05 Thread Peter Wang
Update tests to expect content-length fields in show --format=json output, for leaf parts with omitted body content. --- test/crypto| 25 + test/json |2 +- test/multipart |9 + 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/test

[PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Peter Wang
If a leaf part's body content is omitted, return the content length in --format=json output. This information may be used by the consumer, e.g. to decide whether to download a large attachment over a slow link. --- devel/schemata |5 - notmuch-show.c |8 2 files changed, 12 i

Release plans for 0.14

2012-08-05 Thread David Bremner
It has been a few months since we last had a release. I'd like to to another release within the next few weeks. To this end I'd like to take a snapshot of master next Sunday (August 12), and release that plus urgent bugfixes a week later (August 19). I realize this won't be time to get all of th

[PATCH 3/3] test: add broken roundtrip test

2012-08-05 Thread da...@tethera.net
From: David Bremner The output of test_cmp is redirected because it is pretty horrible, and tends to mess up terminals. When the test is no longer marked as broken, this redirection should be removed. --- test/dump-restore |9 + 1 file changed, 9 insertions(+) diff --git a/test/dump

[PATCH 2/3] test: add generator for random "stub" messages

2012-08-05 Thread da...@tethera.net
From: David Bremner Initial use case is testing dump and restore, so we only have message-ids and tags. The message ID's are nothing like RFC compliant, but it doesn't seem any harder to roundtrip random UTF-8 strings than RFC-compliant ones. Tags are UTF-8, even though notmuch is in principle

[PATCH 1/3] test: add database routines for testing.

2012-08-05 Thread da...@tethera.net
From: David Bremner Initially, provide a way to create "stub" messages in the notmuch database without corresponding files. This is essentially cut and paste from lib/database.cc. This is a seperate file since we don't want to export these symbols from libnotmuch or bloat the library with non-ex

test infrastructure for new dump/restore

2012-08-05 Thread da...@tethera.net
This implements an old suggestion of Mark's to get wacky message-ids into the database directly without relying on underdefined behaviour of the gmime parser; the previous effort relied on gmime passing literally through message-ids not delimitted according RFC. Also compared to the previous versi

Vim plugins

2012-08-05 Thread Sepp Tannhuber
Dear all, I would like to check the available vim plugins. At least I found three: - the original one - Felipe's ruby plugin - Anton's python plugin First of all can you tell me where I find the files of the python plugin? I tried ? $ git clone git://git.khirnov.net/git/notmuch But I cannot find

Re: [PATCH v2 2/7] lib: add a date/time parser module

2012-08-05 Thread Jani Nikula
Hi David, thanks for the review! On Sun, 05 Aug 2012, David Bremner wrote: > Jani Nikula writes: > >> + >> +static enum field >> +abs_to_rel_field (enum field field) >> +{ >> +assert (field <= TM_ABS_YEAR); >> + >> +/* note: depends on the enum ordering */ >> +return field + (TM_REL

Re: [PATCH 1/2] test: emacs: call accept-process-output in notmuch-test-wait

2012-08-05 Thread Jameson Graef Rollins
On Sun, Aug 05 2012, Tomi Ollila wrote: > notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1 > seconds while waiting for process to exit. > accept-process-output returns as soon as there is any data available > from process, so using it avoids unnecessary fixed delays. > Both

[PATCH 1/2] test: emacs: call accept-process-output in notmuch-test-wait

2012-08-05 Thread Jameson Graef Rollins
bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120805/90201165/attachment.pgp>

Re: [PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Jameson Graef Rollins
On Sun, Aug 05 2012, Peter Wang wrote: > If a leaf part's body content is omitted, return the content length in > --format=json output. This information may be used by the consumer, > e.g. to decide whether to download a large attachment over a slow link. > --- > devel/schemata |5 - > n

[PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Jameson Graef Rollins
-- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120805/bc63fe25/attachment.pgp>

[PATCH 2/2] test: emacs: run list-processes after accept-process-output in emacs 23.1

2012-08-05 Thread Tomi Ollila
When running emacs tests using emacs 23.1.1 the tests block (until timeout) when emacs function (notmuch-test-wait) is called. There is an emacs bug #2930 titled: 23.0.92; `accept-process-output' and `sleep-for' do not run sentinel It seems this is present in emacs 23.1. Calling list-processes a

[PATCH 1/2] test: emacs: call accept-process-output in notmuch-test-wait

2012-08-05 Thread Tomi Ollila
notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1 seconds while waiting for process to exit. accept-process-output returns as soon as there is any data available from process, so using it avoids unnecessary fixed delays. Both of these functions run process sentinels. --- Thi

[PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Tomi Ollila
On Sun, Aug 05 2012, Peter Wang wrote: > If a leaf part's body content is omitted, return the content length in > --format=json output. This information may be used by the consumer, > e.g. to decide whether to download a large attachment over a slow link. > --- Code looks good to me and tests p

[PATCH] NEWS: discuss changes for dump and restore syntax.

2012-08-05 Thread da...@tethera.net
From: David Bremner The duplication in NEWS.Debian is so that Debian users will be warned during upgrade. --- NEWS | 10 ++ debian/NEWS.Debian | 14 ++ 2 files changed, 24 insertions(+) diff --git a/NEWS b/NEWS index 7b1f36c..761b2c1 100644 --- a/NEWS +++ b

[PATCH 2/3] test: add generator for random "stub" messages

2012-08-05 Thread david
From: David Bremner Initial use case is testing dump and restore, so we only have message-ids and tags. The message ID's are nothing like RFC compliant, but it doesn't seem any harder to roundtrip random UTF-8 strings than RFC-compliant ones. Tags are UTF-8, even though notmuch is in principle

[PATCH 1/3] test: add database routines for testing.

2012-08-05 Thread david
From: David Bremner Initially, provide a way to create "stub" messages in the notmuch database without corresponding files. This is essentially cut and paste from lib/database.cc. This is a seperate file since we don't want to export these symbols from libnotmuch or bloat the library with non-ex

test infrastructure for new dump/restore

2012-08-05 Thread david
This implements an old suggestion of Mark's to get wacky message-ids into the database directly without relying on underdefined behaviour of the gmime parser; the previous effort relied on gmime passing literally through message-ids not delimitted according RFC. Also compared to the previous versi

[PATCH 3/3] test: add broken roundtrip test

2012-08-05 Thread david
From: David Bremner The output of test_cmp is redirected because it is pretty horrible, and tends to mess up terminals. When the test is no longer marked as broken, this redirection should be removed. --- test/dump-restore |9 + 1 file changed, 9 insertions(+) diff --git a/test/dump

[PATCH v2 2/7] lib: add a date/time parser module

2012-08-05 Thread David Bremner
Jani Nikula writes: > + > +static enum field > +abs_to_rel_field (enum field field) > +{ > +assert (field <= TM_ABS_YEAR); > + > +/* note: depends on the enum ordering */ > +return field + (TM_REL_SEC - TM_ABS_SEC); > +} > + I wonder if this would be slightly nicer of you defined a T

[PATCH] NEWS: discuss changes for dump and restore syntax.

2012-08-05 Thread david
From: David Bremner The duplication in NEWS.Debian is so that Debian users will be warned during upgrade. --- NEWS | 10 ++ debian/NEWS.Debian | 14 ++ 2 files changed, 24 insertions(+) diff --git a/NEWS b/NEWS index 7b1f36c..761b2c1 100644 --- a/NEWS +++ b

Vim plugins

2012-08-05 Thread Sepp Tannhuber
Dear all, I would like to check the available vim plugins. At least I found three: - the original one - Felipe's ruby plugin - Anton's python plugin First of all can you tell me where I find the files of the python plugin? I tried   $ git clone git://git.khirnov.net/git/notmuch But I cannot find

Re: [PATCH v2 2/7] lib: add a date/time parser module

2012-08-05 Thread David Bremner
Jani Nikula writes: > + > +static enum field > +abs_to_rel_field (enum field field) > +{ > +assert (field <= TM_ABS_YEAR); > + > +/* note: depends on the enum ordering */ > +return field + (TM_REL_SEC - TM_ABS_SEC); > +} > + I wonder if this would be slightly nicer of you defined a T

[PATCH 2/2] test: emacs: run list-processes after accept-process-output in emacs 23.1

2012-08-05 Thread Tomi Ollila
When running emacs tests using emacs 23.1.1 the tests block (until timeout) when emacs function (notmuch-test-wait) is called. There is an emacs bug #2930 titled: 23.0.92; `accept-process-output' and `sleep-for' do not run sentinel It seems this is present in emacs 23.1. Calling list-processes a

[PATCH 1/2] test: emacs: call accept-process-output in notmuch-test-wait

2012-08-05 Thread Tomi Ollila
notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1 seconds while waiting for process to exit. accept-process-output returns as soon as there is any data available from process, so using it avoids unnecessary fixed delays. Both of these functions run process sentinels. --- Thi

Re: [PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Tomi Ollila
On Sun, Aug 05 2012, Peter Wang wrote: > If a leaf part's body content is omitted, return the content length in > --format=json output. This information may be used by the consumer, > e.g. to decide whether to download a large attachment over a slow link. > --- Code looks good to me and tests p

Remove positional arguments to dump and restore

2012-08-05 Thread Tomi Ollila
On Sat, Aug 04 2012, david at tethera.net wrote: > The positional argument to dump was deprecated quite a while ago. For > restore, we never formally deprecated it. It seems a bit more > consistent this way, but I don't mind leaving restore alone if people > feel strongly about it. LGTM. Tomi

[PATCH v2] test: test-lib.el: replace sleep-for with sit-for in notmuch-test-wait

2012-08-05 Thread Tomi Ollila
When running emacs tests using emacs 23.1.1 the tests block (until timeout) when emacs function (notmuch-test-wait) is called. There is an emacs bug #2930 titled: 23.0.92; `accept-process-output' and `sleep-for' do not run sentinels It seems this is still active in emacs 23.1; replacing sleep-for

[PATCH 4/4] test: conform to content-length fields (text)

2012-08-05 Thread Peter Wang
Update tests to expect Content-length fields in show --format=text output, for leaf parts with omitted body content. --- test/crypto|4 ++-- test/multipart | 18 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/crypto b/test/crypto index 4a73dcc..8

[PATCH 2/4] test: conform to content-length fields (json)

2012-08-05 Thread Peter Wang
Update tests to expect content-length fields in show --format=json output, for leaf parts with omitted body content. --- test/crypto| 25 + test/json |2 +- test/multipart |9 + 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/test

[PATCH 3/4] show: indicate length of omitted body content (text)

2012-08-05 Thread Peter Wang
If a leaf part's body content is omitted, return the content length in --format=text output, for parity with --format=json output. --- notmuch-show.c | 23 +++ 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/notmuch-show.c b/notmuch-show.c index 5c54257..cde8a

[PATCH 1/4] show: indicate length of omitted body content (json)

2012-08-05 Thread Peter Wang
If a leaf part's body content is omitted, return the content length in --format=json output. This information may be used by the consumer, e.g. to decide whether to download a large attachment over a slow link. --- devel/schemata |5 - notmuch-show.c |8 2 files changed, 12 i