[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread Mark Walters
On Sat, 08 Feb 2014, "W. Trevor King" wrote: > On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: >> On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: >> > My only other comment on the series is that you should update >> > devel/schemata in the first patch to reflect this

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread Mark Walters
Initially I agreed with Bremner that we should be as faithful as possible in our json/sexp output. However, looking at other headers like cc: it seems that this can be present but empty (at least I sent myself a message with that property), but that notmuch-show omits it. Looking at the code for

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread David Bremner
Mark Walters writes: > Looking at the code for that pathway we use > g_mime_message_get_recipients followed by > internet_address_list_to_string and we only output a cc: pair if this is > non-null (which means we had an address) > > In light of that I think changing the cli to only output > cont

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread David Bremner
Mark Walters writes: > Looking at the code for that pathway we use > g_mime_message_get_recipients followed by > internet_address_list_to_string and we only output a cc: pair if this is > non-null (which means we had an address) > > In light of that I think changing the cli to only output > cont

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread Mark Walters
On Sat, 08 Feb 2014, "W. Trevor King" wrote: > On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: >> On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: >> > My only other comment on the series is that you should update >> > devel/schemata in the first patch to reflect this

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-09 Thread Mark Walters
Initially I agreed with Bremner that we should be as faithful as possible in our json/sexp output. However, looking at other headers like cc: it seems that this can be present but empty (at least I sent myself a message with that property), but that notmuch-show omits it. Looking at the code for

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread W. Trevor King
On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: > On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > > My only other comment on the series is that you should update > > devel/schemata in the first patch to reflect this addition. > > Ah, I didn't realize that file exist

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread W. Trevor King
On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: > On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > > My only other comment on the series is that you should update > > devel/schemata in the first patch to reflect this addition. > > Ah, I didn't realize that file exist

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread W. Trevor King
On Sat, Feb 08, 2014 at 08:55:02AM -0400, David Bremner wrote: > "W. Trevor King" writes: > > Rather than patching this in Emacs, maybe we should collapse the > > “not set” and “set to empty string” cases in notmuch-show.c? I > > can't think of any reasons why someone would want to distinguish >

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread W. Trevor King
On Sat, Feb 08, 2014 at 08:55:02AM -0400, David Bremner wrote: > "W. Trevor King" writes: > > Rather than patching this in Emacs, maybe we should collapse the > > ?not set? and ?set to empty string? cases in notmuch-show.c? I > > can't think of any reasons why someone would want to distinguish >

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread David Bremner
"W. Trevor King" writes: > > Rather than patching this in Emacs, maybe we should collapse the ?not > set? and ?set to empty string? cases in notmuch-show.c? I can't think > of any reasons why someone would want to distinguish those two cases, > and it's easier all around if we standardize the re

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-08 Thread David Bremner
"W. Trevor King" writes: > > Rather than patching this in Emacs, maybe we should collapse the “not > set” and “set to empty string” cases in notmuch-show.c? I can't think > of any reasons why someone would want to distinguish those two cases, > and it's easier all around if we standardize the re

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: > On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: >> having notmuch patch email as expected test output feels a bit >> confusing to me -- especially as 'git grep' may catch some of the >> (possibly future-outdated) content... > > There wer

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: > On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: >> having notmuch patch email as expected test output feels a bit >> confusing to me -- especially as 'git grep' may catch some of the >> (possibly future-outdated) content... > > There wer

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread Tomi Ollila
On Mon, Feb 03 2014, "W. Trevor King" wrote: > On the rss2email list, Victor Orlikowski pointed out [1] that a number > of MUAs don't use the Subject header of attached message/rfc822 parts > to label multipart/digest subparts [2]. Instead, notmuch and several > other MUAs use the filename param

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread Mark Walters
On Mon, 03 Feb 2014, "W. Trevor King" wrote: > On the rss2email list, Victor Orlikowski pointed out [1] that a number > of MUAs don't use the Subject header of attached message/rfc822 parts > to label multipart/digest subparts [2]. Instead, notmuch and several > other MUAs use the filename param

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: > On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > > I think we should only display/use the content-description if it > > exists and is non-empty. > > Sounds good to me. I'll queue this and a test for v2. Rather than

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 12:34:18PM -0800, W. Trevor King wrote: > On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > > I think we should only display/use the content-description if it > > exists and is non-empty. > > Sounds good to me. I'll queue this and a test for v2. Rather than

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: > having notmuch patch email as expected test output feels a bit > confusing to me -- especially as 'git grep' may catch some of the > (possibly future-outdated) content... There were two very similar patches with filename attachments in

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: > having notmuch patch email as expected test output feels a bit > confusing to me -- especially as 'git grep' may catch some of the > (possibly future-outdated) content... There were two very similar patches with filename attachments in

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > I think we should only display/use the content-description if it > exists and is non-empty. Sounds good to me. I'll queue this and a test for v2. > My only other comment on the series is that you should update > devel/schemata in th

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On Mon, Feb 03, 2014 at 08:15:35PM +, Mark Walters wrote: > I think we should only display/use the content-description if it > exists and is non-empty. Sounds good to me. I'll queue this and a test for v2. > My only other comment on the series is that you should update > devel/schemata in th

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-03 Thread W. Trevor King
On the rss2email list, Victor Orlikowski pointed out [1] that a number of MUAs don't use the Subject header of attached message/rfc822 parts to label multipart/digest subparts [2]. Instead, notmuch and several other MUAs use the filename parameter [3] as a content hint. Using the filename paramet