RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.12k stars 896 forks source link

rainloop cannot open mail folders with large quantities of messages #1737

Open fsantiago07044 opened 6 years ago

fsantiago07044 commented 6 years ago

RainLoop version, browser, OS:

1.12.0, Chrome, Windows 10 Pro

Expected behavior and actual behavior:

Expected: i would click on my folder containing 26,243 messages, often with 3k+ unread messages or more, and it would open it and show me my messages.

Actual: rainloop produces an error for that folder stating: "can't get message list"

Steps to reproduce the problem:

1.> have mail folder containing large # of messages in total (unread count does not matter I feel because i can open the folder fine in roundcube mail and "read" all unread messages and rainloop still fails to list the folder contents).

2.> try to access said folder.

Logs or screenshots:

rainloop_read_error

ftoledo commented 6 years ago

i hava same issue with courier imap server

bschelst commented 5 years ago

I have 200.000 unread messages in my inbox, and 1million+ emails in my inbox,, and rainloop works fine.

fsantiago07044 commented 5 years ago

ok, what's your imap server?

-- Fabian A. Santiago

OpenPGP: 0x643082042dc83e6d94b86c405e3daa18a1c22d8f

Sent from my mobile.

---- On Sat, 20 Apr 2019 05:33:59 -0400 bschelst notifications@github.com wrote ----

I have 200.000 unread messages in my inbox, and 1million+ emails in my inbox,, and rainloop works fine. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

marcecj commented 4 years ago

I was also seeing this with my Nextcloud instance on my home server, using Dovecot for IMAP. Since I mostly use KMail and only use Rainloop from my laptop when I'm traveling, it took me a while to research the issue properly, but I finally did.

In my case the problem turned out to be that the default vsz_limit was too low for mmap() to be able to open the large mail folder's dovecot.index.cache file. Because of that, Rainloop was waiting for dovecot to scan through all of the folder's emails (>100000), causing it to time out with the error message shown in the screenshot above (if I waited for Dovecot's CPU usage to go back down I could usually reload the folder successfully). After increasing default_vsz_limit the error disappeared, and Rainloop performs much better now.

For comparison, here's some information on my setup: