[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] [PATCH] add sup-import-dump: import message state in sup-dump format



On Wed, 19 Jan 2011 14:52:15 +0100, Sascha Silbe <sascha-pgp@silbe.org> wrote:
> sup-import-dump imports message state as exported by sup-dump into the index.
> It is a direct replacement for the sup-sync --restored functionality that got
> lost when merging the maildir branch.
> Unlike sup-sync it operates on the index only, so it's fast enough for
> periodically importing full dumps to keep multiple sup installations
> synchronised.

So it does not clear the index, right? It only assign the set of labels to the
given message. Just what I need to upgrade my sup index with my notmuch index.

> It should also be easy enough to add support for a "diff" style format that
> would allow replaying "logs" if sup were enhanced to write those in the
> future.

Please do.

I hacked such a logging feature [1] in the past (at the time where sup
used ferret and that message loss happened), then I merged the previous index
dump with the log and compared this to the actual dump (I wrote some tools
to play with this log format).

Cheers,

[1]: http://gitorious.org/~ertai/sup/clone-by-ertai/commits/to-submit-log-labels-mapping

-- 
Nicolas Pouillard
http://nicolaspouillard.fr
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel