Re: [PATCH v2] VIM: Use notmuch CLI for config
authorSergei Shilovsky <sshilovsky@gmail.com>
Fri, 3 Oct 2014 10:50:12 +0000 (14:50 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:53 +0000 (10:04 -0800)
8e/75a7dd5266ba1de9f26cd33abffab63b403d95 [new file with mode: 0644]

diff --git a/8e/75a7dd5266ba1de9f26cd33abffab63b403d95 b/8e/75a7dd5266ba1de9f26cd33abffab63b403d95
new file mode 100644 (file)
index 0000000..ce4d369
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <sshilovsky@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 17967431FBF\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Oct 2014 03:50:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id LUNY5z2Ahrag for <notmuch@notmuchmail.org>;\r
+       Fri,  3 Oct 2014 03:50:16 -0700 (PDT)\r
+Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com\r
+       [209.85.214.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B9B93431FB6\r
+       for <notmuch@notmuchmail.org>; Fri,  3 Oct 2014 03:50:16 -0700 (PDT)\r
+Received: by mail-ob0-f178.google.com with SMTP id wn1so626389obc.23\r
+       for <notmuch@notmuchmail.org>; Fri, 03 Oct 2014 03:50:14 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:reply-to:in-reply-to:references:date:message-id\r
+       :subject:from:to:cc:content-type:content-transfer-encoding;\r
+       bh=bauFOvhREnuKCWl3CKVg7PQCoWQzqOZYAp0+vCK+nyM=;\r
+       b=wdOju2nQWjhaakRHIGoF9YXwYICFrodH7dihIVQkaWTgo/BC8yAjzCbqrDd4XIbc+4\r
+       dQgXzSjmi3Z8O/5k1AYeC0QtH2Pl5LSuuhWeZ4SmxuINdIc2ntSB79q5h95SqxSW5P5r\r
+       YpnmCuuAY1duBJ2rI2rb17d3qEkZ6Xt+s3fMeaKuOxpeutgFsmO36RbxLvLnW2n7vL7b\r
+       VZ4irl5IZ5lui9hJyvs1vxhHkdP58BBb0RbNULZEdsn+MZRxL+f77SsrPXJXYDM72Wsi\r
+       E0NMUO5RRgaVQQ5YI/BUyIa24gVDaUcuWflD7mymZ7LaO1aiUDBELE8fpcZFyLHlAlo/\r
+       +pIg==\r
+MIME-Version: 1.0\r
+X-Received: by 10.60.144.41 with SMTP id sj9mr5841004oeb.20.1412333412991;\r
+       Fri, 03 Oct 2014 03:50:12 -0700 (PDT)\r
+Received: by 10.76.41.3 with HTTP; Fri, 3 Oct 2014 03:50:12 -0700 (PDT)\r
+In-Reply-To: <87r3ypr6cm.fsf@maritornes.cs.unb.ca>\r
+References: <1412286796-27479-1-git-send-email-imain@stemwinder.org>\r
+       <1412293635-31273-1-git-send-email-imain@stemwinder.org>\r
+       <87r3ypr6cm.fsf@maritornes.cs.unb.ca>\r
+Date: Fri, 3 Oct 2014 14:50:12 +0400\r
+Message-ID:\r
+ <CAHc2pO2FRGB4rCArfmw4ZH=3S5uSeUbBM=eMdL5pvm2MFyuo0Q@mail.gmail.com>\r
+Subject: Re: [PATCH v2] VIM: Use notmuch CLI for config\r
+From: Sergei Shilovsky <sshilovsky@gmail.com>\r
+To: David Bremner <david@tethera.net>\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+Reply-To: sshilovsky@gmail.com\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 03 Oct 2014 10:50:20 -0000\r
+\r
+The patch works fine for me.\r
+\r
+Ian, though I could not test whether result=3D'' matters or not, cause\r
+'notmuch get' looks to always return a string.\r
+\r
+It also fixes id:CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.g=\r
+mail.com\r
+\r
+On Fri, Oct 3, 2014 at 10:54 AM, David Bremner <david@tethera.net> wrote:\r
+> Ian Main <imain@stemwinder.org> writes:\r
+>\r
+>> This patch switches from reading .notmuch-config directly to using\r
+>> the CLI the same way that emacs does it.  It actually uses less code\r
+>> and is probably less error prone.\r
+>>\r
+>>     Ian\r
+>\r
+> The general approach seems sane; it seems quite brittle to read the\r
+> config file directly. I notice there is not really any error handling;\r
+> OTOH, as far as I can read Ruby, there is not any in the previous\r
+> version either.  Technically, this does add a dependency of the vim\r
+> client on the CLI that did not exist before. Personally I don't find\r
+> this onerous (even notmuch-vim users need "notmuch new", except in\r
+> rather unusual circumstances.).\r
+>\r
+> I'd like feedback/testing from actual vim interface users before\r
+> merging.\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r
+\r
+--=20\r
+=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,\r
+=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A8=D0=B8=D0=BB=D0=BE=D0=B2=D1=81=\r
+=D0=BA=D0=B8=D0=B9\r
+Sergei Shilovsky\r