From: Sergei Shilovsky Date: Thu, 2 Oct 2014 08:55:46 +0000 (+0400) Subject: notmuch-vim doesn't respect notmuch config defaults X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a7866622fbbb3f66de19032205ff493b0bc9212;p=notmuch-archives.git notmuch-vim doesn't respect notmuch config defaults --- diff --git a/bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b b/bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b new file mode 100644 index 000000000..528f72d7f --- /dev/null +++ b/bd/7fdfbaee1a034c54e15d35dabfe2f6fc54014b @@ -0,0 +1,105 @@ +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 C762F431FBF + for ; Thu, 2 Oct 2014 01:55:53 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.976 +X-Spam-Level: * +X-Spam-Status: No, score=1.976 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO=2.775, 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 5GsPLJyS2Cj0 for ; + Thu, 2 Oct 2014 01:55:49 -0700 (PDT) +Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com + [209.85.214.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 0F3EF431FB6 + for ; Thu, 2 Oct 2014 01:55:49 -0700 (PDT) +Received: by mail-ob0-f182.google.com with SMTP id uy5so1787766obc.13 + for ; Thu, 02 Oct 2014 01:55:47 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:reply-to:date:message-id:subject:from:to:content-type + :content-transfer-encoding; + bh=mawzdokHNyUU6mOFHUg5wvznrNWIHf8+hkc2ot5MmUI=; + b=rS6TG2Ef+IrZqUCznlx4d+8akyZACD93rdMXgH/qaZ5uToQa5/7UYB0ksa/dxrYt/+ + FUe74KgWtk8BPX5amev/8E64D0T+dE/PDvyygH/Fu9hitzbkcr9ms0SuJ9UH73HDNIAp + a7DioVH3NJqhIZxtVy51KYxd4e+OoFdCvSPVkLpBtBkdo3QDFlRtxR1ylEZUs9d6XAU8 + ePrN24OzGWLWOa2RHybKpSxL98cvcmkjfA/9sEq3KbVgcFCJ1kyt61fz2LJqMYgfV09f + ig6GVo9+hzg2pOoADPwHL1XSUeZ8JZdgxSqnVJQabRmX01m2UnnRyUj6yGFMNlVigOrz + 3qmQ== +MIME-Version: 1.0 +X-Received: by 10.182.153.68 with SMTP id ve4mr63796809obb.60.1412240146559; + Thu, 02 Oct 2014 01:55:46 -0700 (PDT) +Received: by 10.76.41.3 with HTTP; Thu, 2 Oct 2014 01:55:46 -0700 (PDT) +Date: Thu, 2 Oct 2014 12:55:46 +0400 +Message-ID: + +Subject: notmuch-vim doesn't respect notmuch config defaults +From: Sergei Shilovsky +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: sshilovsky@gmail.com +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 02 Oct 2014 08:55:53 -0000 + +I would suggest to use `notmuch config list` to get configuration +values in vim if possible + +Reproduction example follows: + + /home/sh> cat .notmuch-config + [new] + tags=3Dnew;inbox;unread + ignore=3D + + [search] + exclude_tags=3Ddeleted;spam + + [maildir] + synchronize_flags=3Dfalse + + /home/sh> notmuch config list + new.tags=3Dnew;inbox;unread + new.ignore=3D + search.exclude_tags=3Ddeleted;spam + maildir.synchronize_flags=3Dfalse + database.path=3D/home/sh/mail + user.name=3DSergei Shilovsky + user.primary_email=3Dsshilovsky@gmail.com + + /home/sh> vim -c :NotMuch + Error detected while processing function +13_NotMuch..13_folders.. + 13_new_buffer: + line 6: + TypeError: no implicit conversion of nil into String + Error detected while processing function 13_NotMuch..13_folders: + line 2: + NoMethodError: undefined method `query' for nil:NilClass + +Having explicit database.path=3D/home/sh/mail in the configuration file +makes it work + +--=20 +=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, +=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=A8=D0=B8=D0=BB=D0=BE=D0=B2=D1=81= +=D0=BA=D0=B8=D0=B9 +Sergei Shilovsky