From: David Bremner <david@tethera.net>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH] WIP: support XDG database directory
Date: Tue, 02 Jan 2018 21:01:10 -0400 [thread overview]
Message-ID: <87y3lf21t5.fsf@tethera.net> (raw)
In-Reply-To: <87r2r7epsx.fsf@fifthhorseman.net>
Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:
>
> this doesn't seem like a correct characterization of it, unless we're
> misunderstanding each other.
>
> it looks to me like each notmuch database *would* be coupled with
> exactly one mailstore, given this proposal. is that right?
>
> if the library tried to open the database on its own, it would look at
> the database's stored maildir_root path.
Right, with the possibility of the user overriding the maildir, at least
at the library level.
> or am i missing something?
>
>> That probably allows a few new kinds of user error; I'm imagining
>> runing notmuch new with mismatched database and maildir, and happily
>> deleteing all of the database documents.
>
> yikes! still, i agree that in general i'd rather point notmuch at the
> database and have it discover everything it needs to from that; rather
> than the current approach of the split config file and database, which
> seems cumbersome and error-prone in other ways.
>
> that said, i *definitely* prefer the database identifying the mailstore
> (as you've done here) rather than the other way around.
>
> one final question: for portable databases, which live on a removable
> volume, or which are on networked-accessible storage and might be
> mounted in different places on different computers, do we have a way to
> protect them from the "whoops, mailstore is missing because you are on
> the wrong host" or ("…because you mounted the USB stick at /Media/foo
> instead of /Volumes/foo") scenario?
That's something that needs to be thought through. Essentially the same
issue I mentioned.
d
prev parent reply other threads:[~2018-01-03 1:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-30 20:07 [PATCH] WIP: support XDG database directory David Bremner
2018-01-02 23:14 ` Daniel Kahn Gillmor
2018-01-03 0:00 ` David Bremner
2018-01-03 0:42 ` Daniel Kahn Gillmor
2018-01-03 1:01 ` David Bremner [this message]
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=87y3lf21t5.fsf@tethera.net \
--to=david@tethera.net \
--cc=dkg@fifthhorseman.net \
--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).