Hi,
I have been patching the hashing functions to allow
numeric logins in cyrus-imap 2.0.16.
I have modified so far:
mailbox.c:
mailbox_hash_mbox() mailbox_hash_quota() seen_db.c:
getpath() And another file which I do not remember now, I
can't login to the server because it is crashed now and I will have to go the
data center where it is installed to manually reboot it tomorrow.
I have made it worked but when I try to create a
batch massive account the server crashes at some point. Obviously my code
is broken somewhere.
Does any one know exactly what files need to be
modified and what functions exactly ?
Does the latest version unifies the hashing code in
one file or function so modification only need to be done in one place
?
My hash function does the following:
All my users start with 0416nnnnnnn where n is any
number, so I check if the account start with a number, it not, it will handle
the hash the same way it is handled right now. If it starts with a number
and the length is greater than 8, I will get the 3 characters following 0416 to
make the hash, for example, the user 04161234567 gets a directory 123 created
for storing the hashing file, I could use 0416123 but I did it that
way.
Any help is appreciated.
Thanks in advance,
Andres
Maduro
|