summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-03-09 11:11:51 +0100
committerRocco Rutte <pdmef@gmx.net>2009-03-09 11:11:51 +0100
commit579dc6a5c507b6dc8133561cd711224ef5bef447 (patch)
treefc1c83911fc07b7097a417ef11f1bf80b0539383 /mh.c
parent8c99cc1a83d9a745490999fefa1743c10cac4f39 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mh.c b/mh.c
index b019fa67..53df8756 100644
--- a/mh.c
+++ b/mh.c
@@ -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);