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

Sorting in folders not working (correctly) or sort order not correct #1022

Closed
new-on-github opened this issue Mar 16, 2023 · 9 comments
Closed
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@new-on-github
Copy link

Describe the bug
Mails in a folder are not sorted by date. There is no menu to sort in a different way, therefore I think, the mails should be sorted by date.

To Reproduce
Steps to reproduce the behavior:
Check a folder with some mails and look at the sorting.

Expected behavior
Mails are sorted by date

Screenshots
image

Please complete the following information:

  • Browser: firefox
  • IMAP daemon: ???
  • PHP version: 8.1.16
  • SnappyMail Version: 2.26.4

Thanks a lot for this amazing mail client

@the-djmaze
Copy link
Owner

When your IMAP server does not support sorting, the sort is based on the IMAP software and we can't do anything about it.

However there are two kind of dates:

  1. the date specified inside email headers
  2. the internal date when server received/created the message

By default SnappyMail shows number 1, and 2 is hidden.
In next release 2 is still hidden, but available in the JSON so we can enhance the behavior in future.

A good test to check your server:

  1. Download very old email EML
  2. Drag&drop the EML inside your mailbox
  3. See if message is at the top or not.

Then you know how your IMAP server behaves.

@new-on-github
Copy link
Author

new-on-github commented Mar 20, 2023

A good test to check your server:

1. Download very old email EML

2. Drag&drop the EML inside your mailbox

3. See if message is at the top or not.

Then you know how your IMAP server behaves.

Thanks a lot for your reply and help. This seems to be the problem. The very old imported Mail is on top in INBOX. We will have to check the IMAP-Server.

I have a other question in this direction:
This post from you indicates to me, there is a sorting mechanism in snappymail:
#569 (comment)
How did I misunderstand this post?

Thanks for your work!

@the-djmaze
Copy link
Owner

I have a other question in this direction: This post from you indicates to me, there is a sorting mechanism in snappymail. How did I misunderstand this post?

For that, your IMAP software must support https://www.rfc-editor.org/rfc/rfc5256.html

@new-on-github
Copy link
Author

new-on-github commented Mar 24, 2023

I have a other question in this direction: This post from you indicates to me, there is a sorting mechanism in snappymail. How did I misunderstand this post?

For that, your IMAP software must support https://www.rfc-editor.org/rfc/rfc5256.html

May I suggest adding a (foot-)note with the above explanation to the sort-entry of the mentioned table. Then other people will hopefully not ask you again.

Thanks a lot for your quick replies, answers and help.

We will therefore check our mail-server!

@the-djmaze the-djmaze added the documentation Improvements or additions to documentation label Mar 27, 2023
@the-djmaze
Copy link
Owner

the-djmaze commented Apr 4, 2023

May I suggest adding a (foot-)note with the above explanation to the sort-entry of the mentioned table. Then other people will hopefully not ask you again.

I understand, but it should be already noticeable due to the missing sort button at the top.
afbeelding

@new-on-github
Copy link
Author

new-on-github commented Apr 4, 2023

May I suggest adding a (foot-)note with the above explanation to the sort-entry of the mentioned table. Then other people will hopefully not ask you again.

I understand, but it should be already noticeable due to the missing sort button at the top. afbeelding

Do I understand you correctly? If my IMAP-server supports sorting, then there is not also the correct order but also this sort-button, which toggles sorting order?
Ok, seems to be logical. But my problem/misunderstanding was, to look for the button because the table tells my sorting is possible. Therefore I suggested to add this information (Snappy can sort, but only if the IMAP-Server supports this).

Thanks a lot for your work an replies.

@the-djmaze
Copy link
Owner

Would it be sufficient to show a different button, instead of hiding it?
Something like:
afbeelding

@new-on-github
Copy link
Author

Would it be sufficient to show a different button, instead of hiding it? Something like: afbeelding

Sounds very good. But maybe a lot work? As text I would suggest something like: Sort not supported by (IMAP-)Server

@the-djmaze the-djmaze added the enhancement New feature or request label Apr 4, 2023
@new-on-github
Copy link
Author

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants