From: David Edmondson Date: Fri, 24 Oct 2014 10:23:38 +0000 (+0100) Subject: Re: [PATCH v3 3/4] cli: Extend the search command for --output={sender, recipients} X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17e9580ce4f477c2f461d9aa1626b983af19b3ee;p=notmuch-archives.git Re: [PATCH v3 3/4] cli: Extend the search command for --output={sender, recipients} --- diff --git a/4f/89d4e7bbf39839c5908bf944f67c7893a1fcbc b/4f/89d4e7bbf39839c5908bf944f67c7893a1fcbc new file mode 100644 index 000000000..aceecc804 --- /dev/null +++ b/4f/89d4e7bbf39839c5908bf944f67c7893a1fcbc @@ -0,0 +1,88 @@ +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 E09B3431FC9 + for ; Fri, 24 Oct 2014 03:23:46 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001] + 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 7rkZB8idniY9 for ; + Fri, 24 Oct 2014 03:23:42 -0700 (PDT) +Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com + [209.85.212.177]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id F00AC431FBD + for ; Fri, 24 Oct 2014 03:23:41 -0700 (PDT) +Received: by mail-wi0-f177.google.com with SMTP id ex7so810911wid.16 + for ; Fri, 24 Oct 2014 03:23:40 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:in-reply-to:references:user-agent + :from:date:message-id:mime-version:content-type; + bh=2hE7SL01KRdDvffgDQ2LIAi0njqDQq3Kdnw2GmqjfA0=; + b=dzJqaeKo7V4o/ufBxGdVYmLGIttcFiLBkm8YI7kLWMw5rHcNUEjfxsMjLSLPAwPhHk + iIq+XB09UUXqxvq8eg88zjiO+sFNAgu18D1MpMbge/N1/qh+o8VvOqYwxw/4D8yb69Xd + OyBHM4q8TYWv0qjnkluIUUSvah/5FjMXb0wbZVN7RmJrI1SrSDG56MAXkXqS3E8A0eC7 + +dZQZTVXfSnzAaddlqm5L8NQaefmFUrFqlnBfeDkChJs6u/glqYH56f52Z4FsdXj+Bt6 + ivv3KD6Phu7xzwRBz3jnzOzFG6Wbm7z2Ov8jjZx9BNeV2+lJnV7qDf8G++Fapz+FmDcC + BPJA== +X-Gm-Message-State: + ALoCoQlS4Nf+cXVCY6mtwtMJie3FSKshx5lpAhaqeMqCnCWv6d69L9/NX19oUVArHegPznGBvVgn +X-Received: by 10.194.100.98 with SMTP id ex2mr3676297wjb.48.1414146220716; + Fri, 24 Oct 2014 03:23:40 -0700 (PDT) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by mx.google.com with ESMTPSA id wx3sm5134717wjc.19.2014.10.24.03.23.39 + for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Fri, 24 Oct 2014 03:23:40 -0700 (PDT) +Received: from localhost (30000@localhost [local]); + by localhost (OpenSMTPD) with ESMTPA id a4323c02; + Fri, 24 Oct 2014 10:23:38 +0000 (UTC) +To: Mark Walters , + Michal Sojka , notmuch@notmuchmail.org +Subject: Re: [PATCH v3 3/4] cli: Extend the search command + for --output={sender, recipients} +In-Reply-To: <87egtzazs8.fsf@qmul.ac.uk> +References: <87zjd51phx.fsf@steelpick.2x.cz> + <1413150093-8383-1-git-send-email-sojkam1@fel.cvut.cz> + <1413150093-8383-4-git-send-email-sojkam1@fel.cvut.cz> + <87egtzazs8.fsf@qmul.ac.uk> +User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-apple-darwin14.0.0) +From: David Edmondson +Date: Fri, 24 Oct 2014 11:23:38 +0100 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +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: Fri, 24 Oct 2014 10:23:47 -0000 + +On Thu, Oct 23 2014, Mark Walters wrote: +> Thinking about this some more how about printing the name and address as +> a structured pair/map (at least for all cases except text/text0 output): +> something like (in JSON) +> [name: "John Doe" address: "john.doe@example.com"] +> +> It seems wrong to me to go to the effort of separating them in the C and +> then combining them in the output. + +Agreed, this would be convenient.