index-storage.h revision 0c17af9d3f9323136a94e66605776ed4462a172d
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen/* Max. mmap()ed size for a message */
6d2b3ce2c6ef62334985ece4f0ab8b154e0e9560Timo Sirainen/* Block size when read()ing message. */
047c00cd3f7f403672f81569413669238df8c15aTimo Sirainen /* Mailbox is locked, will abort in secs_left */
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen /* Mailbox lock looks stale, will override in secs_left */
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen char *user; /* name of user accessing the storage */
e0740628f6ca05f4bc79a9d8a90b650f4d38d4d0Timo Sirainen uint32_t (*get_recent_count)(struct index_mailbox *ibox);
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainen enum mailbox_lock_notify_type last_notify_type;
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen time_t last_new_mtime, last_cur_mtime, last_new_sync_time;
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen struct mailbox_transaction_context mailbox_ctx;
b2d562f9c7fd13f9a16e9b3bcee904630b80b1feTimo Sirainen struct mail_cache_transaction_ctx *cache_trans;
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen struct index_mail fetch_mail; /* for index_storage_fetch() */
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenint mail_storage_set_index_error(struct index_mailbox *ibox);
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenvoid index_storage_reset_lock_notify(struct index_mailbox *ibox);
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen const char *mailbox_path, const char *prefix);
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainenvoid index_storage_unref(struct mail_index *index);
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenvoid index_storage_init(struct index_storage *storage);
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenvoid index_storage_deinit(struct index_storage *storage);
struct index_mailbox *
const char *custom_flags[],
unsigned int custom_flags_count);
void *context);
struct mail *
struct mail_search_context *
const char *const wanted_headers[]);
struct mailbox_transaction_context *