Re: search: exit code 1 when running as www-data user

Subject: Re: search: exit code 1 when running as www-data user

Date: Sun, 25 Oct 2026 11:23:22 -0300

To: Christian Weiske, notmuch@notmuchmail.org

Cc:

From: David Bremner


Christian Weiske <cweiske@cweiske.de> writes:

>
> When I don't set hook_ and backup_dir, a missing $HOME variable is
> enough to stop notmuch.
>
> When I set both config variables, notmuch does not care about a missing
> $HOME.
> I wonder why that is; both hook and backup dir are automatically
> inside database.mail_root (or database.path) and don't need home at all.

The rule is to look in XDG locations before inside database.path, and
those are (implicitely) defined in terms of $HOME. Still it sounds like
notmuch is getting confused by $HOME not being defined, and exiting
instead of carrying on to try the next possibility. I would be
interested in any error messages, but I'm guessing from your previous
post there isn't any.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: