RE: notmuch-vim doesn't respect notmuch config defaults
authorIan Main <imain@redhat.com>
Thu, 2 Oct 2014 19:22:10 +0000 (12:22 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:51 +0000 (10:04 -0800)
3a/27347935d728002abd546835528620276e8bb2 [new file with mode: 0644]

diff --git a/3a/27347935d728002abd546835528620276e8bb2 b/3a/27347935d728002abd546835528620276e8bb2
new file mode 100644 (file)
index 0000000..6d4b3da
--- /dev/null
@@ -0,0 +1,113 @@
+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 2123F431FBC\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:22:25 -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 Ajgk-O0SmtO2 for <notmuch@notmuchmail.org>;\r
+       Thu,  2 Oct 2014 12:22:21 -0700 (PDT)\r
+Received: from cmta5.telus.net (cmta5.telus.net [209.171.16.78])\r
+       by olra.theworths.org (Postfix) with ESMTP id 19F95431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:22:21 -0700 (PDT)\r
+Received: from ovo.mains.priv ([207.102.88.62]) by cmta5.telus.net with TELUS\r
+       id yKNJ1o00p1LiWEf01KNKRY; Thu, 02 Oct 2014 13:22:19 -0600\r
+X-Authority-Analysis: v=2.0 cv=JvIvWrEC c=1 sm=2\r
+       a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10\r
+       a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=H0wNZic-ieGwve4HzE8A:9\r
+       a=QEXdDO2ut3YA:10\r
+       a=MSl-tDqOz04A:10 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 s92JMBKR020539;\r
+       Thu, 2 Oct 2014 12:22:12 -0700\r
+Received: (from imain@localhost)\r
+       by ovo.mains.priv (8.14.8/8.14.8/Submit) id s92JMAB7020538;\r
+       Thu, 2 Oct 2014 12:22:10 -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:22:10 -0700\r
+From: Ian Main <imain@redhat.com>\r
+To: Sergei Shilovsky <sshilovsky@gmail.com>, notmuch@notmuchmail.org\r
+Message-ID: <542da5e2565b9_4f181359e94d@ovo.mains.priv.notmuch>\r
+In-Reply-To:\r
+ <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\r
+References:\r
+ <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\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-Mailman-Approved-At: Fri, 03 Oct 2014 14:04:56 -0700\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:22:25 -0000\r
+\r
+Sergei Shilovsky wrote:\r
+> I would suggest to use `notmuch config list` to get configuration\r
+> values in vim if possible\r
+> \r
+> Reproduction example follows:\r
+> \r
+>  /home/sh> cat .notmuch-config\r
+>  [new]\r
+>  tags=new;inbox;unread\r
+>  ignore=\r
+> \r
+>  [search]\r
+>  exclude_tags=deleted;spam\r
+> \r
+>  [maildir]\r
+>  synchronize_flags=false\r
+> \r
+>  /home/sh> notmuch config list\r
+>  new.tags=new;inbox;unread\r
+>  new.ignore=\r
+>  search.exclude_tags=deleted;spam\r
+>  maildir.synchronize_flags=false\r
+>  database.path=/home/sh/mail\r
+>  user.name=Sergei Shilovsky\r
+>  user.primary_email=sshilovsky@gmail.com\r
+> \r
+>  /home/sh> vim -c :NotMuch\r
+>  Error detected while processing function\r
+> <SNR>13_NotMuch..<SNR>13_folders..<SNR>\r
+>  13_new_buffer:\r
+>  line    6:\r
+>  TypeError: no implicit conversion of nil into String\r
+>  Error detected while processing function <SNR>13_NotMuch..<SNR>13_folders:\r
+>  line    2:\r
+>  NoMethodError: undefined method `query' for nil:NilClass\r
+> \r
+> Having explicit database.path=/home/sh/mail in the configuration file\r
+> makes it work\r
+\r
+Right, so you didn't have database.path in your config file before right?\r
+Doesn't the default notmuch setup set that for you?\r
+\r
+It wouldn't be too hard to change vim to use 'notmuch config list' to get\r
+its configuration information, but as mentioned a library would be much\r
+nicer.\r
+\r
+Anyone have any thoughts on this?  How does the emacs client do it?  If\r
+the config list method is superior I'll write up a patch for it.\r
+\r
+   Ian\r