Script to convert spool directory to "basic hashing"

Bron Gondwana brong at
Mon Oct 15 04:40:49 EDT 2007

On Mon, 15 Oct 2007 10:20:58 +0200, "Sascha Wilde" <wilde at> said:
> Hi *,
> as the `rehash' tool, provided with cyrus imap doesn't work (see bug
> 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:
> 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:

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

One thing this script doesn't do (yet, I should revisit it) is clean
up un-used directories on disk once it has finished.


  Bron Gondwana
  brong at

More information about the Cyrus-devel mailing list