* Database path relative to home directory
@ 2021-12-21 9:55 Tohiko Looka
2021-12-22 13:33 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: Tohiko Looka @ 2021-12-21 9:55 UTC (permalink / raw)
To: notmuch
I use the same config file for notmuch for multiple machines (as part
of my dotfiles). These machines have different users so I want to have
the database relative to the home directory.
I tried setting the database director to "~/.mail" and "$HOME/.mail"
and neither worked.
Is there a way to set the database directory relative to home?
Thanks,
Tohiko
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Database path relative to home directory
2021-12-21 9:55 Database path relative to home directory Tohiko Looka
@ 2021-12-22 13:33 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-12-22 13:33 UTC (permalink / raw)
To: Tohiko Looka, notmuch
Tohiko Looka <toh.looka@gmail.com> writes:
> I use the same config file for notmuch for multiple machines (as part
> of my dotfiles). These machines have different users so I want to have
> the database relative to the home directory.
>
> I tried setting the database director to "~/.mail" and "$HOME/.mail"
> and neither worked.
> Is there a way to set the database directory relative to home?
If you have notmuch >= 0.32 everywhere, you can use the XDG
locations documented in notmuch-config(1). Otherwise relative paths in
section database are interpreted relative to $HOME (documented in the
same place). So "notmuch config set database.path .mail" ought to work.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-22 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 9:55 Database path relative to home directory Tohiko Looka
2021-12-22 13:33 ` David Bremner
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).