unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Problem with "Unexpected output" messages
@ 2011-04-06 19:23 Andreas Amann
  2011-04-15 11:28 ` Andreas Amann
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Amann @ 2011-04-06 19:23 UTC (permalink / raw)
  To: Notmuch Mail


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. 

The problem seems to be that some messages contain a "CR LF" sequence in
the "Subject:" line which is either QP or base64 encoded. Apparently the
emacs part of notmuch does not expect such a newline in the subject and
cannot parse the output of "notmuch search". I am happy to forward one
of the offending messages at request. 

This problem occurs with the git master branch as well as with the
crypto branch. Is there any way around this?

Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Problem with "Unexpected output" messages
@ 2011-05-07  9:20 Pieter Praet
  0 siblings, 0 replies; 6+ messages in thread
From: Pieter Praet @ 2011-05-07  9:20 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: message/rfc822, Size: 2104 bytes --]

From: Pieter Praet <pieter@praet.org>
To: Andreas Amann <a.amann@ucc.ie>
Subject: Re: Problem with "Unexpected output" messages
Date: Mon, 18 Apr 2011 10:52:38 +0200
Message-ID: <87pqokx7op.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>

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"

[-- Attachment #2: Type: text/plain, Size: 13 bytes --]



-- 
Pieter

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-07  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 19:23 Problem with "Unexpected output" messages Andreas Amann
2011-04-15 11:28 ` Andreas Amann
2011-04-17 15:56   ` Florian Friesdorf
2011-04-18  8:04     ` Andreas Amann
2011-04-17 17:24   ` Pieter Praet
  -- strict thread matches above, loose matches on Subject: below --
2011-05-07  9:20 Pieter Praet

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).