Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 20558431FBC for ; Tue, 4 Feb 2014 10:02:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YFVj-3T+yTZA for ; Tue, 4 Feb 2014 10:02:11 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id 9A727431FBD for ; Tue, 4 Feb 2014 10:02:11 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 122C9100033; Tue, 4 Feb 2014 20:02:02 +0200 (EET) From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: sanitization of args notmuch-cli in notmuch-emacs In-Reply-To: <87mwi7uip0.fsf@maritornes.cs.unb.ca> References: <87wqhcxb5j.fsf@maritornes.cs.unb.ca> <87mwi7uip0.fsf@maritornes.cs.unb.ca> User-Agent: Notmuch/0.17+55~g4397960 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 18:02:19 -0000 On Tue, Feb 04 2014, David Bremner wrote: > Tomi Ollila 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=3Dsexp and then write errors there... I don't think we can find SomeOne(tm) to do this -- or the =C3=BCberversion like 'notmuch execute' which takes sexp/json document in stdin and spits out sexp/json document for programs to parse ;D > d Romi