mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[PR #1480] [MERGED] fix(backend): delete cached imap responses for servers that don't support SORT extension #1546
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#1546
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?
📋 Pull Request Information
Original PR: https://github.com/cypht-org/cypht/pull/1480
Author: @indridieinarsson
Created: 3/24/2025
Status: ✅ Merged
Merged: 4/1/2025
Merged by: @kroky
Base:
master← Head:pr_fix_cache_bust📝 Commits (1)
91e1a6fStore imap command to fetch command list, so it can be busted when needed📊 Changes
2 files changed (+24 additions, -0 deletions)
View changed files
📝
modules/imap/hm-imap-cache.php(+23 -0)📝
modules/imap/hm-imap.php(+1 -0)📄 Description
🍰 Pullrequest
See issue in #1479 for how to reproduce the bug.
This appears to be due to the fact that gmail does not support the SORT imap extension. For that case, there is a separate code path taken when checking for new messages, using
UID FETCH [...]to check for messages.When noticing new messages, there is an attempt to remove the relevant commands from the imap cache, but the
UID FETCHwas not removed. Therefore, the results from the last FETCH commands are retreived from the cache and served up, but the new message isn't in that list, so is missing. If you use cypht for a bit, opening some messages, then in the end, the relevant cache item is purged and the message shows up, but that could take an hour or 2.This PR tries to set up a store for the particular imap command that is used for fetching the message list, and ensure it is removed from the cache when appropriate.
Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.