diff options
author | Rocco Rutte <pdmef@gmx.net> | 2009-03-09 11:11:51 +0100 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2009-03-09 11:11:51 +0100 |
commit | 579dc6a5c507b6dc8133561cd711224ef5bef447 (patch) | |
tree | fc1c83911fc07b7097a417ef11f1bf80b0539383 /mh.c | |
parent | 8c99cc1a83d9a745490999fefa1743c10cac4f39 (diff) |
Restore $reverse_alias feature by using case-insensitive hash keys
The fix is implemented as callbacks in the hash table so we can avoid
working with copies of the mailbox keys but work on the originals
instead and don't pollute the code with lower-case conversions all over
the place.
While I'm at it, turn int hashes into unsigned values since the hash
function returns unsigned values now, too.
Closes #3185.
Diffstat (limited to 'mh.c')
-rw-r--r-- | mh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1870,7 +1870,7 @@ int maildir_check_mailbox (CONTEXT * ctx, int *index_hint) * of each message we scanned. This is used in the loop over the * existing messages below to do some correlation. */ - fnames = hash_create (1031); + fnames = hash_create (1031, 0); for (p = md; p; p = p->next) { @@ -2019,7 +2019,7 @@ int mh_check_mailbox (CONTEXT * ctx, int *index_hint) mhs_free_sequences (&mhs); /* check for modifications and adjust flags */ - fnames = hash_create (1031); + fnames = hash_create (1031, 0); for (p = md; p; p = p->next) hash_insert (fnames, p->h->path, p, 0); |