On Tue, Feb 04 2014, David Bremner <david@tethera.net> wrote: > Tomi Ollila <tomi.ollila@iki.fi> writes: > >> >> Maybe the cli should be fixed ? (and/or make emacs MUA resilient to >> this kind of result) >> > > Would it make any sense to output errors in structured format? I guess > the downside is it would be harder for a human user to read. notmuch count --batch outputs just numbers separated by newline -- and with emacs stdout & stderr are in the same stream (in this case too) For that we'd need structured like notmuch count --batch --format=sexp and then write errors there... I don't think we can find SomeOne(tm) to do this -- or the überversion like 'notmuch execute' which takes sexp/json document in stdin and spits out sexp/json document for programs to parse ;D > d Romi