Commit Graph

7908 Commits

Author SHA1 Message Date
Yu Ping Hu 1389f0ed03 Merge "Add virtual mailbox for all unread messages." into jb-ub-mail-ur9 2013-04-05 22:25:56 +00:00
Emmanuel Berthier 689efab2b1 email: "Exchange Services has stopped" - Rain of Exchange Javacrashes
Cleanup some nasty records containing NULL fields.

Change-Id: Iec5e7e1bebc4beee8fa010c3f9c9ee723fd2cd83
Author: Emmanuel Berthier <emmanuel.berthier@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 60461

cherry-pick of https://android-review.googlesource.com/#/c/47571/1
2013-04-05 15:22:14 -07:00
Yu Ping Hu c065e72819 Add virtual mailbox for all unread messages.
Also restores the trash icon. I'm not using the "correct"
icon -- it's the menu icon, not a folder icon -- but it
looks correct. Also, the "unread messages" icon is likewise
the menu icon for mark unread.

Bug: 8527132
Bug: 8444885
Change-Id: I7d3bc286f80f130e6f08ff1340a013d81700406e
2013-04-05 14:50:50 -07:00
Paul Westbrook d402c890dc Fixed make POP and Imap more locale safe
Cherry-picks from:
https://android-review.googlesource.com/#/c/42334/
https://android-review.googlesource.com/#/c/42332/

Change-Id: I557c3d8c725cf6dc4f13f227dcec63864ab5db67
2013-04-05 13:57:51 -07:00
Paul Westbrook 9fd03edb83 Merge "avoid cursor leak in email provider" into jb-ub-mail-ur9 2013-04-05 20:49:09 +00:00
Yoohyun.choi 89c74e89e5 avoid cursor leak in email provider
When cursor is done, the cursor must be closed to avoid cursor leak.

cherry-pick of https://android-review.googlesource.com/#/c/52910/
Change-Id: Iaaffed2c4e90dc4b17ae55fcedb242bf890b3dd5
2013-04-05 13:45:56 -07:00
Jack Bates 4fd97a3050 Fix SMTP RFC violation for better interoperability
Space after colon violates RFC 5321 (and RFC 821): "Since it has been a common
source of errors, it is worth noting that spaces are not permitted on either
side of the colon following FROM in the MAIL command or TO in the RCPT command"

Change-Id: Ie5330bf2bd01cd8f734134dadd742cf16df70d7a
Signed-off-by: Jack Bates <jack@nottheoilrig.com>

cherry-pick of https://android-review.googlesource.com/#/c/32640/
2013-04-05 13:42:13 -07:00
Paul Westbrook 156163cceb Prevent NPE
cherry-pick of https://android-review.googlesource.com/#/c/45703/

Change-Id: I8d6984d90365d6bc3e9f102285a06ac9c32a98d4
2013-04-05 12:00:29 -07:00
Paul Westbrook 391a7fc0e9 Support legacy shortcuts
We need to support shortcuts that were created with previous versions
of Email

Bug: 8530220
Change-Id: I9e2a44b561f5617ffa954af37a9e78a95400f7dc
2013-04-04 02:45:17 -07:00
Mark Wei 30dec61dbd Merge "Attachments in Conversation List: UI changes to display attachment previews in the conversation list." into jb-ub-mail-ur9 2013-04-04 00:47:57 +00:00
Baligh Uddin cca79c7d72 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur9 2013-04-03 22:09:50 +00:00
Yu Ping Hu f86e03216b Merge "Restore functionality for uploading new messages." into jb-ub-mail-ur9 2013-04-03 20:45:21 +00:00
Baligh Uddin 75b933594f Import translations. DO NOT MERGE
Change-Id: I396772ee5921bc2e145b5c247f6935db81c34a08
Auto-generated-cl: translation import
2013-04-03 12:12:48 -07:00
Yu Ping Hu c5c9c1c69e Restore functionality for uploading new messages.
The code for syncing new messages from client to server
somehow never got moved from Email1 to Email2.

This change also includes minor cleanup on system mailbox
flags.

Bug: 8531552
Change-Id: I1f9396635ba14cb6e641d2bc1b506c6d702f6b2e
2013-04-03 09:32:35 -07:00
Mark Wei d7970b3635 Attachments in Conversation List: UI changes to display attachment previews
in the conversation list.

Depends on:
PhotoManager: https://googleplex-android-review.googlesource.com/#/c/285814/

Bug: 7481049
Change-Id: Ia9f93c4ce75a4c9be0e9b738d0347292e4b2faca
2013-04-02 19:22:38 -07:00
Yu Ping Hu 81ca6599be Increment version number.
Change-Id: Ifff70ec6a013bbde97a8f8726f958665b6333570
2013-04-02 12:59:55 -07:00
Paul Westbrook d1a87bc02d Fix IMAP sync with Arabic language
Email shouldn't rely on the the default locale.
See: http://developer.android.com/reference/java/util/Locale.html#default_locale

Bug: 7138507
Change-Id: Ia2c6eccc6dee011f4e7e7c663a0328d4fd76131b
2013-04-02 11:36:11 -07:00
Yu Ping Hu de4c230f00 Exclude not fully loaded messages from uimessages queries.
Bug: 8370633
Change-Id: I5643454333b490bb1a988efb7b59e20b18fa67f4
2013-04-01 20:08:30 -07:00
Yu Ping Hu 46d6a4a7cb When loading messages, use left join for Message and Body.
Existing inner join means that a Message without an entry
in Body table cannot display correctly, even though this is
a potentially legitimate state.

However, because the MessageCursor for Email doesn't read
flagLoaded at all, this change actually causes another bug:
if you go to a partially loaded message, it will show as
blank with no load indicator. Fixing b/8370633 will mask
this by not letting you get in a situation where partially
loaded messages are shown.

Bug: 8512030
Change-Id: Ie2e365e7e5df3959115ed299d1a7f03aa1d7af79
2013-04-01 18:17:25 -07:00
Yu Ping Hu 3bef153c9c Merge "Improve error logging for mailboxNotification." into jb-ub-mail-ur9 2013-04-02 00:36:48 +00:00
Paul Westbrook 11472650d1 Fix apk attachments
Bug: 7585865
Change-Id: I20191523377d99472e333dece4d727415f97c67a
2013-04-01 17:20:27 -07:00
Baligh Uddin a8135c3d31 Merge "Import translations. DO NOT MERGE" into jb-ub-mail-ur9 2013-04-01 20:09:52 +00:00
Paul Westbrook 3767da5d26 Add capabilities for search folder
Bug: 6693452
Change-Id: Ib55fca4f883a699eabdaabf35568bffa055d556f
2013-03-31 12:00:14 -07:00
Paul Westbrook c4deb273e2 increment versionCode
Change-Id: I9cfe3f9fff0f11ecf87688dceb71f0275bac7dbc
2013-03-29 20:53:57 -07:00
Baligh Uddin 0c5208e584 Import translations. DO NOT MERGE
Change-Id: Ic92709d3de1a3fd8aba1ae704029278aa2684204
Auto-generated-cl: translation import
2013-03-29 20:28:19 -07:00
Yu Ping Hu 7cc82371ec Improve error logging for mailboxNotification.
Change-Id: I5b16ac46ce8cdd6e8f791c9cea7d7ead7e053bdc
2013-03-28 19:10:23 -07:00
Yu Ping Hu c534638b7a Disable notification prefs until folder prefs are loaded.
Bug: 8485354
Change-Id: Id56c2634a16274e9340ad6ecb96661ee8a489d49
2013-03-27 17:40:38 -07:00
Yu Ping Hu b1792d725a Increment version number.
Change-Id: I6a27aa4ee4de9d83e60fb226fcf838b127522f36
2013-03-26 18:46:54 -07:00
Yu Ping Hu e46d4457a0 Change the notification action strings.
Multi-project change with:

I86b368de45533faa3f639f631d56e16f5cbca36e (UnifiedEmail)
I407b8900220e7dbdda81d6572f0ee374ae3d3833 (UnifiedGmail)

Bug: 8483722

Change-Id: If514cfed9538f0c2433a9427f15608ba5878ee05
2013-03-26 17:37:46 -07:00
Yu Ping Hu 1dd937bf18 Prevent NPE when getting a bad mailbox id.
The mailboxNotification query apparently can return bogus
mailbox ids. This underlying bug still needs fixing.

Bug: 8482721
Change-Id: Icfbd0d986ab32fe878a0dbe09a3276322c75cafe
2013-03-26 15:00:30 -07:00
Paul Westbrook 28a344042d Prevent NPE
Also add additional logging for this case

Bug: 8372753
Change-Id: I87aa9ee46f0ca866745d62d27f4b40913f2e9b97
2013-03-22 18:21:19 -07:00
Paul Westbrook 7b44f1cd91 Fixed missing resource on phone
Bug: 8435176
Change-Id: Idf1df53ba80af13922b984e6a6997c8e576de0ee
2013-03-22 17:43:42 -07:00
Yu Ping Hu 861c5c8c9e Guard against potential NPE.
Change-Id: I379da1f478b1b1fd1e488dbeff249cc10e3d48d5
2013-03-21 19:25:14 -07:00
Paul Westbrook 5a3aebbd2d Fix problem with sending attachments in Exchange
The problem was that when the attachment was attempted to be opened
from the Exchange process, it didn't have access to the cached file.
Instead, use a content provider uri to reference the cached file.

Bug: 8400456

Change-Id: I80abd66642e938cf09f73bf0e9bd049aa8d7ba1d
2013-03-21 17:34:19 -07:00
Yu Ping Hu 68a8e21248 Merge "Always create system folders during sync." into jb-ub-mail-ur9 2013-03-21 16:05:03 +00:00
Yu Ping Hu 8a11cb8fd1 Merge "Always show the starred folder." into jb-ub-mail-ur9 2013-03-21 16:04:53 +00:00
Scott Kennedy f16a7612c0 Exclude all inbox labels when we're viewing an inbox
Bug: 8426563
Change-Id: I7707c9ebf9ebcb73be73ef82f5f2212514671bfe
2013-03-20 17:51:59 -07:00
Yu Ping Hu a5a963321d Always show the starred folder.
Bug: 8383232
Change-Id: I8a5fa0dbdd9f4f2000c5b7d3347eb4946af0ae80
2013-03-20 15:34:56 -07:00
Yu Ping Hu 2192bf01e0 Always create system folders during sync.
Change-Id: I8ff6eb4f65d4207d7a2768c5fd837fad8cd47269
2013-03-20 15:23:51 -07:00
Baligh Uddin 0da0c18ede Import translations. DO NOT MERGE
Change-Id: Iab79dd1932eb580a6049c2bb740f462f8b84e562
Auto-generated-cl: translation import
2013-03-20 12:02:46 -07:00
Yu Ping Hu b06369ea00 Merge "Move system folder string resources to emailcommon." into jb-ub-mail-ur9 2013-03-20 03:14:09 +00:00
Yu Ping Hu 9ae81e2af0 Move system folder string resources to emailcommon.
This permits us to move shared code for looking up system
folder names to emailcommon, which is also in this change.

Also renames emailcommon2 to emailcommon.

This is part of a multi-project submit with
I4a071a07c3e33aaa4ea404eb66a8db1eabc9ef0e and
I5746c0353783f9b29d52d6540472588c6542a6a2.

Bug: 8383232

Change-Id: I6c6eec4f1bcf2abd54c1ed05da1add8d894ee403
2013-03-19 19:45:52 -07:00
Scott Kennedy 093e669746 Fix notification issues
CLEAR_NEW_MAIL_NOTIFICATIONS wasn't being received because
there were no data tags in the filter.

Bug: 7923968
Change-Id: I4f6d03e79a8ecf9450acba3348242c8a48916ad3
2013-03-19 18:32:39 -07:00
Yu Ping Hu 24e165323e Increment Email version.
Change-Id: Ic80b0c205aca5734e0344c1acc8997d7e9b8b7ab
2013-03-19 14:41:25 -07:00
Yu Ping Hu 24aa23442d Merge "Remove useless UI notifications in uiUndo." into jb-ub-mail-ur9 2013-03-19 18:33:18 +00:00
Yu Ping Hu 91107a4c56 Remove useless UI notifications in uiUndo.
The uris supplied for these are bogus (lack IDs), and at any
rate the actual undo itself should notify the UI. (That's
currently broken, but not for want of trying, but the point
is that needs to get fixed anyway.)

Bug: 8373349
Change-Id: Id0f4e9fa45f2ece42d07f1f350d841f00270a8d9
2013-03-18 14:41:24 -07:00
Baligh Uddin ce7773981b Import translations. DO NOT MERGE
Change-Id: Iaa30007bc77bd17d6316c610b9482d229d2b55e0
Auto-generated-cl: translation import
2013-03-18 12:18:00 -07:00
Yu Ping Hu d0e7d88f43 Fix undo to use the correct URI.
Bug: 8373349
Change-Id: Ia23b60a1f82be16cb48afe5cf239e1c588b192a1
2013-03-15 19:32:32 -07:00
Vikram Aggarwal aa7e415d21 Merge "Single Actionbar: no more split" into jb-ub-mail-ur9 2013-03-15 22:34:49 +00:00
Vikram Aggarwal 1c50031f51 Single Actionbar: no more split
Single actionbar for Email

Bug: 8351542 Single action bar and new account selector
Change-Id: I4f8d54bdf5d4bbe2dfaae6e0121780b2a50aeb7f
2013-03-15 15:22:19 -07:00