notmuch-vim doesn't respect notmuch config defaults
authorSergei Shilovsky <sshilovsky@gmail.com>
Thu, 2 Oct 2014 08:55:46 +0000 (12:55 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:50 +0000 (10:04 -0800)
bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b [new file with mode: 0644]

diff --git a/bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b b/bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b
new file mode 100644 (file)
index 0000000..528f72d
--- /dev/null
@@ -0,0 +1,105 @@
+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 C762F431FBF\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 01:55:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.976\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.976 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, FREEMAIL_REPLYTO=2.775, RCVD_IN_DNSWL_LOW=-0.7]\r
+       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 5GsPLJyS2Cj0 for <notmuch@notmuchmail.org>;\r
+       Thu,  2 Oct 2014 01:55:49 -0700 (PDT)\r
+Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com\r
+       [209.85.214.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0F3EF431FB6\r
+       for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 01:55:49 -0700 (PDT)\r
+Received: by mail-ob0-f182.google.com with SMTP id uy5so1787766obc.13\r
+       for <notmuch@notmuchmail.org>; Thu, 02 Oct 2014 01:55:47 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:reply-to:date:message-id:subject:from:to:content-type\r
+       :content-transfer-encoding;\r
+       bh=mawzdokHNyUU6mOFHUg5wvznrNWIHf8+hkc2ot5MmUI=;\r
+       b=rS6TG2Ef+IrZqUCznlx4d+8akyZACD93rdMXgH/qaZ5uToQa5/7UYB0ksa/dxrYt/+\r
+       FUe74KgWtk8BPX5amev/8E64D0T+dE/PDvyygH/Fu9hitzbkcr9ms0SuJ9UH73HDNIAp\r
+       a7DioVH3NJqhIZxtVy51KYxd4e+OoFdCvSPVkLpBtBkdo3QDFlRtxR1ylEZUs9d6XAU8\r
+       ePrN24OzGWLWOa2RHybKpSxL98cvcmkjfA/9sEq3KbVgcFCJ1kyt61fz2LJqMYgfV09f\r
+       ig6GVo9+hzg2pOoADPwHL1XSUeZ8JZdgxSqnVJQabRmX01m2UnnRyUj6yGFMNlVigOrz\r
+       3qmQ==\r
+MIME-Version: 1.0\r
+X-Received: by 10.182.153.68 with SMTP id ve4mr63796809obb.60.1412240146559;\r
+       Thu, 02 Oct 2014 01:55:46 -0700 (PDT)\r
+Received: by 10.76.41.3 with HTTP; Thu, 2 Oct 2014 01:55:46 -0700 (PDT)\r
+Date: Thu, 2 Oct 2014 12:55:46 +0400\r
+Message-ID:\r
+ <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\r
+Subject: notmuch-vim doesn't respect notmuch config defaults\r
+From: Sergei Shilovsky <sshilovsky@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\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: Thu, 02 Oct 2014 08:55:53 -0000\r
+\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=3Dnew;inbox;unread\r
+ ignore=3D\r
+\r
+ [search]\r
+ exclude_tags=3Ddeleted;spam\r
+\r
+ [maildir]\r
+ synchronize_flags=3Dfalse\r
+\r
+ /home/sh> notmuch config list\r
+ new.tags=3Dnew;inbox;unread\r
+ new.ignore=3D\r
+ search.exclude_tags=3Ddeleted;spam\r
+ maildir.synchronize_flags=3Dfalse\r
+ database.path=3D/home/sh/mail\r
+ user.name=3DSergei Shilovsky\r
+ user.primary_email=3Dsshilovsky@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=3D/home/sh/mail in the configuration file\r
+makes it work\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