Author Topic: sorting by date problem  (Read 12930 times)

riccardop89

  • Newbie
  • *
  • Posts: 6
sorting by date problem
« on: May 03, 2013, 09:38:20 pm »
When emails are sorted by date, they are sorted by "date sent by the sender" and not by "date received into aquamail inbox".  If for some reason there is either (a) a delay between the date the email was sent and the date the email was received or (b) the sender's computer date is incorrect, then the email may not appear on the top of the list when it arrives in the inbox. emails should be sorted by date received into aquamail inbox.

jcasares

  • Full Member
  • ***
  • Posts: 245
Re: sorting by date problem
« Reply #1 on: May 06, 2013, 02:43:04 am »
emails should be sorted by date received into aquamail inbox.
That's your take but I prefer to sort by time of sent and a lot of people do. There should be two options instead of replacing one for the other.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: sorting by date problem
« Reply #2 on: May 06, 2013, 03:35:57 am »
Yes, it should be an option, I agree with that.

In general, there are two ways to do it, if you look at popular mail apps (e.g. Thunderbird shows date from the header).

Now, in no way arguing that "sort by date received" is needed... Let's see, we've got "smart" phones with built-in clocks, GPS time sync, cell network time sync... and people still can't set their date / time right? :)
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/

riccardop89

  • Newbie
  • *
  • Posts: 6
Re: sorting by date problem
« Reply #3 on: June 05, 2013, 09:15:36 am »
You're right - and it's always the same people who haven't figured out how to fix their computer date!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: sorting by date problem
« Reply #4 on: July 08, 2013, 01:53:36 am »
Geeez, forget smartphones, sometimes my microwave's clock is 12:00 and blinking, how do I stop that? :)
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/

JackyJack

  • Newbie
  • *
  • Posts: 4
Re: sorting by date problem
« Reply #5 on: July 09, 2013, 01:36:07 pm »
I have a similar problem, yesterday evening I received an email around 23:00 CET, so it was the latest mail everithing was okay.
But this morning I received 3 mails and they all sorted before the mail from yesterday, I saw an option to generate log from your app so here is the interesting part :

Quote
;Message date test for imap.free.fr
;Started: Tue Jul 09 10:54:02 UTC+02:00 2013
;Total count: 74
;Folder name: INBOX
-----N 74
UID: 8522
IDL: 09-Jul-2013 09:54:22 +0200
IDV: 1373356462000
IDP: 09-07-2013 09:54:22.000 +0200
IDA: 09:54
HDL: Tue, 9 Jul 2013 07:54:14 +0000
HDV: 1373356454000
HDP: 09-07-2013 09:54:14.000 +0200
HDA: 09:54
Flags: \Seen
-----N 73
UID: 8520
IDL: 09-Jul-2013 04:29:27 +0200
IDV: 1373336967000
IDP: 09-07-2013 04:29:27.000 +0200
IDA: 04:29
HDL: Tue, 9 Jul 2013 04:28:56 +0200
HDV: 1373336936000
HDP: 09-07-2013 04:28:56.000 +0200
HDA: 04:28
Flags: \Seen
-----N 72
UID: 8519
IDL: 09-Jul-2013 04:26:36 +0200
IDV: 1373336796000
IDP: 09-07-2013 04:26:36.000 +0200
IDA: 04:26
HDL: Tue, 9 Jul 2013 04:26:03 +0200
HDV: 1373336763000
HDP: 09-07-2013 04:26:03.000 +0200
HDA: 04:26
Flags: \Seen
-----N 71
UID: 8518
IDL: 08-Jul-2013 22:57:54 +0200
IDV: 1373317074000
IDP: 08-07-2013 22:57:54.000 +0200
IDA: 22:57
HDL: Tue, 9 Jul 2013 22:57:46 +0200
HDV: 1373403466000
HDP: 09-07-2013 22:57:46.000 +0200
HDA: 22:57
Flags: \Seen
-----N 70
UID: 8517
IDL: 08-Jul-2013 21:06:18 +0200
IDV: 1373310378000
IDP: 08-07-2013 21:06:18.000 +0200
IDA: 21:06
HDL: Mon, 8 Jul 2013 11:38:23 +0200
HDV: 1373276303000
HDP: 08-07-2013 11:38:23.000 +0200
HDA: 11:38
Flags: \Seen

See the mail 71, it has been received on 08-07-2013 22:57:54.000 +0200 but for some reasons it's displayed as 09-07-2013 22:57:46.000 +0200.
The other mails are okay.

My phone is on time, I guess my IMAP server is also on time, I don't know about the sender phone (mail sent by phone), but actually this shouldn't be a problem as the server date has to be the field used to order the mails.

What are the meanings for IDL, IDP, HDL, HDP ?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: sorting by date problem
« Reply #6 on: July 14, 2013, 03:03:08 am »
IDL is when the message was stored by the IMAP server (Internal Date, L - "literal value", before parsing).

HDL is the value in the From header.

So whoever sent you this message is living in the future, exactly 24 hours ahead of the rest of us.

Oh, and it's *exactly* 24 hours, the message took 8 seconds to gets from his device to your account on the mail server.
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/

JackyJack

  • Newbie
  • *
  • Posts: 4
Re: sorting by date problem
« Reply #7 on: July 15, 2013, 01:18:36 pm »
I understand, but don't ou think the display date should be the imap server date ?
In that case, whatever you sender's device is in time or not, the mails are still correctly sorted in your inbox.

Actually, if I look in my webmail server, the mail is sorted according to the "received" field so no confusion can happen.

jcasares

  • Full Member
  • ***
  • Posts: 245
Re: sorting by date problem
« Reply #8 on: July 15, 2013, 04:42:08 pm »
But then you can't see if your mail server is delaying the messages.
In any case, both ways are valid and some people like one and some the other.
So, changing one for the other isn't an option IMO.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: sorting by date problem
« Reply #9 on: July 20, 2013, 02:01:10 am »
I did it the way Thunderbird does it, and believe it to be a valid take (after all, could Thunderbird developers be *that* wrong?)

Do know that Gmail / web and Outlook do it the other way. Would like to provide an option, but have been busy with all the other stuff :)

I still find it really funny that we have *smart* phones with GPS, super-powerful computers, distributed network time sync protocols with millisecond precision and yet.... Guess it's the same way with microwave clocks (is it so hard to put a backup battery there?)
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/

JackyJack

  • Newbie
  • *
  • Posts: 4
Re: sorting by date problem
« Reply #10 on: July 24, 2013, 03:09:52 pm »
I am not in a hurry, I'm just glad to know you are working on it and that there will be an option to choose between Internal Date and Header Date for sorting mail :D

It does not happen often, but if someone who have a very old date on his computer sends you a mail then you can miss it...

beaky

  • Full Member
  • ***
  • Posts: 169
Re: sorting by date problem
« Reply #11 on: July 24, 2013, 04:58:35 pm »
I did it the way Thunderbird does it, and believe it to be a valid take (after all, could Thunderbird developers be *that* wrong?)

Do know that Gmail / web and Outlook do it the other way. Would like to provide an option, but have been busy with all the other stuff :)

I still find it really funny that we have *smart* phones with GPS, super-powerful computers, distributed network time sync protocols with millisecond precision and yet.... Guess it's the same way with microwave clocks (is it so hard to put a backup battery there?)
I use Thunderbird on my main PC, and choose to display both dates (clearly only feasible if you have the screen real-estate for it). You can sort by either with one click on the column header. I find it is very common for emails to be in limbo for minutes, hours or days, and though I normally sort by the sent date, I occasionally switch to the received date. Sorting by the sent date gives a better idea of sequence of emails ( unless the sending computer has the wrong clock or timezone, as posted by someone earlier). I think sorting by either would be a valued improvement. My priority though would be for:
a conversation mode;
Add sender and all recipients of an incoming email to the people app or just the sender;
Sort by either date. Possibly show both on tablets. Chosen one in full, other may be partially eclipsed or hidden.

I appreciate that without a contacts function inside the app, you have less control over creation of groups etc. But I do also miss that. Absent the ability to create and manage groups, how about creating a NEW email to all (like reply all, but creating an empty Draft that will not sort into the conversation it came from). This would go some way to patching the absence of groups. In Thunderbird, if you reply all, then change the subject, it still sorts with the original convo, which is correct if the topic is drifting, but my suggestion is for creating a new topic to the same set of people.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: sorting by date problem
« Reply #12 on: July 25, 2013, 02:38:16 am »
Ok, I've used Thunderbird for a few years, and never knew it had "sort by internal date" :) Thanks.

As for groups - I'm not sure if you mean conversation mode or contact groups?

Conversation mode is, unfortunately, a ways off.

As for contact groups, yes, Android's Contact picker can't be used to pick a group, so AquaMail has its own Menu / Insert group when composing a message. This menu item only shows when the cursor is in one of the recipient entry fields.

Finally, AquaMail sets "In-reply-to" and "References" in outgoing messages, so that should help with threading, albeit not in this app itself :(
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/