cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]. Supports IMAP/SMTP, JMAP and soon EWS
http://cypht.org
GNU Lesser General Public License v2.1
1.01k stars 161 forks source link

Change the frequency at which messages are prefetched #1297

Closed jacob-js closed 1 month ago

jacob-js commented 1 month ago

Instead of prefetching the entire message list when the mailbox loads, these changes only prefetch the next and previous messages relative to the one currently displayed.

This is a workaround for the issue of the server processing multiple requests synchronously (as mentioned in #1279), which prevents it from handling further actions. This leads to high load times when message content is requested, especially when the mailbox is displayed for the first time with a large list of messages.