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

2010-03-10 Thread David Bremner
On Wed, 10 Mar 2010 01:25:22 -0800, Carl Worth cwo...@cworth.org wrote:
 On Tue, 09 Mar 2010 16:19:16 -0400, David Bremner da...@tethera.net wrote:
  
  --format=tabular --output=message-id
 
 Ah, so maybe your notmuch show --format=tabular is basically the same
 thing I imagined for notmuch search (once we teach it to accept a list
 of the desired elements to output).

There is a third control axis, namely one piece of output per thread
(current notmuch search style), or all of the messages (notmuch show
style)

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


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

2010-03-09 Thread Carl Worth
On Sat, 19 Dec 2009 10:55:24 -0400, da...@tethera.net wrote:
 From: David Bremner brem...@unb.ca
 
 Currently this only outputs the information from the message header;
 i.e. the part before the rfc2822 header or body.

Hi David, 

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?

Thanks,

-Carl


pgpTzgk3Lel3p.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


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

2010-03-09 Thread David Bremner
On Tue, 09 Mar 2010 11:51:46 -0800, Carl Worth cwo...@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
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch