Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INBOX pagination problem for large mailbox after 2.36.1 #1716

Closed
mohsensaeedi opened this issue Aug 25, 2024 · 12 comments
Closed

INBOX pagination problem for large mailbox after 2.36.1 #1716

mohsensaeedi opened this issue Aug 25, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@mohsensaeedi
Copy link

Describe the bug
After we upgrade to snappymail 2.36.2 found a bug for displaying page number for large inbox. some users have many emails on their inbox. I tested this with 2.37.2. bug started from 2.36.1. we have not any problem with 2.36.0

we can search the email are not shown on INBOX but page number don't show on bottom of page.

To Reproduce
I login to INBOX with 28000 emails. We tested this bug with English and Persian. the behavior is the same.

Screenshots
image

Please complete the following information:

  • Browser: all browser
  • IMAP daemon: dovecot
  • PHP version: 7.4
  • SnappyMail Version: 2.36.1 and above
  • Mode: standalone

I can give you access to our test server if you haven't big mailbox.

@the-djmaze
Copy link
Owner

Can you explain what is not working?

As i have it working with 2148 pages:
afbeelding

@the-djmaze the-djmaze added the needs feedback Further information is requested label Aug 26, 2024
@mohsensaeedi
Copy link
Author

We have this problem just for INBOX. can you check it? I'll send screenshot. We tested many versions below and above 2.36.1.

@the-djmaze
Copy link
Owner

Are you using 64bit PHP?
See #830 (comment)

@the-djmaze
Copy link
Owner

the-djmaze commented Aug 27, 2024

You can also check the MessageList request response in the browser developer tools.
It should show totalEmails to work with.
afbeelding

@mohsensaeedi
Copy link
Author

Are you using 64bit PHP? See #830 (comment)

Yes and i tested different version on the same VM with same settings.

image

Screenshot for 2.36.4

@mohsensaeedi
Copy link
Author

You can also check the MessageList request response in the browser developer tools. It should show totalEmails to work with. afbeelding

This screenshot for INBOX with about 30 K emails

image

@the-djmaze
Copy link
Owner

Don't expand @Collection, look below it (like in my screenshot)

@mohsensaeedi
Copy link
Author

Don't expand @Collection, look below it (like in my screenshot)

image

@the-djmaze
Copy link
Owner

totalEmails says 0.
I will look into it

@mohsensaeedi
Copy link
Author

totalEmails says 0. I will look into it

Hi. Any update?

@the-djmaze
Copy link
Owner

the-djmaze commented Sep 20, 2024

Not yet. But the problem is the domain setting "limit".
Because your response has limited: true
In that case the count and sorting task runs in background (this was added to prevent long waiting/timeouts for the messages list).

If your IMAP server is fast enough, you could set limit to 0 and see if people prefer slower responses vs pagination.
Pagination does get updated in 15 minutes (default refresh setting, can be altered) if there are no new messages (else the background task is started again).

@the-djmaze the-djmaze added bug Something isn't working and removed needs feedback Further information is requested labels Sep 20, 2024
@the-djmaze
Copy link
Owner

I might have solved it.
It probably was due to the changes for #1507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@the-djmaze @mohsensaeedi and others