Commit Graph

8683 Commits

Author SHA1 Message Date
Martin Hibdon
d7384918e7 Merge "Fix a couple of bugs in imap synching" into jb-ub-mail-ur10 2013-08-05 19:30:38 +00:00
Martin Hibdon
fda9d945e7 Fix a couple of bugs in imap synching
b/10111339
b/10125810
The first problem was that the imap BEFORE clause
is exclusive, so messages on the date given in
BEFORE will not be sent. Now, on the sync for the
most recent messages, we will just not specify a
BEFORE clause, so we can always get the most recent
messages even if our clock drifts from the server.

The second is that some imap servers do not accept
time information on the query dates, and that causes
errors. The imap spec defines the BEFORE and SINCE
clauses to come with a <date> only, not a time,
and although it seems that at least some imap servers
handle that, it can't be expected to always work.

Change-Id: Ibf41c6f7600b9f9537bc6d13b59873ee36798e1e
2013-08-05 12:27:13 -07:00
Yu Ping Hu
6699915518 am aae03066: Increment Email version.
* commit 'aae03066f1784e38bee0c5d5bd210eb15ee7e6d9':
  Increment Email version.
2013-08-02 17:40:53 -07:00
Yu Ping Hu
aae03066f1 Increment Email version.
Change-Id: I3883e807da8ec7b03406610ba72eafac0f0d9a78
2013-08-02 17:08:39 -07:00
Yu Ping Hu
ad90718874 am 6602918f: Add checks for whether a mailbox is syncable.
* commit '6602918f964bfec0c19fa975a2ff7f2ab68503ad':
  Add checks for whether a mailbox is syncable.
2013-08-02 14:03:40 -07:00
Yu Ping Hu
6602918f96 Add checks for whether a mailbox is syncable.
These will be used in Exchange and eventually in IMAP.

Change-Id: If04c78556a1e52f1daa18bc3be0dc3def3c48957
2013-08-02 13:47:53 -07:00
Yu Ping Hu
a8d3e095c0 am a1329ba1: Merge "Report message count for folders where total count < 0." into jb-ub-mail-ur10
* commit 'a1329ba1d7c909a0fad364f1a9254f4b771a19eb':
  Report message count for folders where total count < 0.
2013-08-02 12:44:03 -07:00
Yu Ping Hu
a1329ba1d7 Merge "Report message count for folders where total count < 0." into jb-ub-mail-ur10 2013-08-02 19:42:03 +00:00
Yu Ping Hu
bcd81d96a4 Report message count for folders where total count < 0.
Local-only folders will set total count = -1 to signify that
they should never sync with server.

Change-Id: I6034633e453343f14faac077902e67ea4e6b0a35
2013-08-02 12:23:19 -07:00
Scott Kennedy
c9cd113c34 am 26f741fb: Remove some warnings
* commit '26f741fbafad7c7159b56f2063d6bf5859109c6c':
  Remove some warnings
2013-08-02 08:49:42 -07:00
Scott Kennedy
26f741fbaf Remove some warnings
Change-Id: Ifc855a6c8623bd980807064477635c19b8ed81e0
2013-08-01 22:14:01 -07:00
Yu Ping Hu
a8a053c044 am 43181198: Merge "Move required system folder types to Mailbox." into jb-ub-mail-ur10
* commit '431811986ff0637826e3937522a9da3fe3561b3a':
  Move required system folder types to Mailbox.
2013-08-01 18:20:57 -07:00
Yu Ping Hu
431811986f Merge "Move required system folder types to Mailbox." into jb-ub-mail-ur10 2013-08-02 01:18:34 +00:00
Martin Hibdon
41952a330c am ef576c8e: Merge "Update pop3 syncing" into jb-ub-mail-ur10
* commit 'ef576c8e6cedc2789ae751f3fe5d39c8002106c4':
  Update pop3 syncing
2013-08-01 17:46:36 -07:00
Martin Hibdon
ef576c8e6c Merge "Update pop3 syncing" into jb-ub-mail-ur10 2013-08-02 00:44:39 +00:00
Martin Hibdon
b177af7534 Update pop3 syncing
b/9857766
If we currently have zero messages (i.e. initial sync of
a new account) we will load the most recent 100 messages.
On subsequent syncs, we will load more recent messages
until either:
1. We have loaded 100 and not yet past any of the messages
we already had locally, or
2. We encounter messages that we already had locally, and
then load "deltaMessageCount" additional messages past
the ones we have locally.

Change-Id: I8b34409dcdaceff2d2e1906174241a74f2331688
2013-08-01 16:25:26 -07:00
Yu Ping Hu
eb4ee8a7aa Move required system folder types to Mailbox.
I'm formalizing the concept of folders that must exist,
and the list of such folders should be accessible to all
sync adapters.

Change-Id: I9e4d2d51aa495d211eab2d1e36c3fa197a1ac00d
2013-08-01 16:19:28 -07:00
Yu Ping Hu
ce9dca8fc5 am e37acba2: Remove "Previous" button from account type tablet layout.
* commit 'e37acba25997e931f696e5d0e1b55c6946eb5943':
  Remove "Previous" button from account type tablet layout.
2013-08-01 12:06:17 -07:00
Yu Ping Hu
e37acba259 Remove "Previous" button from account type tablet layout.
Bug: 10128853
Change-Id: I1bdd38ed960bae9471288b9ec1e48eebcbda1d77
2013-08-01 11:54:38 -07:00
Yu Ping Hu
ee1b97d2cf am a5355442: Merge "Improve message counting, ah ah ah!" into jb-ub-mail-ur10
* commit 'a5355442a0a198739c60c11a0d2fc44928218e0b':
  Improve message counting, ah ah ah!
2013-08-01 10:32:08 -07:00
Yu Ping Hu
a5355442a0 Merge "Improve message counting, ah ah ah!" into jb-ub-mail-ur10 2013-08-01 17:30:12 +00:00
Scott Kennedy
a7fc43c5e7 am 41d5342d: Merge "Refactor PreferenceMigrator" into jb-ub-mail-ur10
* commit '41d5342d986b12c9590548814382bed2ccab6253':
  Refactor PreferenceMigrator
2013-08-01 10:05:39 -07:00
Scott Kennedy
41d5342d98 Merge "Refactor PreferenceMigrator" into jb-ub-mail-ur10 2013-08-01 17:03:46 +00:00
Scott Kennedy
de855fdedd am 063fb171: Merge "Remove some warnings" into jb-ub-mail-ur10
* commit '063fb171f5356dcd742453bdc3522171a7dc5d2b':
  Remove some warnings
2013-08-01 09:49:17 -07:00
Scott Kennedy
063fb171f5 Merge "Remove some warnings" into jb-ub-mail-ur10 2013-08-01 16:47:01 +00:00
Scott Kennedy
d696b0b1ff am 9a0382bb: Remove more warnings
* commit '9a0382bb46fffab5e0fd35f1c06b3fb5330af55b':
  Remove more warnings
2013-08-01 09:40:03 -07:00
Scott Kennedy
9a0382bb46 Remove more warnings
Change-Id: I0b7475a3569a05c90aa1ab6540c875326da96768
2013-08-01 08:55:38 -07:00
Scott Kennedy
9e521deb6b Remove some warnings
Change-Id: Ie5adc71af6b6cec316c5186ac0566c02a4fc1bff
2013-08-01 08:47:51 -07:00
Scott Kennedy
60a9b7ecfb Refactor PreferenceMigrator
Do the same thing as with LogTag, so that we don't have the same
class name in the same package name in three projects.

This makes IDE builds much easier.

Change-Id: I6c9235ab231e1c04ba87c5da627094c7258a5edf
2013-07-31 22:40:08 -07:00
Yu Ping Hu
495e710737 am c543c4f0: Increment Email version.
* commit 'c543c4f04d35560c4479da0a9ecc146c09358e24':
  Increment Email version.
2013-07-31 17:55:06 -07:00
Yu Ping Hu
c543c4f04d Increment Email version.
Change-Id: Iba18b0d977f2b9bfa31150e967ca48c6510c4453
2013-07-31 17:37:58 -07:00
Yu Ping Hu
5ff368b845 Improve message counting, ah ah ah!
- Restore message_count in the database.
- For UI queries on outbox, trash, and drafts,
  use message count instead of total count.

Note this won't be the right thing to do when we properly
sync trash & drafts, but we'll address that when those syncs
are fixed.

Bug: 10098601
Bug: 10113686
Change-Id: I647c74396ee12ed981d89bfb654cc6d0a25cac95
2013-07-31 14:27:01 -07:00
Yu Ping Hu
4e87c8628b am ef0d9815: Fix settings menus.
* commit 'ef0d98155c95b22f7d8516eaaa8113e12bb7cbba':
  Fix settings menus.
2013-07-30 20:07:07 -07:00
Yu Ping Hu
ef0d98155c Fix settings menus.
- Account & general fragments need to clear to remove
  "Add account" for phone & 7".
- 10" needs to therefore specify their menus in order to
  have "Add account".

Bug: 10097087
Change-Id: I133db9b9f7f6610ae30b46927ffcb8a9e4df4c0a
2013-07-30 18:51:01 -07:00
Yu Ping Hu
7ddb6c260d am 82e2830a: Rename folder shortcut widget.
* commit '82e2830a7fad7a4bbfc99f1ea59034f0b2808033':
  Rename folder shortcut widget.
2013-07-30 17:11:17 -07:00
Yu Ping Hu
82e2830a7f Rename folder shortcut widget.
Bug: 10094801
Change-Id: Ic710b8488518e37073fff44b730c0d26404db17c
2013-07-30 16:25:52 -07:00
Yu Ping Hu
803a8a457c am e95b9bb3: Merge "Delete most of IEmailServiceCallback." into jb-ub-mail-ur10
* commit 'e95b9bb3e4b2f9eeaf47eceb550df79599efc41c':
  Delete most of IEmailServiceCallback.
2013-07-29 20:24:23 -07:00
Yu Ping Hu
e95b9bb3e4 Merge "Delete most of IEmailServiceCallback." into jb-ub-mail-ur10 2013-07-30 03:21:10 +00:00
Yu Ping Hu
2075c97f60 Delete most of IEmailServiceCallback.
The old callback mechanism is deprecated, in favor of making
calls on the ContentProvider.

Bug: 9842867

Change-Id: I65f559e593cda24456c4ffb96f785e054626dd0b
2013-07-29 20:04:42 -07:00
Paul Westbrook
009f5a2f4c am 6dd7bd29: Load large POP attachments
* commit '6dd7bd29e97e7190b01bf6325d131f24c097b560':
  Load large POP attachments
2013-07-29 19:17:57 -07:00
Paul Westbrook
6dd7bd29e9 Load large POP attachments
Load large attachments from a partial POP message

There will be a new change that improves the UI for loading
the rest of the message

Bug: 8651782
Change-Id: I075de1e82e27cf2018607eef50143850e8fecaf2
2013-07-29 18:58:37 -07:00
Paul Westbrook
9a6e8c2e24 am c362f66e: Merge "Stop crashing with POP attachments" into jb-ub-mail-ur10
* commit 'c362f66ee1d47b2bb84170d5e2fc15a550753761':
  Stop crashing with POP attachments
2013-07-29 11:33:40 -07:00
Tony Mantler
eaedb875d3 am 6cf15e66: Re-add the demon "Add New Account"
* commit '6cf15e66bc46d211882fe903ec55fe748fc87bfc':
  Re-add the demon "Add New Account"
2013-07-29 11:30:26 -07:00
Paul Westbrook
c362f66ee1 Merge "Stop crashing with POP attachments" into jb-ub-mail-ur10 2013-07-29 18:30:03 +00:00
Paul Westbrook
8fe7811241 Stop crashing with POP attachments
This is the first part of the change to fix POP attachments.
A following change will handle these partial messages better

Bug: 8651782

Change-Id: I8d00866207dedf63805e0eecab9555c28104f2dc
2013-07-29 11:21:22 -07:00
Tony Mantler
6cf15e66bc Re-add the demon "Add New Account"
b/10041669

Change-Id: I2b1db0a063ec292b33ec8f176b739c1c4422a040
2013-07-29 11:19:23 -07:00
Yu Ping Hu
7bbb2df282 am 8fded8b7: Merge "Remove IMAP2 from manifest." into jb-ub-mail-ur10
* commit '8fded8b7f137c117bbfdb2dbc1849e0429530590':
  Remove IMAP2 from manifest.
2013-07-26 18:24:55 -07:00
Yu Ping Hu
2cbefb37f1 am 48b14fde: Fix all periodic syncs on upgrade.
* commit '48b14fde961ef57103f7a31196254e357987f203':
  Fix all periodic syncs on upgrade.
2013-07-26 18:24:55 -07:00
Yu Ping Hu
8fded8b7f1 Merge "Remove IMAP2 from manifest." into jb-ub-mail-ur10 2013-07-27 01:22:52 +00:00
Yu Ping Hu
8698042c7f Remove IMAP2 from manifest.
Change-Id: Ib702d570f7c9f5f00ae72bfb39e75348baa871ad
2013-07-26 18:19:57 -07:00