sanitization of args notmuch-cli in notmuch-emacs
Tomi Ollila
tomi.ollila at iki.fi
Tue Feb 4 10:02:01 PST 2014
On Tue, Feb 04 2014, David Bremner <david at tethera.net> wrote:
> Tomi Ollila <tomi.ollila at 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
More information about the notmuch
mailing list