Re: notmuch-vim doesn't respect notmuch config defaults
authorIan Main <imain@stemwinder.org>
Thu, 2 Oct 2014 19:32:11 +0000 (12:32 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:51 +0000 (10:04 -0800)
36/6bd6395f495d257b3873aeb79d7dd3cf6756f2 [new file with mode: 0644]

diff --git a/36/6bd6395f495d257b3873aeb79d7dd3cf6756f2 b/36/6bd6395f495d257b3873aeb79d7dd3cf6756f2
new file mode 100644 (file)
index 0000000..1069ff0
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <imain@redhat.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 20C71431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:32:20 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 ktTql86AvrNo for <notmuch@notmuchmail.org>;\r
+       Thu,  2 Oct 2014 12:32:16 -0700 (PDT)\r
+Received: from cmta11.telus.net (cmta11.telus.net [209.171.16.84])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0F49A431FBC\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:32:15 -0700 (PDT)\r
+Received: from ovo.mains.priv ([207.102.88.62]) by cmta11.telus.net with TELUS\r
+       id yKYE1o00d1LiWEf01KYF67; Thu, 02 Oct 2014 13:32:15 -0600\r
+X-Authority-Analysis: v=2.0 cv=daReKwre c=1 sm=2\r
+       a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=S-IsBHyFrF4A:10 a=IkcTkHD0fZMA:10\r
+       a=tsa3CZZnAAAA:8 a=pGLkceISAAAA:8 a=OQOlkEr0AAAA:8\r
+       a=gM4CmfTiCWTIJuLeQisA:9\r
+       a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=SO3WljcwdcsA:10\r
+       a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
+X-Telus-Outbound-IP: 207.102.88.62\r
+Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
+       by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s92JWCvC020909\r
+       for <notmuch@notmuchmail.org>; Thu, 2 Oct 2014 12:32:13 -0700\r
+Received: (from imain@localhost)\r
+       by ovo.mains.priv (8.14.8/8.14.8/Submit) id s92JWBl0020908;\r
+       Thu, 2 Oct 2014 12:32:11 -0700\r
+X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
+       using -f\r
+Date: Thu, 02 Oct 2014 12:32:11 -0700\r
+From: Ian Main <imain@stemwinder.org>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <542da83bb9cd9_50b1171de9034@ovo.mains.priv.notmuch>\r
+In-Reply-To: <87zjdeaf4t.fsf@maritornes.cs.unb.ca>\r
+References:\r
+ <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\r
+       <87zjdeaf4t.fsf@maritornes.cs.unb.ca>\r
+Subject: Re: notmuch-vim doesn't respect notmuch config defaults\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\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: Thu, 02 Oct 2014 19:32:20 -0000\r
+\r
+David Bremner wrote:\r
+> Sergei Shilovsky <sshilovsky@gmail.com> writes:\r
+> \r
+> > I would suggest to use `notmuch config list` to get configuration\r
+> > values in vim if possible\r
+> \r
+> I guess this is a general question we haven't really resolved, namely\r
+> sharing configuration information between various notmuch frontends.\r
+> .notmuch-config is really the configuration file for the notmuch CLI; it\r
+> isn't read by library, so clients using language bindings won't see it\r
+> at all by default.\r
+> \r
+> On a somewhat related note I've been thinking how to best associate\r
+> configuration information with a database (see e.g. the thread at\r
+> id:1411805835-3563-1-git-send-email-david@tethera.net ). Note that this\r
+> would not help this particular case.\r
+> \r
+> Offhand, I wouldn't be personally to some interface at the library level\r
+> wrapping the reading and writing of ~/.notmuch-config, although as I\r
+> mentioned before, the size and complexity of notmuch-config.c perturb me\r
+> a little as far as being suitable for library code.\r
+\r
+I could change the vim client to use notmuch config list easily enough.\r
+\r
+Any consensus here?  How does the emacs client do it?  I can make up a patch if\r
+this seems like the right way to go.\r
+\r
+Also, someone on IRC mentioned making it so config list could dump JSON\r
+which would make that more reasonable.\r
+\r
+    Ian\r