cypht
cypht copied to clipboard
Make cypht search shows latest results when searching in a mail box
Pullrequest
Make cypht search show latest results
Make default sort mode on search by internal date from the newest to the latest
Issues
- [X] None
Checklist
- [X] None
How2Test
- [X] Make a search from any page and notice that found messages at the top are the recent ones
Todo
- [ ] Make sure sort by date choosen by the user works as well
Shouldn't we sort by the default field user is seeing messages sorted? Might be internal date, might be date of arrival.
Shouldn't we sort by the default field user is seeing messages sorted? Might be internal date, might be date of arrival
I have found that internal_date and date are the same. The goal here were to make sure by default newers messages are on top. I am still working on this PR to make sure that sort follows users choices / preferences (Ascending or Descending).
There are certainly 2 different dates that user can choose for default sort order in imap module - Date of the msg (date sent) and date of arrival (which is probably the internal date). I think we should be in sync here with the setting.
@mmarcwabo Please take this over the finish line :-)
Just adding my 2¢, Cypht might have an opportunity to do truly smart searches... by doing a "relevance" search and sorting with the most relevant results at the top.
I haven't yet used Cypht in the real world, so this is just a thought off the top of my head.
Just adding my 2¢, Cypht might have an opportunity to do truly smart searches... by doing a "relevance" search and sorting with the most relevant results at the top.
ok, let's track here: https://github.com/cypht-org/cypht/issues/959
Closing this in favor of https://github.com/cypht-org/cypht/pull/1120 - turns out we needed both front and backend fixes to make sorting work in imap folders.