[PATCH 2/3] cli: all search mode to include msg-ids with JSON output
Jameson Graef Rollins
jrollins at finestructure.net
Thu Nov 22 08:15:01 PST 2012
On Fri, Nov 09 2012, Mark Walters <markwalters1009 at gmail.com> wrote:
> This adds a --output=with-ids option which gives similar output to the
> normal search summary output but with a list of message ids
> too. Currently this is not implemented for text format.
Hey, Mark. Very nit-picky comment here, but I'm not sure "with-ids" is
an appropriate name for an output type. "with-ids" sounds like a
modifier, as opposed to a output type unto itself.
But I wonder if this separate output type is really necessary. Can the
emacs interface just make two separate search calls to the binary when
constructing the buffer, one with --output=summary and one with
--output=messages? Wouldn't that provide all the needed info? I guess
there would still be a race condition, especially for really long search
results, but I wonder if the calls could actually be made in parallel at
the same time. Maybe that would require more work. Sorry, just
thinking out loud here...
jamie.
-------------- next part --------------
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/20121122/1c706893/attachment.pgp>
More information about the notmuch
mailing list