unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Boruch Baum <boruch_baum@gmx.com>
To: notmuch@notmuchmail.org
Subject: bugreport: notmuch-hello (debian package elpa-notmuch 0.37-1)
Date: Thu, 29 Dec 2022 07:23:08 -0500	[thread overview]
Message-ID: <20221229122308.awg67xcxbokbv7lv@debian-BULLSEYE-live-builder-AMD64> (raw)

I wasn't sure the best way to report a bug against it, so I hope by
sending it to thislist it will find its proper home.


Summary: notmuch-hello not respecting notmuch file search order

In debian, I installed debian packages notmuch and elpa-notmuch,
versions 0.3701, and proceeded with the command-line setup process. Per
the FILES section of man(1) notmuch-config, I first performed:

   export NOTMUCH_CONFIG=$HOME/.config/notmuch/notmuch.conf

With this setting, I successfully set-up notmuch, created a database,
and searched it from the command-line. However, from within emacs, M-x
notmuch-hello failed when it would internally send shell command:

   notmuch count --exclude=false

The emacs shell-command error buffer would report "Error: cannot load
config file". From outside emacs, that shell command *would* succeed.

Repeating the notmuch setup process with the environment variable unset
did not help for me.

What did work for me was to create a default profile folder and move
the config file there.

   export NOTMUCH_CONFIG=""
   mkdir ~/.config/notmuch/default
   mv ~/.config/notmuch/{notmuch.conf,default/config}

But then, in order to be able to continue to use notmuch from the
command-line I needed to perform

   export NOTMUCH_CONFIG=$HOME/.config/notmuch/default/config

So it looks like the elisp package isn't checking the file location
precedence mentioned in the man pages.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0

             reply	other threads:[~2022-12-29 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-29 12:23 Boruch Baum [this message]
2022-12-29 13:20 ` bugreport: notmuch-hello (debian package elpa-notmuch 0.37-1) David Bremner
2022-12-29 13:38   ` Alexander Adolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221229122308.awg67xcxbokbv7lv@debian-BULLSEYE-live-builder-AMD64 \
    --to=boruch_baum@gmx.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).