From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YAIeORaarWNKZQAAbAwnHQ (envelope-from ) for ; Thu, 29 Dec 2022 14:45:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mGDxOBaarWPwsAAAauVa8A (envelope-from ) for ; Thu, 29 Dec 2022 14:45:58 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 75DDE31EA2 for ; Thu, 29 Dec 2022 14:45:58 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3F1A6604DF; Thu, 29 Dec 2022 13:45:56 +0000 (UTC) X-Greylist: delayed 427 seconds by postgrey-1.36 at yantan; Thu, 29 Dec 2022 13:45:53 UTC Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mail.notmuchmail.org (Postfix) with ESMTPS id 132E6604DD for ; Thu, 29 Dec 2022 13:45:53 +0000 (UTC) Received: from [80.187.105.123] (helo=smtpclient.apple) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pAt8F-0000NV-53; Thu, 29 Dec 2022 14:39:39 +0100 From: Alexander Adolf Mime-Version: 1.0 (1.0) Subject: Re: bugreport: notmuch-hello (debian package elpa-notmuch 0.37-1) Date: Thu, 29 Dec 2022 14:38:43 +0100 Message-Id: References: <87o7rm73e8.fsf@tethera.net> In-Reply-To: <87o7rm73e8.fsf@tethera.net> To: David Bremner X-Mailer: iPhone Mail (19H117) X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Message-ID-Hash: 3VLOBVAA3NDOHHCXPLXVJKCLFTIIZBEW X-Message-ID-Hash: 3VLOBVAA3NDOHHCXPLXVJKCLFTIIZBEW X-MailFrom: alexander.adolf@condition-alpha.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Boruch Baum , notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4192812627330517683==" X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672321558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=FC/Mpy1VRF5DuYgnuUoqbBuPDFBYAH2hTSTBeoT030c=; b=pHYQMZ+IoT/usHNqHYZIkxr0QBuD0yKBTDrBalQFi2QSWJYMfx4dCEHYOMnr8T4AXaDXhl 1HwBNmwXK3CEXr7HLtfUtMc+rGY91XsDjRAhfunxy2Z9BaLa8Dz+jrKl6LbTO2UwOAHQwU oFQYkdZh7Y/WkymJ8ht3sRRhcSqBy/kduZQRU17hZ7DiePRIwVB8RG7al+8LHI2z3m4qsu GL320vcU9id3LVWWgCRt2nTAL1JW0l3v3illApfJky8gXpKFO18Uor88b2RZ0j1ZgnP0W9 woFmYOPwrwN84pyzaPIEhF3Lx4nBewfdJ15HRd+hA3KTI3rBz89IXLPA/NcVnQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672321558; a=rsa-sha256; cv=none; b=UNH+CZuHz/bldTn6GMivRbKlQVNmQ7FedyRCrdDBvpLCLVjN/9wQhtARMd8JI9Tik5C984 1dPTOdT2ZcsboNbd3Z7V7MSEEq2Fg6a8olqG2LLqAy7aX2M3DhRtbvvDtvcdyOs4FFo23R EClzG2xBkMiju1qGGVbp9iuZ6TaJYBWPgluNZMPTpHPBFAgdEqldJYFJ8c19Djs31ud2DP 0ob/D8ylcGiRQlD/3W9Xbp1XEVu/gxjP9vjzALkUH8UmFUsjOn/BxsN5YbXBdyd6CQGtJd Oj/YIkYpUPa8gKPQjUjAE63cef3sjBJSiUb/Fez31JeFVtnvuQ9oNRk8F2jYwQ== X-Spam-Score: -2.79 X-Migadu-Queue-Id: 75DDE31EA2 Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.79 X-TUID: 9vzyXJrkAQUo --===============4192812627330517683== Content-Type: multipart/signed; boundary=Apple-Mail-CA59992E-81CB-4DA7-A275-FBC6A2B30F33; protocol="application/pkcs7-signature"; micalg=sha-256 Content-Transfer-Encoding: 7bit --Apple-Mail-CA59992E-81CB-4DA7-A275-FBC6A2B30F33 Content-Type: multipart/alternative; boundary=Apple-Mail-03F10DBE-E48D-4E6F-98AD-EFD552C905A9 Content-Transfer-Encoding: 7bit --Apple-Mail-03F10DBE-E48D-4E6F-98AD-EFD552C905A9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Perhaps a case for exec-path-from-shell [1]? [1] https://github.com/purcell/exec-path-from-shell --alex --=20 www.condition-alpha.com / @c_alpha Sent from my iPhone; apologies for brevity and autocorrect weirdness.=20 > On 29. Dec 2022, at 14:20, David Bremner wrote: >=20 > =EF=BB=BFBoruch Baum writes: >=20 >> 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. >=20 > Sure that's fine. Or report a debian bug using reportbug, which saves > you copying down the relevant versions. In particular it's possibly > relevant what version of emacs you are using. >>=20 >> export NOTMUCH_CONFIG=3D$HOME/.config/notmuch/notmuch.conf >>=20 >> 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: >>=20 >> notmuch count --exclude=3Dfalse >>=20 >> The emacs shell-command error buffer would report "Error: cannot load >> config file". =46rom outside emacs, that shell command *would* succeed. >=20 > I wasn't able to duplicate this (I'm running the debian packages and > emacs 28). >=20 > 1) As a first step, try M-x getenv NOTMUCH_CONFIG > 2) Just to confirm, you're not doing anything fancy with shell wrappers fo= r > either emacs or notmuch, are you? >>=20 >> What did work for me was to create a default profile folder and move >> the config file there. >>=20 >> export NOTMUCH_CONFIG=3D"" >=20 > Being set to the empty string is not the same as being unset from > notmuch's point of view. So maybe try unset instead. Empty string means > no config file is searched for or loaded. >=20 >> mkdir ~/.config/notmuch/default >> mv ~/.config/notmuch/{notmuch.conf,default/config} >>=20 >> But then, in order to be able to continue to use notmuch from the >> command-line I needed to perform >>=20 >> export NOTMUCH_CONFIG=3D$HOME/.config/notmuch/default/config >>=20 >> So it looks like the elisp package isn't checking the file location >> precedence mentioned in the man pages. >=20 > That definitely should not be the case, but may be potentially related > to having NOTMUCH_CONFIG=3D"". >=20 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org --Apple-Mail-03F10DBE-E48D-4E6F-98AD-EFD552C905A9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Perhaps a case for exec-path-from-shell [1]= ?

[1] https://github.com/purcell/exec-path-from-shell

  --alex

-- 
www.c= ondition-alpha.com / @c_alpha
Sen= t from my iPhone; apologies for brevity and autocorrect weirdness. =

On 29. Dec= 2022, at 14:20, David Bremner <david@tethera.net> wrote:

=EF=BB=BFBoru= ch Baum <boruch_baum@gmx.com> writes:

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

Sure that's fine. Or report a debian bug using reportbu= g, which saves
you copying down the relevant versions. In pa= rticular it's possibly
relevant what version of emacs you ar= e using.

<= blockquote type=3D"cite">   export NOTMUCH_CONFIG=3D$HOME/.c= onfig/notmuch/notmuch.conf
=
With this sett= ing, I successfully set-up notmuch, created a database,
and searched it from the command-line. Ho= wever, from within emacs, M-x
notmuch-hello failed when it would internally send shell command:

  notmuch count --exclude=3Dfal= se

The emacs shell-command error buffer w= ould report "Error: cannot load
config file". =46rom outside emacs, that shell command *would* su= cceed.

I wasn't able to duplic= ate this (I'm running the debian packages and
emacs 28).

1) As a first step, try M-x getenv NOTMUCH_CON= FIG
2) Just to confirm, you're not doing anything fancy with= shell wrappers for
  either emacs or notmuch, ar= e you?

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

  expo= rt NOTMUCH_CONFIG=3D""

Being s= et to the empty string is not the same as being unset from
n= otmuch's point of view. So maybe try unset instead. Empty string means
no config file is searched for or loaded.
=
  mkdir ~/.config/notmuch/def= ault
  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 p= erform

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

S= o it looks like the elisp package isn't checking the file location
precedence mentioned in the ma= n pages.

That definitely shoul= d not be the case, but may be potentially related
to having N= OTMUCH_CONFIG=3D"".

_______________________= ________________________
notmuch mailing list -- notmuch@not= muchmail.org
To unsubscribe send an email to notmuch-leave@n= otmuchmail.org
= --Apple-Mail-03F10DBE-E48D-4E6F-98AD-EFD552C905A9-- --Apple-Mail-CA59992E-81CB-4DA7-A275-FBC6A2B30F33 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCA0cw ggNDMIICpKADAgECAgQhmzKBMAoGCCqGSM49BAMCMIG7MSAwHgYDVQQDDBdDb25kaXRpb24tQUxQ SEEgQ0EgMjAxODFQME4GA1UECgxHQ29uZGl0aW9uLUFMUEhBIERpZ2l0YWwgQnJvYWRjYXN0IFRl Y2hub2xvZ3kgQ29uc3VsdGluZyBBbGV4YW5kZXIgQWRvbGYxCzAJBgNVBAYTAkRFMQ8wDQYDVQQH DAZNdW5pY2gxJzAlBgkqhkiG9w0BCQEWGGluZm9AY29uZGl0aW9uLWFscGhhLmNvbTAeFw0xOTEx MDYxNzU0NDRaFw0yMDExMDUxNzU0NDRaMFsxGDAWBgNVBAMMD0FsZXhhbmRlciBBZG9sZjELMAkG A1UEBhMCREUxMjAwBgkqhkiG9w0BCQEWI2FsZXhhbmRlci5hZG9sZkBjb25kaXRpb24tYWxwaGEu Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9IELQpXk+ymqHnYKq+Ts50ixgBIj KdrO2AsAN1ft4/3OUwkkP0Myvx40aR0PlXaKYWTnGaXEUH13cKTtfFxW44VTqwyKv40r6UaRrhkq 8IGjFBpjVLmBL5j28VePsamP3XjjFYaIyqzrsfWBa10QRBK/U+fMg9MbiZ/4td8RRSIta40ic787 x4edPCX2GkVXZecz52d7nOWkeaUWUPMxvKDZJBIVZQUBHinGuF33rAtdLoBciXP0SBSZ1xGGq6Hq K/4rr3VecSceeEalbrKg6Jd+23LCBUm8ympgQ3ZQXYH9QAsFkdoEUQvJ9MKfdfgR3iF1etuzl4xl p5blP5qq7wIDAQAB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25kaXRpb24tQUxQSEEgQ0EgMjAxODFQME4GA1UECgxHQ29uZGl0aW9uLUFMUEhBIERpZ2l0YWwg QnJvYWRjYXN0IFRlY2hub2xvZ3kgQ29uc3VsdGluZyBBbGV4YW5kZXIgQWRvbGYxCzAJBgNVBAYT AkRFMQ8wDQYDVQQHDAZNdW5pY2gxJzAlBgkqhkiG9w0BCQEWGGluZm9AY29uZGl0aW9uLWFscGhh LmNvbQIEIZsygTANBgkqhkiG9w0BAQsFAASCAQCkUUWQxRcXvV+4vMuhLDG35xPeUwARFEeDZsNT cH9FmRD1lfNHLsAsUZB2ZNRUZPjayAIWBLr03srsdT0UGgon03zEPjE7mWEUD/rtIHqMGpcgBGcU 7P4lFEBmbq1kxarWLEXricmtp7s27Y0eo5eVBSQOImd5FY5rltvnwUFA4jTJEWjuJS2tuDWC/dB/ 5LUUbrBVMSqRyyo9+EjzUS2QDq8l8wYvwZGKEA8MXIuCn5IEBK6H2GJOEH0yoJ0UWFohaAl4VrrK SNPSgkkmRRs1zPXIBNHksKVtmaf1SbXlXb91xh73aVKPVKUzC60b/OgwsBXYHcO/x0xg4ErzRv57 AAAAAAAA --Apple-Mail-CA59992E-81CB-4DA7-A275-FBC6A2B30F33-- --===============4192812627330517683== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4192812627330517683==--