[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

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

2012-02-12 Thread Daniel Schoepe
On Sun, 12 Feb 2012 18:49:37 +, Mark Walters wrote: > +int opt_index, ret, entire_thread; > +notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST; > const notmuch_show_format_t *format = _text; > notmuch_show_params_t params = { .part = -1 }; > int format_sel =

[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 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 @@

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

2012-02-12 Thread Daniel Schoepe
On Sun, 12 Feb 2012 18:49:37 +, Mark Walters markwalters1...@gmail.com wrote: +int opt_index, ret, entire_thread; +notmuch_sort_t sort = NOTMUCH_SORT_NEWEST_FIRST; const notmuch_show_format_t *format = format_text; notmuch_show_params_t params = { .part = -1 }; int

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