[PATCH 0/5] Store message modification times in the DB
Tom Prince
tom.prince at ualberta.net
Mon Dec 19 14:56:39 PST 2011
On Mon, 19 Dec 2011 14:48:21 -0500, Austin Clements <amdragon at MIT.EDU> wrote:
> This protocol requires significantly more state, but can also
> reconstruct per-tag changes. Conflict resolution is equivalent to
> what git would do and is based solely on the current local and remote
> state and the common ancestor state.
This seems like exactly what one would get if one stored the tag state
in git, which seems like a reasonable thing to do anyway.
> This can lead to unintuitive results if a tag on a message has gone
> through multiple changes on both hosts since the last sync (though, I
> argue, there are no intuitive results in such situations).
I certainly agree that there isn't a universally good resolution to
this. I suspect that the same person, making the same tag changes with
the same mtimes, will want different resolutions at different
times. This is because there is no good way to record the intent of the
changes.
> Tombstones are only required to garbage collect sync state (and other
> techniques could be used for that).
I wonder how many people using notmuch actually delete mail? I know I
don't bother to, anymore.
One use case that was mentioned, is having a limited amount of mail on a
portable device, and syncing tags on those message present. Using git to
record the tag state, one would just need to record the state before
deleting files, to avoid the need for tombstones in the notmuch db.
Tom
More information about the notmuch
mailing list