[PATCH 2/2] lib/database.cc: change how the parent of a message is calculated

2013-05-04 Thread Jani Nikula
LGTM On Wed, 06 Mar 2013, Aaron Ecay wrote: > Presently, the code which finds the parent of a message as it is being > added to the database assumes that the first Message-ID-like substring > of the In-Reply-To header is the parent Message ID. Some mail clients, > however, put stuff other than

[PATCH 1/2] test: add tests for the handling of References and In-Reply-To headers

2013-05-04 Thread Jani Nikula
On Wed, 06 Mar 2013, Aaron Ecay wrote: > These tests are known_broken, the following commit fixes them. > --- > > Thanks to David and Tomi for pointing out test_expect_equal_json. In > the process of implementing that, I discovered > notmuch_json_show_sanitize, which I had also not been using.

[PATCH 5/6] python: Add bindings for notmuch_thread_get_messages

2013-05-04 Thread David Bremner
Austin Clements writes: > --- > bindings/python/notmuch/thread.py | 27 ++- Justus OKed this privately. d

[PATCH 4/4] emacs: show: implement lazy hidden part handling

2013-05-04 Thread Mark Walters
This adds the actual code to do the lazy insertion of hidden parts. We use a memory inefficient but simple method: when we come to insert the part if it is hidden we just store all of the arguments to the part insertion function as a button property. This means when we want to show the part we

[PATCH 3/4] emacs: show: move the insertion of the header button to the top level

2013-05-04 Thread Mark Walters
Previously each of the part insertion handlers inserted the part button themselves. Move this up into notmuch-show-insert-bodypart. Since a small number of the handlers modify the button (the encryption/signature ones) we need to pass the header button as an argument into the individual part

[PATCH 2/4] emacs: show: handle inline patch fake parts at top level

2013-05-04 Thread Mark Walters
The inline patch fake part handler also modifies the content-type so handle this in notmuch-show-insert-bodypart too. --- emacs/notmuch-show.el |4 +++- emacs/notmuch-wash.el |2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-show.el

[PATCH 1/4] emacs:show: separate out handling of application/octet-stream

2013-05-04 Thread Mark Walters
Currently mime parts are basically handled based on their mime-type with the exception of application/octet-stream parts. Deal with these parts at the top level (notmuch-show-insert-bodypart). This is needed later in the series as we need to put in a part button for each part (which means knowing

[PATCH 0/4] emacs: show: lazy handling of hidden parts

2013-05-04 Thread Mark Walters
This is a much better version of the WIP patch at id:1367628568-11656-1-git-send-email-markwalters1009 at gmail.com There was some discussion on irc about the new invisibility handling making large threads of messages with html parts slow to appear. This is caused by the new code rendering all of

[PATCH 0/2] Enhancements to notmuch-hello search history

2013-05-04 Thread Servilio Afre Puentes
Jani Nikula writes: > On Fri, 03 May 2013, Servilio Afre Puentes wrote: >> Two patches that enhance the notmuch-hello search history UI. Though >> minor I find them very helpful. > > Both seem to work as advertised; I did not look at the code much. A > minor bikeshed is that I think y-or-n-p

[PATCH 0/2] Enhancements to notmuch-hello search history

2013-05-04 Thread Jani Nikula
On Fri, 03 May 2013, Servilio Afre Puentes wrote: > Two patches that enhance the notmuch-hello search history UI. Though > minor I find them very helpful. Both seem to work as advertised; I did not look at the code much. A minor bikeshed is that I think y-or-n-p would suffice in patch 1/2. BR,

[PATCH 2/2] lib/database.cc: change how the parent of a message is calculated

2013-05-04 Thread David Bremner
Aaron Ecay writes: > +if (ref && strcmp(ref, message_id)) { > + return ref; > +} else { > + return NULL; > +} As a nit, there should be a space after strcmp. But if nobody has any other comments, I could amend that. d

[PATCH 1/2] test: add tests for the handling of References and In-Reply-To headers

2013-05-04 Thread David Bremner
Aaron Ecay writes: > These tests are known_broken, the following commit fixes them. > --- On current master, I get FIXED Use In-Reply-To when no References d

[WIP] emacs: show: lazily insert html parts

2013-05-04 Thread Mark Walters
The current code renders all html parts by default and then hides them. This is quite slow so this is an attempt to make it only render them when the user chooses to show them. In my testing this code seems to work but has some rough edges. However, it may be useful to people in its current form

Notmuch Emacs UI aborts on SourceForge.net newsletter

2013-05-04 Thread David Bremner
Amadeusz ?o?nowski writes: > Attached message, when opened, causes Emacs crash: > > *** glibc detected *** emacs: free(): invalid next size (fast): > 0x0324f5e0 *** As promised, I duplicated this without notmuch, so I reported upstream as

Re: [PATCH 0/2] Enhancements to notmuch-hello search history

2013-05-04 Thread Jani Nikula
On Fri, 03 May 2013, Servilio Afre Puentes servi...@gmail.com wrote: Two patches that enhance the notmuch-hello search history UI. Though minor I find them very helpful. Both seem to work as advertised; I did not look at the code much. A minor bikeshed is that I think y-or-n-p would suffice in

[PATCH 0/4] emacs: show: lazy handling of hidden parts

2013-05-04 Thread Mark Walters
This is a much better version of the WIP patch at id:1367628568-11656-1-git-send-email-markwalters1...@gmail.com There was some discussion on irc about the new invisibility handling making large threads of messages with html parts slow to appear. This is caused by the new code rendering all of

[PATCH 1/4] emacs:show: separate out handling of application/octet-stream

2013-05-04 Thread Mark Walters
Currently mime parts are basically handled based on their mime-type with the exception of application/octet-stream parts. Deal with these parts at the top level (notmuch-show-insert-bodypart). This is needed later in the series as we need to put in a part button for each part (which means knowing

[PATCH 2/4] emacs: show: handle inline patch fake parts at top level

2013-05-04 Thread Mark Walters
The inline patch fake part handler also modifies the content-type so handle this in notmuch-show-insert-bodypart too. --- emacs/notmuch-show.el |4 +++- emacs/notmuch-wash.el |2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-show.el

[PATCH 3/4] emacs: show: move the insertion of the header button to the top level

2013-05-04 Thread Mark Walters
Previously each of the part insertion handlers inserted the part button themselves. Move this up into notmuch-show-insert-bodypart. Since a small number of the handlers modify the button (the encryption/signature ones) we need to pass the header button as an argument into the individual part

[PATCH 4/4] emacs: show: implement lazy hidden part handling

2013-05-04 Thread Mark Walters
This adds the actual code to do the lazy insertion of hidden parts. We use a memory inefficient but simple method: when we come to insert the part if it is hidden we just store all of the arguments to the part insertion function as a button property. This means when we want to show the part we

Re: [PATCH 1/2] test: add tests for the handling of References and In-Reply-To headers

2013-05-04 Thread David Bremner
Aaron Ecay aarone...@gmail.com writes: These tests are known_broken, the following commit fixes them. --- On current master, I get FIXED Use In-Reply-To when no References d ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH 1/2] test: add tests for the handling of References and In-Reply-To headers

2013-05-04 Thread David Bremner
Aaron Ecay aarone...@gmail.com writes: These tests are known_broken, the following commit fixes them. --- Sorry for the extra mails, but this patch also makes test/basic fail because thread-replies is not added to test/notmuch-test d ___ notmuch

Re: [PATCH 2/2] lib/database.cc: change how the parent of a message is calculated

2013-05-04 Thread David Bremner
Aaron Ecay aarone...@gmail.com writes: +if (ref strcmp(ref, message_id)) { + return ref; +} else { + return NULL; +} As a nit, there should be a space after strcmp. But if nobody has any other comments, I could amend that. d

Re: [PATCH 0/2] Enhancements to notmuch-hello search history

2013-05-04 Thread Servilio Afre Puentes
Jani Nikula j...@nikula.org writes: On Fri, 03 May 2013, Servilio Afre Puentes servi...@gmail.com wrote: Two patches that enhance the notmuch-hello search history UI. Though minor I find them very helpful. Both seem to work as advertised; I did not look at the code much. A minor bikeshed

Re: [PATCH 1/2] test: add tests for the handling of References and In-Reply-To headers

2013-05-04 Thread Jani Nikula
On Wed, 06 Mar 2013, Aaron Ecay aarone...@gmail.com wrote: These tests are known_broken, the following commit fixes them. --- Thanks to David and Tomi for pointing out test_expect_equal_json. In the process of implementing that, I discovered notmuch_json_show_sanitize, which I had also not

Re: [PATCH 2/2] lib/database.cc: change how the parent of a message is calculated

2013-05-04 Thread Jani Nikula
LGTM On Wed, 06 Mar 2013, Aaron Ecay aarone...@gmail.com wrote: Presently, the code which finds the parent of a message as it is being added to the database assumes that the first Message-ID-like substring of the In-Reply-To header is the parent Message ID. Some mail clients, however, put

Re: [PATCH 5/6] python: Add bindings for notmuch_thread_get_messages

2013-05-04 Thread David Bremner
Austin Clements amdra...@mit.edu writes: --- bindings/python/notmuch/thread.py | 27 ++- Justus OKed this privately. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: [PATCH REBASE] emacs: add show view bindings to move to previous/next thread

2013-05-04 Thread Mark Walters
Hi This seems like a useful addition to me. I have a couple of comments and a little bikeshedding below. On Thu, 02 May 2013, Jani Nikula j...@nikula.org wrote: We have most of the plumbing in place, add the bindings M-n and M-p. --- emacs/notmuch-show.el | 24 1

Re: [PATCH 2/2] emacs: hello: allow deleting individual searches in the history

2013-05-04 Thread Mark Walters
These patches both look good to me (and the lisp all looks fine) modulo a trivial style comment and a little bikeshedding. For the bikeshedding I would prefer that the first patch was a y-or-n-p (as Jani suggested) and that the second didn't query at all (the dataloss potential from deleting a