Mercurial > dovecot > core-2.2
changeset 22124:1321733273ba
lib-storage: Fix SORT error message when reaching mail_sort_max_read_count
It should have been:
NO [LIMIT] Requested sort would have taken too long
Instead it was just:
NO [SERVERBUG] Mail field not cached
It was broken for CC, FROM, TO, SUBJECT, DISPLAYFROM and DISPLAYTO.
The numeric sorting was working correctly.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 05 Jun 2017 20:12:43 +0300 |
parents | 328d0bbd19c7 |
children | fbfb7adfd428 |
files | src/lib-storage/index/index-sort.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-sort.c Mon May 29 13:39:18 2017 +0300 +++ b/src/lib-storage/index/index-sort.c Mon Jun 05 20:12:43 2017 +0300 @@ -530,7 +530,8 @@ i_unreached(); } if (ret < 0) { - if (mailbox_get_last_mail_error(mail->box) == MAIL_ERROR_EXPUNGED) + index_sort_program_set_mail_failed(program, mail); + if (!program->failed) return 0; return -1; }