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

Re: [sup-talk] Fwd: Automatic labels backup



Reformatted excerpts from William Baxter's message of 2009-12-19:
> How much additional work does it take to turn an index dump into a
> sup-to-sup sync mechanism?  Suppose that on one host you dump the
> index and send a signed message.  This reaches the receiving host when
> you read mail there.  Use it to update the index, and the receiving
> host has labels matching those on the sending host.

It might not be fast or pretty, but should be easy. To sync an index
on computer B based on a dump from computer A, you should be able to
just:

computer B> sup-sync --restore <dumpfile from A>

That should both a) load any new messages from the source, and b) update
them with the labels from the dumpfile.

It's a little silly because you're transmitting the dumpfile for the
entire index back and forth between the two. If it were ordered, you
could just take a portion of it.

I've never tried this, but based on a visual inspection of the code, I
Guarantee It Works (tm).
-- 
William <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk