1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00
Go to file
Daniel Applebaum e83a428107 Far more advanced poll scheduler. Now it remembers that finish time
of the last successful periodic mail and computes the next start time
as an offset from that successful finish.  The ramifications of this
new method is that changing polling interval on an account does not
force delaying all accounts to poll next in the future by the new
interval.  Instead, K-9 Mail now adjusts the next poll time based on
what the next poll time should be based on the last poll finish and
the new interval.  

Example 1: In the old way, if the old polling interval was 1 hour, and
the next poll was 50 minutes away (10 minutes have passed), and you
changed the interval to 15 minutes, the poll would happen 15 minutes
from now.  In the new way, the next poll will happen only 5 minutes
from now, which is 15 minutes since the last poll.

Example 2: In the old way, if the old polling interval was 1 hour, and
the next poll was 10 minutes away (50 minutes have passed), and you
changed the interval to 30 minutes, the poll would happen 30 minutes
from now.  The next poll would then happen actually 80 minutes after
the previous poll completed.  In the new way, it'll actually happen
immediately, because the time for the next poll, based on the new
schedule, has already passed.

Similar scenarios happen when a loss of network connectivity
occurs. In the old way, polling would resume using the restoration of
connectivity as the starting point.  Each time network connectivity
was lost and restored, the next poll would be further delayed.  *If
connectivity was lost and restored frequently, a poll might never
happen!* In the new way, the next poll is rescheduled based on the
time of the last successful poll, so will be rescheduled just like it
was before the loss of connectivity.  If the time has already been
passed, the poll will happen immediately.
2010-02-10 06:18:35 +00:00
assets Display 'Downloading...' instead of 'Loading...' when we are fetching a message from remote store 2009-09-17 17:40:05 +00:00
compile-only-libs Added back JAR Files that did not make it when the libs folder was renamed 2009-09-22 14:46:51 +00:00
docs Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
images added an .svg version of K-9_mail logo by Vincent Lum and removed an accidental bit of white background. 2009-11-26 17:28:52 +00:00
res Fixes issue 1199 2010-02-09 15:41:40 +00:00
src Far more advanced poll scheduler. Now it remembers that finish time 2010-02-10 06:18:35 +00:00
tools build tool update 2010-01-19 00:15:15 +00:00
.project Add eclipse build files. 2008-11-01 23:14:02 +00:00
Android.mk Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
AndroidManifest.xml 2.507 2010-02-06 16:58:44 +00:00
build.properties upgrade to "android 1.6, but still works on 1.5" 2009-11-14 20:28:28 +00:00
build.xml Reorganize remote control pieces. 2010-01-15 05:02:27 +00:00
default.properties Building in eclipse corrected a bug in default.properties 2009-11-19 06:04:05 +00:00
K9.iml Import of IntelliJ project config 2009-12-15 02:51:06 +00:00
MODULE_LICENSE_APACHE2 Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00
NOTICE Initial commit - This source code should be EXACTLY what the current version of the 'Email' application in the android repo looks like as of this date. 2008-10-28 01:04:44 +00:00