Commit Graph

8254 Commits

Author SHA1 Message Date
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
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
82e2830a7f Rename folder shortcut widget.
Bug: 10094801
Change-Id: Ic710b8488518e37073fff44b730c0d26404db17c
2013-07-30 16:25:52 -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
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
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
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
Yu Ping Hu
48b14fde96 Fix all periodic syncs on upgrade.
Bug: 9844218

Change-Id: Ibacb309752b076faa3f96b5ad57dc121efd79bcb
2013-07-26 18:19:01 -07:00
Yu Ping Hu
02f0b1eee8 Remove MailService.
Change-Id: Ibffd0c9fb0eed4822dff28d1577fb455736cffd1
2013-07-26 17:38:07 -07:00
Yu Ping Hu
30b28286aa Merge "Cleanup service loading." into jb-ub-mail-ur10 2013-07-26 23:38:44 +00:00
Yu Ping Hu
47bcb5a21a Cleanup service loading.
Authenticator upgrading no longer uses the services file
to specify upgrades, so we can remove the fields associated
with that functionality.

Change-Id: I2122f18614d714a3d5a565fb4a6a547ddc010b6f
2013-07-26 16:23:27 -07:00
Yu Ping Hu
afe097f318 Simplify account reconciliation.
- Rather than handle by type, do them all at once.
- Simplify when reconciliation happens.

Bug: 9056861

Change-Id: If264678c82c63090246ef8ff857c8e46f6672c85
2013-07-26 16:06:14 -07:00
Baligh Uddin
3d2f8b4be8 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur10 2013-07-25 02:53:09 +00:00
Martin Hibdon
e821797f27 Merge "Update IMAP sync method" into jb-ub-mail-ur10 2013-07-25 01:08:40 +00:00
Martin Hibdon
2503179606 Update IMAP sync method
Now it syncs using a date range query.

Change-Id: Ia520fbbe39521b1356acaf0fe764f9bdcc1aeb82
2013-07-24 17:57:07 -07:00
Yu Ping Hu
d4ec3272cf Increment Email version.
Change-Id: I2870eaf3e6a1c2266ed0ef5bfbde5fe4c47c00fa
2013-07-24 16:18:28 -07:00
Yu Ping Hu
57b93d2bbe Merge "Fix DB upgrade code to set lookback correctly." into jb-ub-mail-ur10 2013-07-24 23:17:21 +00:00
Yu Ping Hu
b3cb475fd2 Fix DB upgrade code to set lookback correctly.
Rather than use null, just force the valid default value.
Also rename SYNC_WINDOW_UNKNOWN to SYNC_WINDOW_ACCOUNT to
better reflect how it's actually used.

Bug: 9989995
Change-Id: I8d0b466fe3bc2e4c651c309d4815cea201058d22
2013-07-24 16:07:33 -07:00
Baligh Uddin
dccbd70e5e Import translations. DO NOT MERGE
Change-Id: I4d6382461bfc35908924b84cee5915e4cac2d7f6
Auto-generated-cl: translation import
2013-07-24 13:10:01 -07:00
Tony Mantler
83bee478f3 Enable Bidi
b/7221227

Change-Id: I9417a833a2f1ebf6292dbf1b434e9504fe25184b
2013-07-23 16:16:16 -07:00
Yu Ping Hu
1c3ec5f6c0 Merge "Move authenticator upgrade to app upgrade time." into jb-ub-mail-ur10 2013-07-23 01:16:50 +00:00
Yu Ping Hu
462da178b1 Move authenticator upgrade to app upgrade time.
This used to run when the app first initializes the service map.

Bug: 9391930
Bug: 9971936
Change-Id: Iebaeb2dc94ef62edb0be0a7d5a008a26c4f5edfb
2013-07-22 17:33:57 -07:00
Tony Mantler
a48929fac4 Purge the demon "Add New Account"
b/9857109 b/9685360

Change-Id: If5c3d6ea4b59cacf8196cdda67fbaeb6e2afa03e
2013-07-22 13:48:53 -07:00
Yu Ping Hu
64ca2a4529 Merge "Change deleteAccountPIMData to take emailAddress, not id." into jb-ub-mail-ur10 2013-07-20 19:41:57 +00:00
Yu Ping Hu
9a1f00bee4 Change deleteAccountPIMData to take emailAddress, not id.
By the time the remote call actually runs, the account
may be deleted from the DB, so the account id is likely
useless.

Bug: 9021105
Change-Id: If28b4b8c4b5c52be35c6ff68b326c4ea28d7f7b4
2013-07-19 18:42:43 -07:00
Baligh Uddin
d6849b36b0 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur10 2013-07-19 22:22:14 +00:00
Yu Ping Hu
0a68a255c5 Delete unused projection.
My previous CL was a lie. Turns out I don't need this at all.

Change-Id: I090efbd19f10f0fa58566acac1886b6da54d3319
2013-07-18 17:54:03 -07:00
Baligh Uddin
e04b917be5 Import translations. DO NOT MERGE
Change-Id: I8786bcce7ac622998fda74507ddc55e554a2a2e0
Auto-generated-cl: translation import
2013-07-18 15:40:27 -07:00
Yu Ping Hu
966f237e77 Hijack an unused projection.
This was unused, and I want to write a query in Exchange
that wants to get a message's mailbox key, so I'm taking
this over.

Change-Id: I142394bfd30df8c88c5e1b48347a8532a4758857
2013-07-18 11:54:10 -07:00
Yu Ping Hu
765dc3d552 Increment Email version.
Change-Id: Ib82ef63416a904693edc090499a26a434a68f06a
2013-07-17 13:12:52 -07:00
Scott Kennedy
281c6365fb Add a new FolderUri
This will allow us to add query parameters such that Uris will still
appear to be equal, regardless of differences in the parameters.

Bug: 9780067
Change-Id: I483d009fe3681ec3d4323b3ca95dff8ca9f4ffde
2013-07-16 12:12:23 -07:00
Paul Westbrook
61205ffd83 Merge "Migrate "show sender image" to UnifiedEmail" into jb-ub-mail-ur10 2013-07-16 18:10:26 +00:00
Baligh Uddin
fc9ce53bff Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur10 2013-07-16 16:48:40 +00:00
Paul Westbrook
ccf730fbe5 Migrate "show sender image" to UnifiedEmail
Bug: 9497358
Change-Id: Iefe39052fb7d53de02535ef98b45c66f1f918209
2013-07-15 18:17:10 -07:00
Yu Ping Hu
dc1160e4c3 Merge "Explicitly pass a callback when loading attachments." into jb-ub-mail-ur10 2013-07-15 23:22:41 +00:00
Yu Ping Hu
d5acf0bbc0 Explicitly pass a callback when loading attachments.
This is part of moving away from the explicit setCallback,
which either has race conditions or is very noisy, or both.
(Each IEmailService call that wants callbacks should just
pass the callback explicitly.)

I'm not yet changing how the services actually handle the
call. Each protocol will need to fix this on their own.

Bug: 9735207
Bug: 9842867
Change-Id: If8cf69ffe82f3544ace9e58b1db5a183f38d038a
2013-07-15 21:54:02 +00:00
Yu Ping Hu
c5220a34aa Merge "Make EmailProvider protection less dangerous." into jb-ub-mail-ur10 2013-07-15 21:53:26 +00:00
Yu Ping Hu
5b4f26d203 Make EmailProvider protection less dangerous.
Attachment provider should probably also be less
dangerous, but that'll come later.

Change-Id: I69f3dcbf7afef4f2f2f2d03974ee2e29af59ab58
2013-07-15 14:00:56 -07:00
Baligh Uddin
7ed1e00173 Import translations. DO NOT MERGE
Change-Id: I0e6c7d42289be9afb1b0bb58f71c844d2e9c315c
Auto-generated-cl: translation import
2013-07-15 12:29:49 -07:00
Paul Westbrook
765fa9e27e Remove STOPSHIP logging
Bug: 8132946
Change-Id: I1f14a75c4dd334c4ae04cb0d79409cd072f2be08
2013-07-15 12:03:25 -07:00
Yu Ping Hu
070569b46c Merge "Remove the folder structure daily sync for push accounts." into jb-ub-mail-ur10 2013-07-15 17:54:45 +00:00
Yu Ping Hu
05cf8a1c1f Remove the folder structure daily sync for push accounts.
Turns out that you don't need it -- Exchange has a way to
tell the client when folder changes occur.

Change-Id: If8089d9fe55e7ece407acf2f0dae977dced522b4
2013-07-15 09:29:05 -07:00
Paul Westbrook
b2c7bcff78 Set the correct account uri to message
Bug: 9595801
Change-Id: Ie3a92c2194caf77ef6f3286e9dcb43684a0b32f4
2013-07-12 18:15:46 -07:00
Paul Westbrook
8a289cb07c shorten log tag lengths
Bug: 9815409
Change-Id: Ied2ef86ec204d005c246444906d7a385e939043e
2013-07-12 10:27:56 -07:00
Paul Westbrook
e13d9f6ba5 Merge "Fix feedback from Email settings" into jb-ub-mail-ur10 2013-07-11 23:27:23 +00:00
Baligh Uddin
dc56de11ce Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur10 2013-07-11 22:32:49 +00:00