On Mon, 18 Apr 2011 09:10:45 +0100, Andreas Amann <a.amann@ucc.ie> wrote:
> On Sun, 17 Apr 2011 19:24:16 +0200, Pieter Praet <pieter@praet.org> wrote:
> > On Fri, 15 Apr 2011 12:28:00 +0100, Andreas Amann <a.amann@ucc.ie> wrote:
> > > On Wed, 06 Apr 2011 20:23:17 +0100, Andreas Amann <a.amann@ucc.ie> wrote:
> > > >
> > > > since commit 44d3c57e (emacs: Display any unexpected output from notmuch
> > > > search) I see a number of messages of the form
> > > >
> > > > Error: Unexpected output from notmuch search:
> > > > thread:000000000000XXXX
> > > >
> > > > after notmuch-search in emacs.
> > >
> > >
> > > FWIW, the patch below solves the problem for me.
> > >
> >
> >
> > Works as advertised, but IMHO (since notmuch solely does indexing,
> > search and tagging) notmuch should return messages as truthful
> > (i.e. unaltered) as possible.
> >
> > Any postprocessing should be the responsability of the MUA.
> >
> > However, since notmuch already provides output formats, this could be
> > made part of those, eg. "--format=sanitized_text".
>
> In my opinion, "notmuch search" should output precisely one line per
> message per default, and if it outputs two or more lines for one message
> it should be considered a bug.
Agreed. I got carried away after reading Florian's reply [1].
>
> That's a different story for "notmuch show" where I agree that
> "--format=..." could be useful to get sanitized versions.
>
> Andreas
>
Peace
-Pieter
[1] id:"87d3kkdg7u.fsf@eve.chaoflow.net"