Re: [notmuch] [PATCH 3/3] notmuch-show.c: prototype tabular output format, with output control

Subject: Re: [notmuch] [PATCH 3/3] notmuch-show.c: prototype tabular output format, with output control

Date: Tue, 09 Mar 2010 16:19:16 -0400

To: Carl Worth, notmuch@notmuchmail.org

Cc:

From: David Bremner


On Tue, 09 Mar 2010 11:51:46 -0800, Carl Worth <cworth@cworth.org> wrote:

> Are you proposing the tabular format for inclusion in notmuch?
> 
> Or does "prototype" suggest that you were just showing a demonstration
> of what could be done here?
> 
> If you do want this included, what's the motivation for this format?

I think some tabular format would be handy because it is very easy to
parse with scripts, and because it is a natural natural way to get
e.g. a list of message-ids.

--format=tabular --output=message-id

On the other hand, I'm not yet using this code, so I guess the main
point is to discuss how output control should be implemented, and in
that sense the patch is a demo. I suspect once we start using json
output more, we will definitely want it there.

All the best, 

David

Thread: