Mercurial > dovecot > core-2.2
view src/lib-storage/index/index-sort.h @ 21604:fb8ef6e2c2fe
lib-storage: Add mail_sort_max_read_count setting.
This controls how many slow mail accesses sorting can perform before it
fails:
a NO [LIMIT] Requested sort would have taken too long
The SORT reply is still returned, but it's likely not correct.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 17 Feb 2017 19:07:53 +0200 |
parents | a90f51ba2e9c |
children |
line wrap: on
line source
#ifndef INDEX_SORT_H #define INDEX_SORT_H struct mail_search_sort_program; struct mail_search_sort_program * index_sort_program_init(struct mailbox_transaction_context *t, const enum mail_sort_type *sort_program); int index_sort_program_deinit(struct mail_search_sort_program **program); void index_sort_list_add(struct mail_search_sort_program *program, struct mail *mail); void index_sort_list_finish(struct mail_search_sort_program *program); bool index_sort_list_next(struct mail_search_sort_program *program, uint32_t *seq_r); #endif