Re: Relative directories for database-mail_root and -path?

Subject: Re: Relative directories for database-mail_root and -path?

Date: Sat, 26 Oct 2024 16:49:55 +0200

To: notmuch@notmuchmail.org

Cc:

From: Ralph Seichter


* Pengji Zhang:

>> Simply dropping the ~/ prefix and using .maildir or .local does not
>> seem to work either. [...]
>
> I suppose dropping the prefix should work? In 'lib/config.cc' [...]

And it does indeed work, thank you for looking into it. I just tried
again, this time with a freshly minted config file.

  [database]
  mail_root=.maildir
  path=.local/share/notmuch/default

"notmuch config list" then results in:

  database.backup_dir=/home/alice/.local/share/notmuch/default/backups
  database.hook_dir=/home/alice/.local/share/notmuch/default/hooks
  database.mail_root=/home/alice/.maildir
  database.path=/home/alice/.local/share/notmuch/default

I don't know what exactly I did wrong during yesterday's experiments,
but I am sure it was user error. My bad.

As for finding information about notmuch's approach to relative paths, I
mentioned that I read a hint in a search result. I think it was a GitHub
issue for "afew", so it was an indirect reference to a notmuch feature.

Is the no-/-means-relative-to-HOME made explicit in notmuch's own
documentation, and I have overlooked it (not unheard of), or is this
something to be learned only by examining the source code?

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

Thread: