From 5d82a979929d888b6699b9193f6546b8f63e4870 Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Tue, 4 Feb 2014 17:30:11 +0000 Subject: [PATCH] Re: sanitization of args notmuch-cli in notmuch-emacs --- c6/dbc165640cf52182fa4e1c41593d229c984b7b | 95 +++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 c6/dbc165640cf52182fa4e1c41593d229c984b7b diff --git a/c6/dbc165640cf52182fa4e1c41593d229c984b7b b/c6/dbc165640cf52182fa4e1c41593d229c984b7b new file mode 100644 index 000000000..bcf161235 --- /dev/null +++ b/c6/dbc165640cf52182fa4e1c41593d229c984b7b @@ -0,0 +1,95 @@ +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 06DED431FBD + for ; Tue, 4 Feb 2014 11:24:12 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 1PQDW47fWIgA for ; + Tue, 4 Feb 2014 11:24:06 -0800 (PST) +X-Greylist: delayed 6821 seconds by postgrey-1.32 at olra; + Tue, 04 Feb 2014 11:24:06 PST +Received: from mail1.qmul.ac.uk (mail1.qmul.ac.uk [138.37.6.7]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id BD629431FBC + for ; Tue, 4 Feb 2014 11:24:06 -0800 (PST) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail1.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1WAjp6-0000xu-Mi; Tue, 04 Feb 2014 17:30:13 +0000 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1WAjp6-0002Rd-Hj; Tue, 04 Feb 2014 17:30:12 +0000 +From: Mark Walters +To: David Bremner , Tomi Ollila , + 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.15.2+484~gfb59956 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 04 Feb 2014 17:30:11 +0000 +Message-ID: <87ppn2pyzg.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-Geographic: According to ripencc, + this message was delivered by a machine in Britain (UK) (GB). +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: e4ef1115e1cf06d1a2b618d36055730c (of first 20000 bytes) +X-SpamAssassin-Score: 0.0 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored 0.0 points. Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * 0.0 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +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 19:24:12 -0000 + + + +On Tue, 04 Feb 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. + + +If we want to do something like this would something like +--structured-errors be possible? + +Best wishes + +Mark -- 2.26.2