Some bits and pieces of evil GUID fiddling code
Bron Gondwana
brong at fastmail.fm
Mon Oct 15 08:45:02 EDT 2007
Attached are:
CyrusIndex.pm - my Perl module for directly fiddling index files - it can
handle version 9 AND version 10 index files now, and even handles
up/downgrades in stream_copy now.
index_uids.pl - a simple tool for dumping the contents of an index file
guidhelper.pl - ***WARNING*** this comes with no warranty either expressed
or implied and will probably eat your data if you don't
use it very carefully - also won't work outside FastMail
as-is anyway.
I'm posting these more for general interest than out of a belief anyone
else will get much use out of them. guidhelper.pl in particular has hooks
deep into the FastMail way of doing things, though I tried to abstract the
main work component out to where people could use it if they want to spend
some time rewriting the "get folder list" bit.
I have successfully used guidhelper.pl to simulate the reconstruct
instructions given for upgrading without the IO hit of the
'reconstruct -g' on the replica.
(I'm thinking evil thoughts of a "guidmode: zero" and setting that on
the replicas so they automatically zero during the initial upgrade, but
that's possibly not worth the effort for a once-off for just us!)
Enjoy,
Bron.
--
Bron Gondwana
brong at fastmail.fm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IndexFile.pm
Type: application/x-perl
Size: 10760 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20071015/79d4a16b/attachment-0003.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index_uids.pl
Type: application/x-perl
Size: 658 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20071015/79d4a16b/attachment-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guidhelper.pl
Type: application/x-perl
Size: 2935 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20071015/79d4a16b/attachment-0005.bin
More information about the Cyrus-devel
mailing list