Author Topic: IMAP Push  (Read 8619 times)

BigLisy

  • Newbie
  • *
  • Posts: 36
IMAP Push
« on: March 04, 2014, 10:18:18 pm »
Hello. This app has two options about IMAP Push duration, "IMAP Push session duration" in the account settings, and "IMAP Push keep-alive" in the Network general settings.

What's the difference between the two? Mines are set to 1h and 10min respectively. Coming from K-9 I only had one option that was 24min duration.

What happens if I set the keep alive to "none"?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP Push
« Reply #1 on: March 09, 2014, 02:04:32 am »
The "session duration" corresponds to K9's "session duration".

This is how long a single server connection is allowed to bounce between IDLE (waiting for something to happen) and re-sync states (catch up on server side changes) before being closed, with the code subsequently establishing a new connection for a given folder.

The "keep-alive" is there to fight IMAP IDLE connections going "dead", and the app not receiving any change notifications. Connections can go dead in one of several ways, and they're outside the app.

So what the keep-alive does is periodically "pings" the server to make sure the connection is still alive; this also can prevent connections from going dead.

K9 does not do this (ignoring the problem, or maybe they are just not aware of it).

The danger of turning off the keep-alives is that if the app's push connections do go "dead", you won't be getting any mail / state pushed, until the app does a full refresh at the end of its "session duration" connection refresh.

Gmail and Dovecot are typically not affected by this, as they implement their own, server side, keep-alives. Other mail servers (Courier, Cyrus, you name it) can very well be.
« Last Edit: March 09, 2014, 02:06:03 am by Kostya Vasilyev, Aqua Mail »
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/

BigLisy

  • Newbie
  • *
  • Posts: 36
Re: IMAP Push
« Reply #2 on: March 09, 2014, 05:26:22 pm »
Thanks for the exhaustive clarification!

For an optimal battery consumption, would it be better to set a lower or higher keep alive interval? My last doubt :D

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP Push
« Reply #3 on: March 14, 2014, 09:38:00 pm »
Just leave it at the default, 10 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/