Re: [PATCH v3 09/10] random-dump.c: new test-binary to generate dump files

2012-02-04 Thread Mark Walters
On Sat, 14 Jan 2012 21:40:23 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org This binary creates a torture test dump file for the new dump format. --- test/Makefile.local |4 ++ test/basic |2 +- test/random-dump.c | 144

Re: [PATCH v3 2/5] reply: Add a JSON reply format.

2012-02-05 Thread Mark Walters
On Thu, 19 Jan 2012 10:46:54 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: This new JSON format for replies includes headers generated for a reply message as well as the headers and all text parts of the original message. Using this data, a client can intelligently create a reply. For

Re: [PATCH v3 4/5] emacs: Use the new JSON reply format.

2012-02-05 Thread Mark Walters
On Thu, 19 Jan 2012 10:46:56 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: Using the new JSON reply format allows emacs to quote HTML parts nicely by using mm-display-part to turn them into displayable text, then quoting them. This is very useful for users who regularly receive HTML-only

Re: [PATCH v3 2/5] reply: Add a JSON reply format.

2012-02-05 Thread Mark Walters
On Sun, 05 Feb 2012 11:50:12 +, Mark Walters markwalters1...@gmail.com wrote: On Thu, 19 Jan 2012 10:46:54 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: This new JSON format for replies includes headers generated for a reply message as well as the headers and all text parts

Re: [Patch v2 0/4] Control selection of From: header when replying

2012-02-05 Thread Mark Walters
On Sun, 05 Feb 2012 10:58:04 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Hi Mark. I am not sure I like this solution. My concerns are: * New option looks too complex, too specific. * There are more aspects of notmuch reply behavior which users would like to change

Re: [PATCH 0/3] notmuch show argument parsing

2012-02-10 Thread Mark Walters
On Mon, 6 Feb 2012 21:57:20 +0200, Jani Nikula j...@nikula.org wrote: Hi all, v2 addressing Austin's comments in id:20120206041205.gp10...@mit.edu. Separate the bool cleanup into a new patch, cleaning up notmuch reply while at it. No functional changes since v1. For reviewing

Re: [Patch V4] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-02-11 Thread Mark Walters
Hi Here is the latest version of this patch set. I think I have fixed most of the problems raised in review but there are some remaining issues detailed below. I know this patch set needs rebasing on top of Jani's notmuch-show command line parsing patch: should I do that now or wait for

Re: [PATCH v3 1/2] emacs: Use text properties rather than overlays in `notmuch-show-mode'.

2012-02-11 Thread Mark Walters
Hi I looked at this and think its ok except for one trivial (but significant) rebase error. Best wishes Mark On Tue, 7 Feb 2012 08:46:16 +, David Edmondson d...@dme.org wrote: Except for where invisibility is involved, replace the use of overlays in `notmuch-show-mode' with text

Re: [PATCH v3 2/3] emacs: Optionally hide some part headers.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:07 +, David Edmondson d...@dme.org wrote: Add a regexp, `notmuch-show-part-headers-hidden' and if the content-type of a part matches, don't show the part header. --- emacs/notmuch-show.el | 43 --- 1 files changed, 28

Re: [PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Mon, 6 Feb 2012 15:39:08 +, David Edmondson d...@dme.org wrote: Previously this logic applied only to text/plain. Allow it for other text/* parts as well. What is the reason for treating the first part differently? Personally, I would prefer to keep it as now since pressing v on the

Re: [PATCH v3 3/3] emacs: Don't insert a part header if it's the first part and text/*.

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 09:24:09 +, Mark Walters markwalters1...@gmail.com wrote: On Mon, 6 Feb 2012 15:39:08 +, David Edmondson d...@dme.org wrote: Previously this logic applied only to text/plain. Allow it for other text/* parts as well. What is the reason for treating the first

RFC notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
Hello On irc recently dme posted a patch notmuch-pick.el which provided a threaded message view in the emacs interface. I have added substantially to it and made some cli changes to support it better. See http://kanelephant.com/screen.png for a screenshot. It seems to be working well (although

[RFC PATCH 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

[RFC PATCH 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 19 +++ emacs/notmuch.el |8 5 files changed, 38 insertions(+), 6 deletions(-) diff --git a/emacs/Makefile.local

[RFC PATCH 3/3] emacs: add notmuch-pick itself

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 570 + 1 files changed, 570 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..4c91d7c --- /dev/null

Re: [PATCH] emacs: Make highlight-faces for pick configurable

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 15:47:18 +0100, Daniel Schoepe dan...@schoepe.org wrote: --- emacs/notmuch-pick.el | 21 ++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el index 4c91d7c..2bf1ae4 100644 ---

[RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
matched messages highlight color both configurable and have a sensible default. These are in the notmuch-pick subgroup of the customize menus. Best wishes Mark Mark Walters (3): cli: notmuch-show changes to support pick emacs: changes to other files to support notmuch-pick emacs: add notmuch

[RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
--- notmuch-client.h |9 +- notmuch-show.c | 90 -- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/notmuch-client.h b/notmuch-client.h index 60828aa..b4dc7bf 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@

[RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
--- emacs/Makefile.local |3 ++- emacs/notmuch-hello.el | 10 ++ emacs/notmuch-lib.el |4 emacs/notmuch-query.el |4 +++- emacs/notmuch-show.el | 25 ++--- emacs/notmuch.el |8 6 files changed, 49 insertions(+), 5

[RFC PATCH v2 3/3] emacs: add notmuch-pick itself

2012-02-12 Thread Mark Walters
--- emacs/notmuch-pick.el | 585 + 1 files changed, 585 insertions(+), 0 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/notmuch-pick.el b/emacs/notmuch-pick.el new file mode 100644 index 000..46eb720 --- /dev/null

Re: [RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
On Sun, 12 Feb 2012 12:39:13 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Sun, 12 Feb 2012 18:49:36 +, Mark Walters markwalters1...@gmail.com wrote: Here is a rebased version of the notmuch-pick patch set id:87d39k1gvi@qmul.ac.uk. It now applies directly

Re: [RFC PATCH v2 1/3] cli: notmuch-show changes to support pick

2012-02-12 Thread Mark Walters
This patch adds the following features to notmuch-show.c a --headers-only option which just outputs the headers of a message (i.e. it omits the bodies). This is not strictly needed by notmuch-pick.el but it gives a speed-up of at least a factor of a two; moreover it reduces the memory usage of

Re: [RFC PATCH v2 2/3] emacs: changes to other files to support notmuch-pick

2012-02-12 Thread Mark Walters
This patch adds entries to notmuch-pick to notmuch-hello.el notmuch.el and notmuch-show.el. the option to view the current search in pick mode (from either notmuch-show.el or notmuch.el) a defcustom group for notmuch-pick. make notmuch-show (the main function) return the buffer it uses. This

[RFC PATCH v3 00/11] notmuch-pick: an emacs threaded message view with split-pane

2012-02-12 Thread Mark Walters
. I also found one stale change which I removed. Best wishes Mark Mark Walters (11): cli: add --headers_only option to notmuch-show.c cli: add sort options to notmuch-show.c cli: add --thread= option to notmuch-show emacs: add entry to notmuch-pick from

[RFC PATCH v3 01/11] cli: add --headers_only option to notmuch-show.c

2012-02-12 Thread Mark Walters
This option just outputs the headers of a message (i.e. it omits the bodies). This is used by notmuch-pick.el (although not needed) because it gives a speed-up of at least a factor of a two; moreover it reduces the memory usage in emacs hugely. --- notmuch-client.h |1 + notmuch-show.c |

[RFC PATCH v3 03/11] cli: add --thread= option to notmuch-show

2012-02-12 Thread Mark Walters
The possible values are --thread=none|entire|match. `entire' is exactly the existing option --entire-thread. `match' is exactly the existing case when --entire-thread is not specified. `none' is a new option to return just the matching messages with no threading information at all. The `none'

[RFC PATCH v3 04/11] emacs: add entry to notmuch-pick from notmuch-hello.el

2012-02-12 Thread Mark Walters
Add an entry to notmuch-pick from notmuch-hello and bind it to 'z'. --- emacs/notmuch-hello.el | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index d17a30f..6d28a7e 100644 --- a/emacs/notmuch-hello.el +++

[RFC PATCH v3 06/11] emacs: add extra parameters option to notmuch-query-get-threads

2012-02-12 Thread Mark Walters
Add an extra parameter to notmuch-query-get-threads (in notmuch-query.el) so that callers can pass in extra parameters to control the sort order, the --headers-only option, and threading etc. --- emacs/notmuch-query.el |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git

[RFC PATCH v3 10/11] emacs: notmuch-show.el just show the actual matching messages

2012-02-12 Thread Mark Walters
Allow a parameter to notmuch-show to just show the matching messages. This is very similar to notmuch-show-elide-non-matching-messages but since it calls notmuch-show.c with the --thread=none parameter it does not keep any threading information. In particular the sort order is different: the

[RFC PATCH v3 11/11] emacs: add notmuch-pick itself

2012-02-12 Thread Mark Walters
This adds the main notmuch-pick.el file itself --- emacs/Makefile.local |3 +- emacs/notmuch-pick.el | 585 + 2 files changed, 587 insertions(+), 1 deletions(-) create mode 100644 emacs/notmuch-pick.el diff --git a/emacs/Makefile.local

Re: [RFC PATCH v2 0/3] notmuch-pick: an emacs threaded message view with split-pane

2012-02-13 Thread Mark Walters
On Mon, 13 Feb 2012 14:35:31 +0530, Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com wrote: On Sun, 12 Feb 2012 18:49:36 +, Mark Walters markwalters1...@gmail.com wrote: Here is a rebased version of the notmuch-pick patch set id:87d39k1gvi@qmul.ac.uk. It now applies directly

[RFC PATCH v5 01/11] cli: add --no-exclude option to count and search.

2012-02-15 Thread Mark Walters
This option turns off the exclusion so all matching messages are returned. We do not need to add this to notmuch-show as that does not (yet) exclude. --- notmuch-count.c | 17 +++-- notmuch-search.c | 17 +++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff

[RFC PATCH v5 02/11] cli: Add --no-exclude to the man pages for search and count

2012-02-15 Thread Mark Walters
--- man/man1/notmuch-count.1 |7 +++ man/man1/notmuch-search.1 |7 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/man/man1/notmuch-count.1 b/man/man1/notmuch-count.1 index 25fe329..413b405 100644 --- a/man/man1/notmuch-count.1 +++ b/man/man1/notmuch-count.1

[RFC PATCH v5 03/11] test: add tests for new cli --no-exclude option

2012-02-15 Thread Mark Walters
The tests test the new --no-exclude option to search and count. There were no existing tests for the exclude behaviour for count so added these too. --- test/count | 21 + test/search |5 + 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/test/count

[RFC PATCH v5 05/11] lib: Make notmuch_query_search_messages set the exclude flag

2012-02-15 Thread Mark Walters
Add a flag NOTMUCH_MESSAGE_FLAG_EXCLUDED which is set by notmuch_query_search_messages for excluded messages. Also add an option omit_excluded_messages to the search that we do not want the excludes at all. This exclude flag will be added to notmuch_query_search threads in the next patch. ---

[RFC PATCH v5 04/11] lib: Rearrange the exclude code in query.cc

2012-02-15 Thread Mark Walters
Slightly refactor the exclude code to give the callers access to the exclude query itself. There should be no functional change. --- lib/query.cc | 29 +++-- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/lib/query.cc b/lib/query.cc index

[RFC PATCH v5 07/11] cli: Make notmuch-show respect excludes.

2012-02-15 Thread Mark Walters
This adds the excludes to notmuch-show.c. We do not exclude when only a single message (or part) is requested. notmuch-show will output the exclude information when either text or json format is requested. As this changes the output from notmuch-show it breaks many tests (in a trivial and expected

[RFC PATCH v5 08/11] man: update manpage for notmuch-show --no-exclude option

2012-02-15 Thread Mark Walters
--- man/man1/notmuch-show.1 |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1 index b2301d8..f743a53 100644 --- a/man/man1/notmuch-show.1 +++ b/man/man1/notmuch-show.1 @@ -128,6 +128,13 @@ multipart/encrypted part will

[RFC PATCH v5 06/11] lib: Add the exclude flag to notmuch_query_search_threads

2012-02-15 Thread Mark Walters
Add the NOTMUCH_MESSAGE_FLAG_EXCLUDED flag to notmuch_query_search_threads. Implemented by inspecting the tags directly in _notmuch_thread_create/_thread_add_message rather than as a Xapian query for speed reasons. Note notmuch_thread_get_matched_messages now returns the number of non-excluded

[RFC PATCH v5 10/11] cli: omit excluded messages in results where appropriate.

2012-02-15 Thread Mark Walters
In all cases of notmuch count/search/show where the results returned cannot reflect the exclude flag return just the matched not-excluded results. If the caller wishes to have all the matched results (i.e., including the excluded ones) they should call with the --no-exclude option. The relevant

[RFC PATCH v5 09/11] test: update tests to reflect the exclude flag

2012-02-15 Thread Mark Walters
notmuch show outputs the exclude flag so many tests using notmuch show failed. This commit adds excluded:0 or excluded: false to the expected outputs. After this commit there should be no failing tests. --- test/crypto|9 - test/encoding |2 +- test/json |

[RFC PATCH v5 11/11] emacs: show: recognize the exclude flag.

2012-02-15 Thread Mark Walters
Show mode will recognize the exclude flag by not opening excluding messages by default, and will start at the first matching non-excluded message. If there are no matching non-excluded messages it will go to the first matching (necessarily excluded) message. --- emacs/notmuch-show.el | 19

Re: [RFC PATCH v3 00/11] notmuch-pick: an emacs threaded message view with split-pane

2012-02-15 Thread Mark Walters
On Tue, 14 Feb 2012 10:21:14 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Mark Walters on Feb 14 at 12:28 pm: Finally, if notmuch-pick were able to do work asynchronously (as notmuch-search does now) then I think all the speed concerns would go away. However, I am not sure how to do

Re: [PATCH] emacs: Add the option of counting threads in notmuch-hello

2012-02-15 Thread Mark Walters
On Wed, 15 Feb 2012 19:14:19 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Wed, 15 Feb 2012 09:23:31 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: On Wed, Feb 15, 2012 at 08:52, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Can we delay this patch until user-defined sections

Re: [RFC PATCH v5 00/11] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-02-15 Thread Mark Walters
On Wed, 15 Feb 2012 09:46:56 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, 15 Feb 2012 09:03:28 +, Mark Walters markwalters1...@gmail.com wrote: The current implementation of exclude-tags does not use excludes in notmuch-show.c (and thus not in notmuch-show.el

Re: [RFC PATCH v5 00/11] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-02-15 Thread Mark Walters
On Wed, 15 Feb 2012 14:16:16 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: On Wed, 15 Feb 2012 21:11:15 +, Mark Walters markwalters1...@gmail.com wrote: I think the difficulty is that there are lots of annoying corner cases, but if there is a simpler solution

Re: [RFC PATCH 00/13] Modular message store code

2012-02-15 Thread Mark Walters
On Wed, 15 Feb 2012 17:01:53 -0500, Ethan Glasser-Camp gla...@cs.rpi.edu wrote: Hi guys, I'm submitting as RFC this patch series, which introduces the idea of a mailstore, a class that defines how to access mail, instead of currently assuming it's always some Maildir-ish hierarchy that

Re: [PATCH] emacs: Mention race condition safety in user visible documentation

2012-02-21 Thread Mark Walters
On Sun, 19 Feb 2012 08:33:00 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: On Sun, 19 Feb 2012, Jani Nikula wrote: On Feb 19, 2012 12:44 AM, Michal Sojka sojk...@fel.cvut.cz wrote: After recent rework of a/A/x/X key bindings, the important paragraph in documentation of

[PATCH 0/2] Make elide messages use cli side

2012-02-23 Thread Mark Walters
at a time and the speed increase will be needed there. Best wishes Mark Mark Walters (2): emacs/cli: remove entire-thread default from show: JSON emacs: make elide messages use notmuch-show for omitting messages. emacs/notmuch-show.el | 15 +-- notmuch-show.c|1 - 2

[PATCH 1/2] emacs/cli: remove entire-thread default from show: JSON

2012-02-23 Thread Mark Walters
Previously notmuch-show.c defaulted to --entire-thread when format=json. Make the default just the matching messages, but make the single emacs caller add --entire-thread to the arguments supplied so the end result should be unchanged. --- emacs/notmuch-show.el |7 --- notmuch-show.c

[PATCH 2/2] emacs: make elide messages use notmuch-show for omitting messages.

2012-02-23 Thread Mark Walters
Previously the elide messages code got the entire-thread from notmuch-show.c and then threw away all non-matching messages. This version calls notmuch-show.c without the --entire-thread flag so it never receives the non-matching messages in the first place. This makes it substantially faster. ---

Re: [PATCH 1/2] emacs/cli: remove entire-thread default from show: JSON

2012-02-23 Thread Mark Walters
On Thu, 23 Feb 2012 14:45:57 -0700, Adam Wolfe Gordon awg+notm...@xvx.ca wrote: Hi Mark, On Thu, Feb 23, 2012 at 14:41, Mark Walters markwalters1...@gmail.com wrote: Previously notmuch-show.c defaulted to --entire-thread when format=json.  Make the default just the matching messages

Re: [RFC PATCH 1/3] emacs: selection-menu.el

2012-02-24 Thread Mark Walters
On Thu, 23 Feb 2012 17:10:15 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: RFC/Idea for improving some selections made (in notmuch or elsewhere) In the hope that this will be useful, and to get some improvement advice. I've found it somewhat difficult to use completing-read (i also tried ido-)

[Patch v6 00/13] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-02-25 Thread Mark Walters
that the messages do not get marked excluded. Make notmuch.el drop results with no matching non-excluded messages. The diff from v5 is at the end of this cover letter. Best wishes Mark Mark Walters (13): cli: add --no-exclude option to count and search. cli: Add --no-exclude

[Patch v6 11/13] cli: omit excluded messages in results where appropriate.

2012-02-25 Thread Mark Walters
In all cases of notmuch count/search/show where the results returned cannot reflect the exclude flag return just the matched not-excluded results. If the caller wishes to have all the matched results (i.e., including the excluded ones) they should call with the --no-exclude option. The relevant

[Patch v6 04/13] lib: Rearrange the exclude code in query.cc

2012-02-25 Thread Mark Walters
Slightly refactor the exclude code to give the callers access to the exclude query itself. There should be no functional change. --- lib/query.cc | 29 +++-- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/lib/query.cc b/lib/query.cc index

[Patch v6 12/13] emacs: show: recognize the exclude flag.

2012-02-25 Thread Mark Walters
Show mode will recognize the exclude flag by not opening excluding messages by default, and will start at the first matching non-excluded message. If there are no matching non-excluded messages it will go to the first matching (necessarily excluded) message. --- emacs/notmuch-show.el | 19

[Patch v6 06/13] lib: Add the exclude flag to notmuch_query_search_threads

2012-02-25 Thread Mark Walters
Add the NOTMUCH_MESSAGE_FLAG_EXCLUDED flag to notmuch_query_search_threads. Implemented by inspecting the tags directly in _notmuch_thread_create/_thread_add_message rather than as a Xapian query for speed reasons. Note notmuch_thread_get_matched_messages now returns the number of non-excluded

[Patch v6 10/13] man: update manpage for notmuch-show --no-exclude option

2012-02-25 Thread Mark Walters
--- man/man1/notmuch-show.1 |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1 index b2301d8..8383a05 100644 --- a/man/man1/notmuch-show.1 +++ b/man/man1/notmuch-show.1 @@ -128,6 +128,13 @@ multipart/encrypted part will

[Patch v6 13/13] emacs: notmuch.el ignore excluded matches

2012-02-25 Thread Mark Walters
This is a small change to make notmuch.el ignore excluded matches. In the future it could do something better like add a button for rerunning the search with the excludes (particularly if nothing matches with the excludes) or having them invisible and allowing the visibility to be toggled. It is

[Patch v6 05/13] lib: Make notmuch_query_search_messages set the exclude flag

2012-02-25 Thread Mark Walters
Add a flag NOTMUCH_MESSAGE_FLAG_EXCLUDED which is set by notmuch_query_search_messages for excluded messages. Also add an option omit_excluded_messages to the search that we do not want the excludes at all. This exclude flag will be added to notmuch_query_search threads in the next patch. ---

[Patch v6 01/13] cli: add --no-exclude option to count and search.

2012-02-25 Thread Mark Walters
This option turns off the exclusion so all matching messages are returned. We do not need to add this to notmuch-show as that does not (yet) exclude. --- notmuch-count.c | 17 +++-- notmuch-search.c | 17 +++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff

[Patch v6 03/13] test: add tests for new cli --no-exclude option

2012-02-25 Thread Mark Walters
The tests test the new --no-exclude option to search and count. There were no existing tests for the exclude behaviour for count so added these too. --- test/count | 21 + test/search |5 + 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/test/count

Re: plans for 0.12

2012-02-26 Thread Mark Walters
On Sat, 25 Feb 2012 10:27:02 -0400, David Bremner da...@tethera.net wrote: I would like to start a freeze (i.e. merge master to release) for 0.12 within the next week, say March 1 for an easy to remember date. If you have suggestions for things that should really go in, feel free to follow

Re: [Patch v6 12/13] emacs: show: recognize the exclude flag.

2012-02-29 Thread Mark Walters
8324bc91e43d04e4c2813fa2a714766bcd057256 Mon Sep 17 00:00:00 2001 From: Mark Walters markwalters1...@gmail.com Date: Sun, 29 Jan 2012 16:32:55 + Subject: [PATCH] emacs: show: recognize the exclude flag. Show mode will recognize the exclude flag by not opening excluding messages by default, and will start at the first matching

[PATCH v5] News for Make buttons for attachments allow viewing as well as saving

2012-02-29 Thread Mark Walters
On Sat, 21 Jan 2012 09:09:58 -0400, David Bremner da...@tethera.net wrote: On Fri, 20 Jan 2012 09:44:06 +, Mark Walters markwalters1...@gmail.com wrote: Define a keymap for attachment buttons to allow multiple actions. Define 3 possible actions: save attachment: exactly

[PATCH 1/5] config: disable addition of exclude tags for 0.12

2012-02-29 Thread Mark Walters
This disables the addition of search_exclude_tags in notmuch-setup and notmuch-config. --- notmuch-config.c |3 +-- notmuch-setup.c | 19 +-- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/notmuch-config.c b/notmuch-config.c index e9b2750..61fda3e 100644

[PATCH 3/5] man: remove search.exclude_tags from notmuch-config.1 for 0.12

2012-02-29 Thread Mark Walters
--- man/man1/notmuch-config.1 |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/man/man1/notmuch-config.1 b/man/man1/notmuch-config.1 index 0260eb7..36e09f4 100644 --- a/man/man1/notmuch-config.1 +++ b/man/man1/notmuch-config.1 @@ -85,14 +85,6 @@ directory hierarchy.

[PATCH 2/5] NEWS: revert NEWS item for exclude tags for 0.12

2012-02-29 Thread Mark Walters
--- NEWS | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/NEWS b/NEWS index b2bec04..5fa8043 100644 --- a/NEWS +++ b/NEWS @@ -11,24 +11,6 @@ Reply to sender to all. The feature is available through the new command line option

[PATCH 4/5] cli: temporarily remove exclude tag support for 0.12

2012-02-29 Thread Mark Walters
--- notmuch-count.c |8 +--- notmuch-search.c |8 +--- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 63459fb..f86cb40 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -35,9 +35,6 @@ notmuch_count_command (void *ctx,

[PATCH 5/5] test: mark exclude tests broken for 0.12

2012-02-29 Thread Mark Walters
--- test/search |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/search b/test/search index 414be35..c55522b 100755 --- a/test/search +++ b/test/search @@ -130,6 +130,7 @@ output=$(notmuch search bödý | notmuch_search_sanitize) test_expect_equal $output thread:XXX

Re: [PATCH] emacs-hello: Do not calculate the count of the messages in hidden sections

2012-03-01 Thread Mark Walters
On Sat, 18 Feb 2012 23:12:29 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: The result is that hello screen shows much faster when some sections are hidden. --- emacs/notmuch-hello.el | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git

[Patch v7 00/13] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-03-01 Thread Mark Walters
JSON show rewrite. Best wishes Mark Mark Walters (13): cli: add --no-exclude option to count and search. cli: Add --no-exclude to the man pages for search and count test: add tests for new cli --no-exclude option lib: Rearrange the exclude code in query.cc lib: Make

[Patch v7 01/13] cli: add --no-exclude option to count and search.

2012-03-01 Thread Mark Walters
This option turns off the exclusion so all matching messages are returned. We do not need to add this to notmuch-show as that does not (yet) exclude. --- notmuch-count.c | 17 +++-- notmuch-search.c | 17 +++-- 2 files changed, 22 insertions(+), 12 deletions(-) diff

[Patch v7 03/13] test: add tests for new cli --no-exclude option

2012-03-01 Thread Mark Walters
The tests test the new --no-exclude option to search and count. There were no existing tests for the exclude behaviour for count so added these too. --- test/count | 21 + test/search |5 + 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/test/count

[Patch v7 05/13] lib: Make notmuch_query_search_messages set the exclude flag

2012-03-01 Thread Mark Walters
Add a flag NOTMUCH_MESSAGE_FLAG_EXCLUDED which is set by notmuch_query_search_messages for excluded messages. Also add an option omit_excluded_messages to the search that we do not want the excludes at all. This exclude flag will be added to notmuch_query_search threads in the next patch. ---

[Patch v7 06/13] lib: Add the exclude flag to notmuch_query_search_threads

2012-03-01 Thread Mark Walters
Add the NOTMUCH_MESSAGE_FLAG_EXCLUDED flag to notmuch_query_search_threads. Implemented by inspecting the tags directly in _notmuch_thread_create/_thread_add_message rather than as a Xapian query for speed reasons. Note notmuch_thread_get_matched_messages now returns the number of non-excluded

[Patch v7 07/13] test: update search test to reflect exclude flag

2012-03-01 Thread Mark Walters
notmuch-search.c now returns all matching threads even if it the match is a search.tag_excluded message (but with a mark indicating this). Update the test to reflect this. --- test/search |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/test/search b/test/search index

[Patch v7 10/13] man: update manpage for notmuch-show --no-exclude option

2012-03-01 Thread Mark Walters
--- man/man1/notmuch-show.1 |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/man/man1/notmuch-show.1 b/man/man1/notmuch-show.1 index 4c5db94..d75d971 100644 --- a/man/man1/notmuch-show.1 +++ b/man/man1/notmuch-show.1 @@ -128,6 +128,13 @@ multipart/encrypted part will

[Patch v7 11/13] cli: omit excluded messages in results where appropriate.

2012-03-01 Thread Mark Walters
In all cases of notmuch count/search/show where the results returned cannot reflect the exclude flag return just the matched not-excluded results. If the caller wishes to have all the matched results (i.e., including the excluded ones) they should call with the --no-exclude option. The relevant

[Patch v7 12/13] emacs: show: recognize the exclude flag.

2012-03-01 Thread Mark Walters
Show mode will recognize the exclude flag by not opening excluding messages by default, and will start at the first matching non-excluded message. If there are no matching non-excluded messages it will go to the first matching (necessarily excluded) message. --- emacs/notmuch-show.el | 36

[Patch v7 09/13] test: update tests to reflect the exclude flag

2012-03-01 Thread Mark Walters
notmuch show outputs the exclude flag so many tests using notmuch show failed. This commit adds excluded:0 or excluded: false to the expected outputs. After this commit there should be no failing tests. --- test/crypto|9 - test/encoding |2 +- test/json |

[Patch v7 13/13] emacs: notmuch.el ignore excluded matches

2012-03-01 Thread Mark Walters
This is a small change to make notmuch.el ignore excluded matches. In the future it could do something better like add a button for rerunning the search with the excludes (particularly if nothing matches with the excludes) or having them invisible and allowing the visibility to be toggled. ---

Re: [Patch v7 00/13] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-03-02 Thread Mark Walters
On Thu, 1 Mar 2012 22:30:32 +, Mark Walters markwalters1...@gmail.com wrote: This is essentially the same as id:1330157204-26094-1-git-send-email-markwalters1...@gmail.com but has been rebased against master. The changes are to patch 12/13 for notmuch-show.el (which was posted

Re: [Patch v7 00/13] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-03-02 Thread Mark Walters
On Thu, 1 Mar 2012 22:30:32 +, Mark Walters markwalters1...@gmail.com wrote: This is essentially the same as id:1330157204-26094-1-git-send-email-markwalters1...@gmail.com but has been rebased against master. The changes are to patch 12/13 for notmuch-show.el (which was posted

Re: [Patch v7 00/13] Add NOTMUCH_MESSAGE_FLAG_EXCLUDED flag

2012-03-03 Thread Mark Walters
On Sat, 03 Mar 2012 03:42:44 +, Mark Walters markwalters1...@gmail.com wrote: On Thu, 1 Mar 2012 22:30:32 +, Mark Walters markwalters1...@gmail.com wrote: This is essentially the same as id:1330157204-26094-1-git-send-email-markwalters1...@gmail.com but has been rebased against

[PATCH 0/5] Move to --with-excluded approach to excludes

2012-03-03 Thread Mark Walters
. This series just changes the names and defaults fed to the existing logic. The only slightly complicated part is the notmuch-show.c patch as it has to decide quite what to do in lots of cases. See id:87d38t26wp@qmul.ac.uk for reasons for the precise choices made. Best wishes Mark Mark Walters

[PATCH 1/5] lib: rename (and negate) set_omit_excluded set_with_excluded

2012-03-03 Thread Mark Walters
Rename the function notmuch_query_set_omit_excluded_messages to notmuch_query_set_with_excluded_messages and negate its meaning. Note the suite will not compile currently as the callers of notmuch_query_set_omit_excluded_messages have not been updated yet. --- lib/notmuch.h | 12 +++-

[PATCH 2/5] cli: move count to the new --with-excluded naming scheme.

2012-03-03 Thread Mark Walters
Rename the option --no-exclude to --with-excluded. Note that this could be implemented by setting notmuch_query_set_with_excluded_messages but it is simpler not to set the exclude tags in the first place (the two methods give identical output). --- man/man1/notmuch-count.1 |4 ++--

[PATCH 3/5] cli: move search to the new --with-excluded naming scheme.

2012-03-03 Thread Mark Walters
This commit replaces the --no-exclude option with a --with-excluded option. The output is identical in all cases except output-summary. In this case they output exactly the same thread lines. They differ in that with the new option the match count (i.e., the x in [x/n] in the output) is the number

[PATCH 4/5] cli: move show to the new --with-excluded naming scheme.

2012-03-03 Thread Mark Walters
This moves show to the --with-excluded naming scheme. When this is set show returns all threads that match including those that only match in an excluded message. When this flag is not set the behaviour depends on whether --entire-threads is set. If it is not set then show only returns the

[PATCH 5/5] emacs: make show set --with-excluded

2012-03-03 Thread Mark Walters
Show has to set --with-excluded to deal with cases where it is asked to show a single excluded message. It use JSON so it can easily pass the exclude information to the user. --- emacs/notmuch-show.el |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] emacs: keep customizations in groups

2012-03-04 Thread Mark Walters
On Sat, 3 Mar 2012 23:55:24 +0200, Jani Nikula j...@nikula.org wrote: Move hello section customization to notmuch-hello group and printing customization to notmuch-show group from the top level customization group. Hi This is an clear improvement but I wonder about the positioning of these

Re: [PATCH] emacs: fix MML quoting in replies

2012-03-04 Thread Mark Walters
On Sun, 4 Mar 2012 10:25:38 +0200, Jani Nikula j...@nikula.org wrote: The reply MML quoting added in commit ae438cc unintentionally MML quotes also the signature/encryption MML tags added via message-setup-hook, causing the reply not to be signed/encrypted. MML quote just the original

Obsolete Patches

2012-03-08 Thread Mark Walters
Hi There was a comment on irc about the needs review queue on nmbug status being large. I think there may be several patches on there that have been superseded or otherwise made obsolete. This makes choosing what to review harder. My guess is that it is very much easier for the author to know

[PATCH 0/2] cli: Parsing. Add option NOTMUCH_OPT_INT_OR_BOOLEAN

2012-03-08 Thread Mark Walters
the caller to disable --entire-thread (with --entire-thread=0) when format=json. Best wishes Mark Mark Walters (2): cli: Parsing. Add option NOTMUCH_OPT_INT_OR_BOOLEAN cli: make --entire-thread option notmuch-show.c INT_OR_BOOLEAN command-line-arguments.c | 29

[PATCH 1/2] cli: Parsing. Add option NOTMUCH_OPT_INT_OR_BOOLEAN

2012-03-08 Thread Mark Walters
Allow the option NOTMUCH_OPT_INT_OR_BOOLEAN for command line parsing which accepts --verbose=3 and --verbose with the latter setting verbose to 1. It also allows --verbose=0 so (with a little caller support) user can turn off boolean options. This means that extra options can be added to the

[PATCH 2/2] cli: make --entire-thread option notmuch-show.c INT_OR_BOOLEAN

2012-03-08 Thread Mark Walters
Make the --entire-thread option notmuch-show.c NOTMUCH_OPT_INT_OR_BOOLEAN. In particular this means a caller can turn off entire-thread (by specifying --entire-thread=0) when format=json. (This was not previously possible.) --- notmuch-show.c | 10 -- 1 files changed, 8 insertions(+), 2

Re: [PATCH 0/2] cli: Parsing. Add option NOTMUCH_OPT_INT_OR_BOOLEAN

2012-03-08 Thread Mark Walters
Hi On Fri, 09 Mar 2012 02:48:35 +0200, Jani Nikula j...@nikula.org wrote: On Thu, 8 Mar 2012 22:15:42 +, Mark Walters markwalters1...@gmail.com wrote: The first patch adds a new command line parsing option NOTMUCH_OPT_INT_OR_BOOLEAN for command line parsing which accepts --verbose

[PATCH v2 0/2] cli: Allow true/false parameter for boolean

2012-03-10 Thread Mark Walters
and this one are quite similar: the key difference is that this version abuses a notmuch_bool_t by setting it to -1 (to indicate that the parser has not set this option). This makes the code simpler but is definitely an abuse. I will discuss this further in replies to Jani's series. Best wishes Mark Mark

<    1   2   3   4   5   6   7   8   9   10   >