Author Topic: How to control how often sync is done  (Read 9885 times)

bkj

  • Newbie
  • *
  • Posts: 4
How to control how often sync is done
« on: April 11, 2013, 07:50:23 pm »
Hi

Thanks for a great app. I have this problem:
1. I receive a mail on my gmail account and on my android 4.0.1, newest  version of Aqua-Mail
2. I open the mail via my pc
3. It takes very long time before it is marked as read in Aqua-Mail

I have tried the same with Kaiten mail, and is is marked as read rather quickly in Kaiten.

How come it takes so long time, before it is marked as read i Aqua-Mail ?

Automatic synchronizing is active under system settings in android

Thanks

jcasares

  • Full Member
  • ***
  • Posts: 245
Re: How to control how often sync is done
« Reply #1 on: April 13, 2013, 02:39:18 am »
Did you enabled IMAP push and set it for the inbox?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to control how often sync is done
« Reply #2 on: April 14, 2013, 03:33:19 am »
Checking push is a good question, without it, it will take up to 15 minutes (default sync frequency) for the app to sync mail again and update the flags.

I should also mention Gmail's IMAP Push implementation is incomplete, it does not send flags changes (and since 2007, Google has no plans to fix it), so may take something like 5 minutes to update.
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/

bkj

  • Newbie
  • *
  • Posts: 4
Re: How to control how often sync is done
« Reply #3 on: April 14, 2013, 06:13:51 pm »
I have had IMAP push enabled all the time.

If I touch the sync button lower left, the the mail I mentioned is marked as read.

I have made a test:
I send a mail to myself on my pc via Gmail at 16:50.
I opened it right away on my pc.
AquaMail states that the last sync was made at 17:15, but the mail still isn't marked as read in AquaMail (Kaiten Mail marked the mail as read at 16:52)

It seems to me, that there is a bug in the sync mechanism in AquaMail.

At 17:20 the mail still isn't  marked as read in AquaMail. I touched the sync button lower left, and then the mail is marked as read.
« Last Edit: April 14, 2013, 10:14:55 pm by bkj »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to control how often sync is done
« Reply #4 on: April 16, 2013, 02:57:32 am »
So I wanted to check it out... could not figure out how to enable IMAP IDLE in Kaiten, any pointers?

And some questions: what type of network was the device on (WiFi vs. mobile), your device's Android version, and was Kaiten set to also check mail on a schedule?
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: How to control how often sync is done
« Reply #5 on: April 16, 2013, 03:07:00 am »
Ok, scratch my IMAP IDLE Kaiten question, seems it's enabled by default.

Ran my own test. Sent a few test messages to a gmail.com account, all were received as unread in Gmail, AquaMail, Kaiten.

Waited a bit, set them "read" in Gmail web mail... waited for Kaiten to update, it did not... not even after its own scheduled mail check (the countdown to next mail check in the title bar).

What am I doing wrong, how can I see Kaiten updating "unread" message flags for Gmail?

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/

bkj

  • Newbie
  • *
  • Posts: 4
Re: How to control how often sync is done
« Reply #6 on: April 16, 2013, 10:03:47 pm »
Hi

My device was on mobile net. I am running android 4.0.3.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to control how often sync is done
« Reply #7 on: April 18, 2013, 02:09:42 am »
There is an occasional issue with PUSH connections getting "stuck" it depends on the device, its connection, and the actual network between the device and Google's servers.

In addition, there are compatibility issues between recent Android versions and some WiFi access points (which Google admitted to... although I see it does not apply in your case).

I work on this as I get more data, but it's difficult without seeing the actual "out in the field" scenarios.

Can you opening my app's settings, then Network, and changing the "push mail keep-alive"  from 10 minutes to None.. then open the account's Options and Folders, and under IMAP / other, change "IMAP Push session duration" from One hour to 30 minutes...

The reboot the device. Now message flags (incl. read/unread state) should update within about five minutes.
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/

bkj

  • Newbie
  • *
  • Posts: 4
Re: How to control how often sync is done
« Reply #8 on: April 18, 2013, 11:52:51 am »
Hi Kostya

I have testet your suggestion.

After about 15 minutes the mail was marked as read on my device.
So it is faster than before :-)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to control how often sync is done
« Reply #9 on: April 26, 2013, 03:17:30 am »
I still can't get Kaiten to update message flags for my Gmail account and I've waited for hours :)

There may be some network specific issues at play here, not that anything's wrong, just that different networks are different and keeping a long running network connection can be somewhat unpredictable.

Still, I'd be happy to investigate if you recorded a debug log, as described on the support page.

Would need the log to capture getting some new messages over push, and you marking them read in web mail or another app.
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/