Script to convert spool directory to "basic hashing"
Bron Gondwana
brong at fastmail.fm
Mon Oct 15 04:40:49 EDT 2007
On Mon, 15 Oct 2007 10:20:58 +0200, "Sascha Wilde" <wilde at intevation.de> said:
> Hi *,
>
> as the `rehash' tool, provided with cyrus imap doesn't work (see bug
> 2910, https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2910) I finally
> hacked up a script to convert a plain spool directory to the basic
> hashing structure.
>
> The script can be found in the CVS of the Kolab project:
> http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/utils/admin/hash-imap-spool
>
> For Kolab we only needed to migrate from a plain (none hashing) spool
> to basic hashing (hashimapspool but no fulldirhash). So that's all
> the script currently does, but IMO it could very well be used as a
> starting point for a full reimplementation of the `rehash' tool.
>
> ps: please CC me in any response, as I'm not subscribed to this list.
Hi Sascha,
There's a much more complete re-implementation of the rehash script
available as part of:
http://cyrus.brong.fastmail.fm/patches/cyrus-hashuser-2.3.9.diff
which also has another hashing style which groups folders by the user
who owns them all at one level, basically to make fastrename a lot
cleaner.
One thing this script doesn't do (yet, I should revisit it) is clean
up un-used directories on disk once it has finished.
Regards,
Bron.
--
Bron Gondwana
brong at fastmail.fm
More information about the Cyrus-devel
mailing list