Author Topic: Cosmetic problem displaying time of sync.  (Read 6117 times)

beaky

  • Full Member
  • ***
  • Posts: 169
Cosmetic problem displaying time of sync.
« on: August 10, 2014, 05:04:36 pm »
I have always found the time message next to the account name very useful. It usually answers the question "is my local email up to date". It is red if there has been a failure to sync, say because of poor or no connection, black otherwise. (Not sure if the red figure is the last successful sync or the first failed one - I suspect it is the former).
I see a cosmetic problem if the tablet has been turned right off (not just sleeping) for a while. When turned on again, initially it displays in black the time of the last sync, maybe several hours ago, just as expected.
But: If I tap the " refresh all", then all my accounts are refreshed, and new messages appear. The time does NOT change at this point. A cosmetic problem as it is clear the mailboxes have been refreshed at this time.
 If I manually refresh again, usually no more new messages arrive, but the time is also updated, as expected. I have not checked positively, but I believe it updates also when the app triggers an update by itself, but if this is the first such update since powering up, the time does not change till next time around.
I have one account set to push, the others not set to push. All IMAP, and my version number is 1.4.0.53. Device is google nexus 10, android 4.4.4, kernel 3.4.39.gd52af31, build KTU84P.

It is cosmetic only, as it corrects itself within fifteen minutes, or after a second manual refresh, and seems not to affect function otherwise.

Thanks for this app - keep up the good work!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cosmetic problem displaying time of sync.
« Reply #1 on: August 10, 2014, 11:28:39 pm »
I've been keeping all three of my tablets switched off most of the time, so should be easy to check. Thanks.
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/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cosmetic problem displaying time of sync.
« Reply #2 on: August 11, 2014, 01:47:56 am »
Hmm. I was not able to reproduce this.

Maybe you could try this build and see if it helps?

http://www.aqua-mail.com/download/AquaMail-market-1.4.1-58-beta7.3.1.apk

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/

beaky

  • Full Member
  • ***
  • Posts: 169
Re: Cosmetic problem displaying time of sync.
« Reply #3 on: August 15, 2014, 05:07:34 pm »
Hmm. I was not able to reproduce this.

Maybe you could try this build and see if it helps?

http://www.aqua-mail.com/download/AquaMail-market-1.4.1-58-beta7.3.1.apk
Still exactly the same.
Further information, I have my refresh offset by 3 minutes and it is refreshing every 15, so is at 03, 18, 33, 48 mins past each hour. I am sure this will not matter, but who knows? Data is data!
I also recently observed this error when the tablet had been out of reach of WiFi for a long time, but sleeping (this is with the version I had -  I haven't checked this beta in this respect). I had not seen this before, as i am rarely out of reach of WiFi. In this respect my original description was incomplete.
My settings (some of them):

beaky

  • Full Member
  • ***
  • Posts: 169
Re: Cosmetic problem displaying time of sync.
« Reply #4 on: August 16, 2014, 03:47:46 pm »
I think I have spotted something that could have a related effect, but should not explain the whole problem.
I had not checked "when the app is active".
As a result, scheduled sync does not happen if aquamail is open and on screen.
This may account for some of the times when the last sync time is older than 15 mins.
I have now changed this to "checked".
I wonder if checking this option has any side effects (other than suddenly shifting the message list down screen while you are looking at it)?
It remains to be seen if this has side effects that could account for the problem I described initially, which involved the first "manual" sync not updating the time when syncing, after a period switched off.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cosmetic problem displaying time of sync.
« Reply #5 on: August 17, 2014, 02:13:08 am »
"Check when app is active" affects whether the app checks mail when its UI is open on the screen.

An account's sync time will only be updated after a "whole account" mail sync (as opposed to a "just one folder" sync).

Since you mentioned getting new messages after booting up the tablet -- do you use push mail by any chance?

Push mail will start up and fetch new messages, but since push mail is folder-oriented, not account-oriented, it won't affect the account's "last sync time".
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/

beaky

  • Full Member
  • ***
  • Posts: 169
Re: Cosmetic problem displaying time of sync.
« Reply #6 on: August 18, 2014, 01:11:59 pm »
"Check when app is active" affects whether the app checks mail when its UI is open on the screen.

An account's sync time will only be updated after a "whole account" mail sync (as opposed to a "just one folder" sync).

Since you mentioned getting new messages after booting up the tablet -- do you use push mail by any chance?

Push mail will start up and fetch new messages, but since push mail is folder-oriented, not account-oriented, it won't affect the account's "last sync time".
All that you have said almost explains it, and yes, I am using push on one account. However, does this account for the first "manual" 'update all' after switching on also failing to update time? Does that not do a full account update?
Am I right in supposing that push can come at times other than the 15 minute sync time? On my tablet, the push update is denoted by a blue icon, and the time details on that are almost always matching the 15 minute sync (in my case 03, 18, 33, 48) as I write this at 10.10, the latest one says 10.03, the same as the figure on all three accounts.

beaky

  • Full Member
  • ***
  • Posts: 169
Re: Cosmetic problem displaying time of sync.
« Reply #7 on: August 18, 2014, 08:17:39 pm »
Further detail:
Just arrived home at about 17.00.
On regaining a signal,  a message appears in top of screen with white icon and the message says "nnnnn messages blahblah" and if you pull down to view its time it says 17.01. After viewing, the notification disappears and viewing the email still showed 11.03 on all accounts
Now that I have been typing this for a while, the blue (push) icon is timed at 17.03.
The time is now also 17.03 on all accounts.
This seems to be consistent w with your description of the behaviour with push, but unfortunately I did not look at the blue (push) notification icon in time to see if that was also 17.01 initially.
Can I ask, is the blue on black notification solely for push, and the blue on white (what I called "white" above) solely for regular sync, or where can I find what it is?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Cosmetic problem displaying time of sync.
« Reply #8 on: August 20, 2014, 01:49:53 am »
Status bar notifications for push and regular mail checks are the same -- a blue "@" sign in the status bar (unless you've changed its color), and the expanded notification saying "Push mail: .." or "Starting push mail" or "Synchronizing with ...".

Push mail is not driven by wall clock or any other schedule -- it starts up automatically when the device gets a network connection (or is turned on).
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/

beaky

  • Full Member
  • ***
  • Posts: 169
Re: Cosmetic problem displaying time of sync.
« Reply #9 on: August 20, 2014, 03:21:16 am »
Status bar notifications for push and regular mail checks are the same -- a blue "@" sign in the status bar (unless you've changed its color), and the expanded notification saying "Push mail: .." or "Starting push mail" or "Synchronizing with ...".

Push mail is not driven by wall clock or any other schedule -- it starts up automatically when the device gets a network connection (or is turned on).
Thanks. As I said in the first post, if there is any issue it is cosmetic. Happy to leave it.