mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #1369] Default sort in Junk folder is incorrect (was "Junk folder not updated") #640
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#640
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ulfgebhardt on GitHub (Nov 19, 2024).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1369
Originally assigned to: @mercihabam on GitHub.
🐛 Bugreport
Junk folder not updated
The Junk folder is not refetched when selecting it - I assume this applies to all folders.
My Junk folder is automatically filled by my email server, but when I have fetched the Junk folder once in cypht it is only refreshed when I change the sort order of the folder (and revert that setting).
Logout/Login works aswell.
(I do not know if my email server somehow violates some imap requirement/update mechanic - this is a potential external source for this issue)
Version & Environment
Rev: [v2.4.0]
OS: [chromium, alpine]
Steps to reproduce
@marclaporte commented on GitHub (Nov 19, 2024):
Please try others to confirm. If you toggle between inbox, junk, draft, etc., it should always refresh
What is your mail server? (Dovecot? Cyrus? etc.)
@marclaporte commented on GitHub (Nov 19, 2024):
This is what you want, right?
https://en.wikipedia.org/wiki/IMAP_IDLE
@ulfgebhardt commented on GitHub (Nov 19, 2024):
No, I do an user action. I reselect the mailbox or reload the window. This does not refresh the contents tho.
Changing the sort order forces a query to the server and gives updated results
I will try to capture such network traffic and evaluate if the new messages arrive in the client or not.
@mercihabam commented on GitHub (Nov 21, 2024):
@ulfgebhardt, the list of messages for your folder updates whenever a user navigates to that specific folder. However, if there is cached data, it is displayed first. As a result, if the cached data matches the server's response, it may appear as though no request was made to the server.
@ulfgebhardt commented on GitHub (Nov 21, 2024):
Navigating to Junk Folder:


Apparently background refresh is happening:
Sending myself a Junk Message:

Receiving spam on server:

No automatic refresh on the page - messages not visible:

Navigate to Mailbox & Back to Junk - messages not visible:

Changing sort oder twice - reveals messages:

Still unclear: Is the folder status not correctly reported by imap (server moves mail via sieve) or is this a caching problem of cypht. Also unclear if the update successfully reaches the client (there is network traffic) or if the updates omit the new message.
I am not subscribed to the folder in question:

@mercihabam commented on GitHub (Nov 21, 2024):
The question relevant to your scenario is: when examining the automatic refresh of network data, does your new message appear along with the other data? If it doesn’t, we might need to investigate the sieve filters.
@mercihabam commented on GitHub (Nov 21, 2024):
Additionally, does the refresh icon in the top bar, located just before the search input, help you see the new message?
@ulfgebhardt commented on GitHub (Nov 21, 2024):
This I can answer: no
@ulfgebhardt commented on GitHub (Nov 21, 2024):
This i can see in my network travel (another test)
This is the last element in the list and also the root cause of the problem: The sort order of the mails is incorrect - i can actually see the email, but at the end of the list

...
The problem is not that the message is not displayed - but the new message is wrongly appended onto the end of the list (see screenshot above)
Furthermore - the second last message is displayed as first message.
Hence: (first in network = last in list === last in network = first in list) but when new messages arrive they are appended at the end of the list and not put infront.
@marclaporte commented on GitHub (Nov 22, 2024):
Good catch! This should be easy to fix. Some similar issues were addressed via https://github.com/cypht-org/cypht/pull/1345
@mercihabam commented on GitHub (Nov 22, 2024):
The sort order should have already been fixed. Please try with the latest master!
@ulfgebhardt commented on GitHub (Nov 22, 2024):
Will confirm fix with next release - feel free to close this, if you think it has been addressed