[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Pieter Praet
On Sat, 07 May 2011 11:14:08 +0200, Pieter Praet wrote: > On Fri, 06 May 2011 18:06:47 -0700, Jameson Graef Rollins finestructure.net> wrote: > > On Fri, 6 May 2011 19:55:26 -0400, Austin Clements > > wrote: > > > Perhaps text summary output should *always* do this. The text summary > > > form

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Pieter Praet
On Fri, 06 May 2011 18:06:47 -0700, Jameson Graef Rollins wrote: > On Fri, 6 May 2011 19:55:26 -0400, Austin Clements > wrote: > > Perhaps text summary output should *always* do this. The text summary > > format is meant half for user consumption and half for emacs > > consumption and allowing

Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Pieter Praet
On Sat, 07 May 2011 11:14:08 +0200, Pieter Praet wrote: > On Fri, 06 May 2011 18:06:47 -0700, Jameson Graef Rollins > wrote: > > On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > > > Perhaps text summary output should *always* do this. The text summary > > > format is meant half for

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Florian Friesdorf
On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > Perhaps text summary output should *always* do this. The text summary > format is meant half for user consumption and half for emacs > consumption and allowing newlines that don't indicate the end of a > summary line seems bad for *both*

Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Pieter Praet
On Fri, 06 May 2011 18:06:47 -0700, Jameson Graef Rollins wrote: > On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > > Perhaps text summary output should *always* do this. The text summary > > format is meant half for user consumption and half for emacs > > consumption and allowing ne

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-07 Thread Florian Friesdorf
Sanitize "Subject:" and "Author:" fields to not contain control characters for sanitized_text format. When a Subject field contains encoded CRLF sequences, these sequences would appear unfiltered in the output of notmuch search. This confused the notmuch emacs interface leading to "Unexpected Outp

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Austin Clements
Perhaps text summary output should *always* do this. The text summary format is meant half for user consumption and half for emacs consumption and allowing newlines that don't indicate the end of a summary line seems bad for *both* use cases. On Fri, May 6, 2011 at 7:17 PM, Florian Friesdorf wro

Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Jameson Graef Rollins
On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > Perhaps text summary output should *always* do this. The text summary > format is meant half for user consumption and half for emacs > consumption and allowing newlines that don't indicate the end of a > summary line seems bad for *both*

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Jameson Graef Rollins
On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > Perhaps text summary output should *always* do this. The text summary > format is meant half for user consumption and half for emacs > consumption and allowing newlines that don't indicate the end of a > summary line seems bad for *both*

Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Florian Friesdorf
On Fri, 6 May 2011 19:55:26 -0400, Austin Clements wrote: > Perhaps text summary output should *always* do this. The text summary > format is meant half for user consumption and half for emacs > consumption and allowing newlines that don't indicate the end of a > summary line seems bad for *both*

Re: [PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Austin Clements
Perhaps text summary output should *always* do this. The text summary format is meant half for user consumption and half for emacs consumption and allowing newlines that don't indicate the end of a summary line seems bad for *both* use cases. On Fri, May 6, 2011 at 7:17 PM, Florian Friesdorf wro

[PATCH] implement search --format=sanitized_text + emacs UI to use it

2011-05-06 Thread Florian Friesdorf
Sanitize "Subject:" and "Author:" fields to not contain control characters for sanitized_text format. When a Subject field contains encoded CRLF sequences, these sequences would appear unfiltered in the output of notmuch search. This confused the notmuch emacs interface leading to "Unexpected Outp