Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mailbox-list-index-private.h @ 4929:791c9c8d3a02 HEAD
Compress list index when its deleted space amount gets too high. Also fixed
several bugs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 20 Dec 2006 10:16:41 +0200 |
parents | 3d00a9636393 |
children | 1baf9dd3fc40 |
line wrap: on
line diff
--- a/src/lib-index/mailbox-list-index-private.h Wed Dec 20 08:20:25 2006 +0200 +++ b/src/lib-index/mailbox-list-index-private.h Wed Dec 20 10:16:41 2006 +0200 @@ -6,6 +6,9 @@ #define MAILBOX_LIST_INDEX_MAJOR_VERSION 1 #define MAILBOX_LIST_INDEX_MINOR_VERSION 0 +#define MAILBOX_LIST_COMPRESS_PERCENTAGE 10 +#define MAILBOX_LIST_COMPRESS_MIN_SIZE 1024 + struct mailbox_list_index_header { uint8_t major_version; uint8_t minor_version; @@ -82,4 +85,10 @@ const struct mailbox_list_dir_record **dir_r); int mailbox_list_index_map(struct mailbox_list_index *index); +int mailbox_list_index_file_create(struct mailbox_list_index *index, + uint32_t uid_validity); +void mailbox_list_index_file_close(struct mailbox_list_index *index); + +int mailbox_list_index_refresh(struct mailbox_list_index *index); + #endif