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

1.5 inbox email list not displaying new messages until manual refresh #8234

Closed
kurkle opened this issue Oct 19, 2021 · 12 comments
Closed

1.5 inbox email list not displaying new messages until manual refresh #8234

kurkle opened this issue Oct 19, 2021 · 12 comments

Comments

@kurkle
Copy link

kurkle commented Oct 19, 2021

When new mail arrives, the title and inbox folder properly update the unread count, but email list is not refreshed to include the new messages.

I upgraded from 1.4.11 and looked through the changelog, but did not notice anything other about new mail that the notification sound changes.

Is this by design / new option / maybe an issue with some plugin I'm using? I don't see any errors in console.

The refresh task/action returns: exec: "this.set_unread_count(\"INBOX\",1,true,\"\");\n", which suggests it could be by design?

@alecpl
Copy link
Member

alecpl commented Oct 19, 2021

First thing to do is to try with all plugins disabled.

@kurkle
Copy link
Author

kurkle commented Oct 19, 2021

Seems like same issues as #8165, refresh button does nothing too. But changing folder loads the new messages. I'll test if and what plugin it is.

@kurkle
Copy link
Author

kurkle commented Oct 19, 2021

Disabling plugins has no effect.

@kurkle

This comment has been minimized.

@kurkle
Copy link
Author

kurkle commented Oct 19, 2021

Tested with classic skin and english language, still not working.

And to assure you I managed to really disable the plugins:

image

@Github-Citizen
Copy link
Contributor

Github-Citizen commented Oct 19, 2021

I just tested this and it works for me. New mail shows the number on the inbox folder, and the email details show up in the email list.

USING:
Roundcube 1.5.0
filesystem_attachments 1.0
identity_select 1.1
jqueryui 1.12.0
managesieve 9.4
password 5.3
zipdownload 3.4

Centos 8
PHP 7.4.6
Apache 2.4.37
Dovecot 2.3.16
Firefox 93.0

@alecpl
Copy link
Member

alecpl commented Oct 19, 2021

Works for me too. We'll need your configuration. What IMAP server software (with version)? Do you have refresh enabled in Preferences > User interface Main options? Last resort, enable imap_debug and provide the log (from when you log in to the moment of a refresh that is expected to catch new mail).

@kurkle
Copy link
Author

kurkle commented Oct 19, 2021

old dovecot + qmail.

traced it up to

$status = $rcmail->storage->folder_status($mbox_name, $diff);

where the returned status is zero, even though there are new messages.

but I guess its time to update the software :)

@kurkle
Copy link
Author

kurkle commented Oct 19, 2021

Compared the refresh action result against 1.4.11 and found out that 1.4.11 always returns the emails for the current page, even when there are no new messages.

Is there a bug fix / optimization related to that?

here's a snip from the debug log that could be relevant (the unseen id, if I'm not mistaken, is quite a lot smaller that max id):

Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * 13139 EXISTS
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * 1 RECENT
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * OK [UNSEEN 13139] First unseen.
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * OK [UIDVALIDITY 1230095679] UIDs valid
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * OK [UIDNEXT 102380] Predicted next UID
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * OK [HIGHESTMODSEQ 183964] Highest
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: A0003 OK [READ-WRITE] Select completed (0.000 + 0.000 secs).
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] C: A0004 UID SEARCH RETURN (COUNT MAX) ALL UNDELETED
Oct 19 20:10:23 mail roundcube: <7rlm5fbl> [3ACA] S: * ESEARCH (TAG "A0004") UID MAX 102379 COUNT 13139

@alecpl
Copy link
Member

alecpl commented Oct 20, 2021

I was able to reproduce the issue with disabled imap_cache/messages_cache and enabled "Do not show deleted messages" option.

@kurkle
Copy link
Author

kurkle commented Oct 20, 2021

I can confirm disabling the "Do not show deleted messages" option resolves the issue.

And for others reading this, upgrading php (to 7.2) or dovecot (to 2.3.16) had no effect.

alecpl added a commit that referenced this issue Oct 23, 2021
@alecpl alecpl modified the milestones: later, 1.5.1 Oct 23, 2021
alecpl added a commit that referenced this issue Oct 23, 2021
@alecpl
Copy link
Member

alecpl commented Oct 23, 2021

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants