From d217c9bb59af8ed480beedaca34e32d259a28a01 Mon Sep 17 00:00:00 2001 From: Adam Wolfe Gordon Date: Sun, 11 Mar 2012 11:27:58 +1700 Subject: [PATCH] Re: [PATCH v6 05/10] reply: Add a JSON reply format. --- 13/73030c732cd71f321ab5d1672a93c32a881ede | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 13/73030c732cd71f321ab5d1672a93c32a881ede diff --git a/13/73030c732cd71f321ab5d1672a93c32a881ede b/13/73030c732cd71f321ab5d1672a93c32a881ede new file mode 100644 index 000000000..e372fcf58 --- /dev/null +++ b/13/73030c732cd71f321ab5d1672a93c32a881ede @@ -0,0 +1,83 @@ +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 44C54431FC4 + for ; Sat, 10 Mar 2012 10:28:01 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 GD3IDDfb0ILG for ; + Sat, 10 Mar 2012 10:28:00 -0800 (PST) +Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 8514D431FAE + for ; Sat, 10 Mar 2012 10:28:00 -0800 (PST) +Received: by lahc1 with SMTP id c1so2771971lah.26 + for ; Sat, 10 Mar 2012 10:27:58 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=mime-version:sender:x-originating-ip:in-reply-to:references:date + :x-google-sender-auth:message-id:subject:from:to:cc:content-type + :content-transfer-encoding:x-gm-message-state; + bh=qnRi0g+fEcxz6n6KjfP5PEgVJLJHvGFgoBeTsRsRjJ4=; + b=G9KdMovf0EqWkl9aCWXLoVOI30je6PO7kJi3GPbnz8yXi0JTxGqCnPcsajxW80GaJh + oy7LlCGxLMo0xF5rRol5MzHQQUWeKSlUdXSrXnViCS0EjXN4WdF9UqwbqggSyq1PyW25 + SPPTLHygRdwYOkH0ZTp8A6L7mCsuxgdzE/F4vks0TeJ2Ga/3vmVXfyC3asAeVsB8xMiP + C7xxejOUC61zwcFoYEDGtjIaGCLohF9VDXPMN0QOshB1A2DMxpe9+bX/1J19Dlam3M73 + VGbxcbnGr5a4n/Zwg2UDXugozJgvxUaEs0Fwo9zBhaSjivNp58ebsQV7e9Qpa/n+RwWJ + 7rhA== +MIME-Version: 1.0 +Received: by 10.112.85.33 with SMTP id e1mr2530926lbz.45.1331404078778; Sat, + 10 Mar 2012 10:27:58 -0800 (PST) +Sender: awg@xvx.ca +Received: by 10.112.109.234 with HTTP; Sat, 10 Mar 2012 10:27:58 -0800 (PST) +X-Originating-IP: [96.52.216.56] +In-Reply-To: <87d38l8j91.fsf@nikula.org> +References: <1329893199-21630-1-git-send-email-awg+notmuch@xvx.ca> + <1329893199-21630-6-git-send-email-awg+notmuch@xvx.ca> + <87d38l8j91.fsf@nikula.org> +Date: Sat, 10 Mar 2012 11:27:58 -0700 +X-Google-Sender-Auth: vAoE4O7HZOFLq5jErA5XxJ5UQPg +Message-ID: + +Subject: Re: [PATCH v6 05/10] reply: Add a JSON reply format. +From: Adam Wolfe Gordon +To: Jani Nikula +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: quoted-printable +X-Gm-Message-State: + ALoCoQlsXu/SFVSlyLJC/CuRFibQ089dXqgnjQFguEYuQfGD+hqWDxswhWY5/cjupGCUbjUjATXC +Cc: notmuch@notmuchmail.org +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: Sat, 10 Mar 2012 18:28:01 -0000 + +On Fri, Mar 9, 2012 at 16:08, Jani Nikula wrote: +>> + =A0 =A0if (!reply) +>> + =A0 =A0 printf (", %s: %s", +>> + =A0 =A0 =A0 =A0 =A0 =A0 json_quote_str (local, "Date"), +>> + =A0 =A0 =A0 =A0 =A0 =A0 json_quote_str (local, g_mime_message_get_date= +_as_string (message))); +>> + +>> + =A0 =A0if (reply) { +> +> Isn't that an "else"? + +Indeed. Fixed. -- 2.26.2