- struct maildir *left = list;
- struct maildir *right = list;
-
- if (!list || !list->next) {
- return list;
- }
-
- list = list->next;
- while (list && list->next) {
- right = right->next;
- list = list->next->next;
- }
-
- list = right;
- right = right->next;
- list->next = 0;
-
- left = maildir_sort_inode (left);
- right = maildir_sort_inode (right);
- return maildir_merge_inode (left, right);
-}
-#endif /* USE_INODESORT */
-
-#if USE_HCACHE
-static size_t maildir_hcache_keylen (const char *fn)
-{
- const char *p = strchr (fn, ':');
-
- return p ? (size_t) (p - fn) : str_len (fn);