mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[PR #418] [MERGED] add default sort order for imap folders - arrival or sent date #810
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#810
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/418
Author: @kroky
Created: 7/31/2020
Status: ✅ Merged
Merged: 9/16/2020
Merged by: @jasonmunro
Base:
master← Head:feature/default-sort-date📝 Commits (1)
ee98884add default sort order for imap folders - arrival or sent date; show arrival date in extended headers; fix sorting by sent date📊 Changes
10 files changed (+126 additions, -12 deletions)
View changed files
📝
modules/core/functions.php(+12 -0)📝
modules/core/handler_modules.php(+19 -0)📝
modules/core/output_modules.php(+33 -0)📝
modules/core/setup.php(+4 -1)📝
modules/imap/functions.php(+10 -4)📝
modules/imap/handler_modules.php(+16 -1)📝
modules/imap/hm-imap.php(+13 -3)📝
modules/imap/output_modules.php(+8 -2)📝
modules/imap/setup.php(+1 -0)📝
modules/imap/site.js(+10 -1)📄 Description
This PR actually tries to solve 3 issues coming from discussion: https://github.com/jasonmunro/cypht/issues/378
Add a site setting for default date sort order - up to now it defaults to arrival date but in some cases, the actual sent date (date from msg header) is preferred. Now it can be configured.
Show arrival date in extended headers. We were only showing date header which is a bit confusing when coming from message list where it lists the arrival date.
Fix sorting by sent date. Server correctly sorted messages and returned them in a formatted message list. However, there was one more sorting on the client side which used the timestamp of each row which came from the arrival date. Thus, sorting by sent date did not actually produce any different results - it was still sorting by arrival date. I have fixed this by actually changing the date column in the message list to display sent date when sorting by sent date. This requires clearing the imap page cache before reloading the form as the returned formatted message list is going to be different.
Let me know if you see any issues.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.