[notmuch] [PATCH] Add an "--format=(json|text)" command-line option to both notmuch-search and notmuch-show.
Carl Worth
cworth at cworth.org
Tue Feb 23 12:56:15 PST 2010
On Thu, 31 Dec 2009 11:17:40 -0400, david at tethera.net wrote:
> This is an updated version of Scott Robinson's patch of
> id:1261114167-sup-8228 at lisa. All of the hard work is Scott's. My
> changes to Scotts patch are
> - change option to --format from --output
> - make a couple of calls to function points conditional on the
> function pointers being non-null
> - updated the built-in documentation and the man page
>
> I also changed the copyright of json.c to Scott. Hope that's OK with
> Scott.
Well that's embarrassing. I just went through the effort of reviewing
the old patch and basically re-constructing that same list of tasks,
(only to find out that this updated patch was already sitting in my
queue, but later).
Anyway, very well done! I've applied this now with one change:
I'm now printing "thread" instead of "id" as the JSON name for the
field with the thread id in it.
I also added a mention to the TODO file that we should fix --format=json
to not imply --entire-thread.
Thanks again, David and Scott (and we hope that all the backpacking goes
well, Scott!).
-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100223/0aa30c46/attachment.pgp>
More information about the notmuch
mailing list