[Dovecot] Question about directory hash function.

Timo Sirainen tss at iki.fi
Thu Jun 13 06:21:44 EEST 2013


On Tue, 2013-05-28 at 09:45 +0400, Evgeny Basov wrote:
> Hello, Timo.
> 
> I have a question about %H in http://wiki2.dovecot.org/Variables : what
> the hash function uses for calculations and how to get this value
> manually? This is need for bypass way getting home directory.

It's a pretty bad hash calculation: 
http://hg.dovecot.org/dovecot-2.2/file/754d244b8249/src/lib/hash.c#l501

In v2.2 hg there's now an MD5 based %N ("new hash") that gives much
better distribution of values.




More information about the dovecot mailing list