Author Topic: Sort by UID  (Read 21077 times)

doctorow

  • Jr. Member
  • **
  • Posts: 87
Sort by UID
« on: December 14, 2012, 10:46:11 pm »
Currently Aqua Mail allows to sort by "date, date (reverse), subject, and sender. It would be nice if it was also possible to sort by UID, meaning sort by the order when mail got delivered to the inbox. Sometimes people use wrongly configured e-mail clients with wrong dates/times, and this could lead to new mail being inserted further down the message list (and thus potentially overlooked). It is also the fastest way to sort mail on a server I believe.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Sort by UID
« Reply #1 on: December 15, 2012, 03:21:24 am »
Sorting is client side, but other than that... Yes, possibly, or I could add sorting by when messages were received in the app. I understand Apple Mail does this by default, so it's possible this is what some users expect.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Sort by UID
« Reply #2 on: December 15, 2012, 10:38:45 am »
Sorting is client side, but other than that...

Perhaps you could consider then the IMAP extension SORT, which is supported by virtually every mainstream IMAP server. It's way faster than sorting in the client, and may prevent problems for end users with very large mailboxes.

Link: http://tools.ietf.org/html/rfc5256

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Sort by UID
« Reply #3 on: December 19, 2012, 03:38:36 am »
Oh, please.

Let's see how well it's supported:

Gmail - NO, Yahoo - NO, Yandex (a very popular Russian mail service) - NO.

I've already learned my lesson with UIDPLUS :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Sort by UID
« Reply #4 on: December 19, 2012, 04:10:48 am »
Oh, please.

Let's see how well it's supported:

Gmail - NO, Yahoo - NO, Yandex (a very popular Russian mail service) - NO.

Kostya,

You are referring to a handful of big ISPs who use custom IMAP implementations. I think this is not fair. Not everyone is using them. I am talking about all the popular IMAP servers out there. SORT extension supported, for example:
For an unofficial list of supported extensions by various IMAP servers look here.

IMAP servers like Gmail advertise their IMAP extensions under capabilities. If you don't see SORT, you can skip SORT support.  But server-side sorting is a beautiful extension to handle searches on large amounts of email rapidly without any heavy lifting on the client (Android).

You could go even one step further and look for the THREADED extension to trigger server-based threading of messages without requiring Aqua to download the necessary data itself. That, too, is supported by all the popular non-custom IMAP servers out there.

I understand you were having difficulties because one or more IMAP servers didn't follow UIDPLUS as you've interpreted it in the specs. But that doesn't mean that all the IMAP specs and extensions are evil.  They are there for a reason. Why not use them? ;)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Sort by UID
« Reply #5 on: December 19, 2012, 04:22:14 am »
I never said extensions are evil.

Just saying that even the UIDPLUS turned out to be less common than I'd anticipated (and if there is one extension that is *the* most common one, that's the one... Except possibly SASL...).

I'm aware of the capabilities command.

Finally, sorting messages by date, in the app, is only a very small portion of time for displaying a message list. The Android view layout process takes much, much longer (we're talking numbers like 4ms vs. 150 ms). There is a reason message list items in Gmail don't use the Android layout system....


Отправлено с моего GT-N7100 через Tapatalk

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Sort by UID
« Reply #6 on: December 19, 2012, 04:35:39 am »
Finally, sorting messages by date, in the app, is only a very small portion of time for displaying a message list. The Android view layout process takes much, much longer

Fair enough.