Slow IMAP SORT

Aleksander Machniak alec at alec.pl
Tue Aug 16 13:21:42 UTC 2022


On 15.08.2022 11:43, Ewald Dieterich wrote:
> The following IMAP SORT with 2 sort criteria is very slow on an mdbox 
> mailbox with lots of mails (more than 10,000) and an empty cache:
> 
> . SORT (ARRIVAL DATE) UTF-8 ALL
> 
> Each mail is opened when the SORT is executed, which is slow, given the 
> number of mails in the mailbox.

There might be a bug, but "SORT (ARRIVAL DATE)" itself does not make 
much sense. It means "sort by arrival timestamp and for all messages 
with identical arrival timestamp use Date header instead".

-- 
Aleksander Machniak
Kolab Groupware Developer        [https://kolab.org]
Roundcube Webmail Developer  [https://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com


More information about the dovecot mailing list