Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-02-05 Thread David Edmondson
On Thursday, 2021-02-04 at 22:33:06 -04, David Bremner wrote: > David Edmondson writes: > >>> I'm just nervous about more legacy formats. I think we will get the >>> arbitrary headers thing working eventually, but I can see it might take >>> some time. >> >> Are we ever likely to get rid of the

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-02-04 Thread David Bremner
David Edmondson writes: >> I'm just nervous about more legacy formats. I think we will get the >> arbitrary headers thing working eventually, but I can see it might take >> some time. > > Are we ever likely to get rid of the raw format? I use it quite a bit, > and it seems to be relatively low

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-01-18 Thread Tomi Ollila
On Mon, Jan 18 2021, David Edmondson wrote: > On Monday, 2021-01-18 at 14:28:02 -04, David Bremner wrote: > >> David Edmondson writes: >>> Now, it would be nice to be able to say something like... >>> >>> notmuch show --format=sexp --body=false \ >>> --headers=received-by,face,x-face \ >>>

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-01-18 Thread David Edmondson
On Monday, 2021-01-18 at 14:28:02 -04, David Bremner wrote: > David Edmondson writes: >> Now, it would be nice to be able to say something like... >> >> notmuch show --format=sexp --body=false \ >> --headers=received-by,face,x-face \ >> id:foo >> >> ...to get some extra headers in the sexp

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-01-18 Thread David Bremner
David Edmondson writes: > On Monday, 2021-01-18 at 13:37:08 -04, David Bremner wrote: > >> David Edmondson writes: >> >>> Similar to other formats, allow the body to be omitted when outputting >>> raw messages. >>> >>> This can be used by UI code to get the full headers of a message >>> without

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-01-18 Thread David Edmondson
On Monday, 2021-01-18 at 13:37:08 -04, David Bremner wrote: > David Edmondson writes: > >> Similar to other formats, allow the body to be omitted when outputting >> raw messages. >> >> This can be used by UI code to get the full headers of a message >> without the need to consume the body, which

Re: [RFC PATCH] show: Add support for -format=raw -body=false

2021-01-18 Thread David Bremner
David Edmondson writes: > Similar to other formats, allow the body to be omitted when outputting > raw messages. > > This can be used by UI code to get the full headers of a message > without the need to consume the body, which may be large. I guess I'm a bit confused why this is for "raw"

[RFC PATCH] show: Add support for -format=raw -body=false

2021-01-17 Thread David Edmondson
Similar to other formats, allow the body to be omitted when outputting raw messages. This can be used by UI code to get the full headers of a message without the need to consume the body, which may be large. --- notmuch-show.c | 28 +--- 1 file changed, 25 insertions(+),