History log of /packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d07dd49522f0573cb6ea1920f072bf677ed60f9 21-May-2014 Jay Shrauner <shrauner@google.com> Fix parser EodExceptions

Fix Parser EodExceptions thrown as a results of changing nextTag().
Clean up various nextTag() loops so they are checking for the right
end tag.

Bug:15086892
Change-Id: I9ff0593bb062968d5556f028638c3bf13f3410d3
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
02a024ed34fc81370961d439159ef4e84929cac8 14-May-2014 Jay Shrauner <shrauner@google.com> Fix format exception

Use Log(..., "...%s", arg) rather than Log(..., "..." + arg) so that
characters in arg aren't interpreted as format specifiers.

Bug:14964403
Change-Id: Id0de5a6e44237160d5acc8cebda63e38d9e0af54
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
2f369a47e14916a34f49c79c0a246a2e3ac3072f 30-Apr-2014 Jay Shrauner <shrauner@google.com> Date parser utility helpers throw parse exceptions

Update to reflect API change to parseDateTimeToMillis and
parseEmailDateTimeToMillis, which now throw ParseExceptions on
malformed date strings.

Bug:14279251
Change-Id: I74e015b81079b127ddba15f34c8b7e555099bd1e
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
e544c545c9cca446538fcf402863d271f85052c2 11-Apr-2014 Tony Mantler <nicoya@google.com> Cleanup in EmailContent

Change-Id: Icb51cda53b2ad9b1aac15631cf86b5696f3b8e3c
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
a0c90aa8eabacdd97c1fea873514eb7a4adf6bca 25-Jan-2014 James Lemieux <jplemieux@google.com> Replying to a Message with an encoded email address shows the encoded address in the to field.

b/11658428

As per Yu Ping's advice, we alter the storage of all email addresses (from, to, cc, bcc and
replyto) to be stored in *decoded* format within our database. This makes them both human
readable when inspecting the database manually and alleviates the need to repeatedly decode
them before they are displayed anywhere in our UI layers.

As part of this bugfix, I resurrected several tests related to the LegacyConversions class out of
LegacyConversionsTests and into a new (not Suppressed) test class: LegacyConversionsTest

Change-Id: I526bd0e8c362a136e72e94bc76f6594085d0a305
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
eba5b43135b9a3d3fae590b701de849955aba246 04-Mar-2014 Yu Ping Hu <yph@google.com> Add EasSyncCollectionTypeBase and its mail sync subclass.

Each collection type (mail, contact, calendar, and eventually more)
has certain details in the request formation and response handling
that differ by type. Rather than subclass the operation, it seems
better to put these details in a different class.

Longer term, this decoupling should make it easier to eventually
send a single sync request for all collections, rather than one
per folder. That is not on tap for this release, however.

This change adds only one subclass, for mail sync. The code is
largely taken from the EasMailboxSyncHandler, which this replaces.
The contacts and calendar subclasses will follow, as will replacing
the old EasSyncHandler set of classes.

Change-Id: I29e20faa5ff332f7af89e48c11577937fcbc983d
(cherry picked from commit 7e916f8c90f6d785a5b120d3f5a4d0a11097c024)
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
0756a9ff8e69b8cc52374fa68efb2e81971ee5c4 04-Mar-2014 Martin Hibdon <mhibdon@google.com> Make search an EasOperation

This is still hooked up to EmailSyncAdapterService

Change-Id: I3194a09b50d38aa0b69ce2879c0f97dacccabd63
(cherry picked from commit 4fce2f914c51b84330a4aa7feb576346774c3a74)
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
e89ec9216167fa7246ae268f2b2062e0a93621bf 23-Jan-2014 James Lemieux <jplemieux@google.com> Eliminate redundant methods in Address class

THIS DOES NOT CHANGE ANY EXISTING FUNCTIONALITY.

Address.pack() has been removed and all calls replaced with its synonym Address.toHeader().
Address.unpack() has been renamed to Address.fromHeader() to follow the new naming convention.

In days of yore, pack() and toHeader() used to do different things. Now they are identical and
thus one is superfluous. We have standardized on toHeader() and fromHeader().

Change-Id: I233a139da7aa03602b76f931b03cdd0e8414d242
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
71cfa486dd576841a6333b761530c82b296a1c0c 22-Oct-2013 Yu Ping Hu <yph@google.com> Treat "fetch needed" same as "more available" for sync.

Bug: 11245727
Change-Id: I57c10e6994fd6d31f3433cdd291e338fb7eb3205
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
5cc7ea3e24f1c05f71a3223ac6fa8b69d211735c 28-Sep-2013 Yu Ping Hu <yph@google.com> Exchange sync fixes.

- When wiping a mailbox, supply the correct account object
to requestSync. (Account#mAmAccount is actually null.)
- When wiping a mailbox, don't treat it as looping.
- Do not try to sync when the mailbox is not in the current
account. Still not sure how we get in this state, but this
is never a good thing to do.

Bug: 10965484

Change-Id: I24cbc9985282e54386765139faf5ff8edfac8cd7
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
110837ebff288a75f9bda067c38e2c46797d99b5 27-Sep-2013 Alon Albert <aalbert@google.com> Unify Log Tags

Use a single log tag

Change-Id: I6f08c1eb6e84971cc21497ca14bf60860f75bab4
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
722006c7b116240d9383c84d5e76ee69796dd571 19-Sep-2013 Alon Albert <aalbert@google.com> Wipe and Resync Mailbox on Bad Sync

Change-Id: I52f95641e2cc519944863d394f808d796b3c0a18
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
36e181376b06c8905af2d22bf494a2423f50aa65 18-Sep-2013 Alon Albert <aalbert@google.com> Split Apply Ops Into Chuncks

To prevent TransactionTooLargeException errors. If it still fails, retry with
a minimal chunk to apply one message at a time.

Bug: 10402517
Change-Id: Ia121652da6da56587939dc813abb801d055c24ca
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java
c640541ba09b4ecd88f4fa9603dc2d9d474e7996 13-Sep-2013 Yu Ping Hu <yph@google.com> Move upsync from EasMailboxSyncHandler to EasSync.

Eventually EasSync should handle downsync as well, but the immediate
task is to decouple upsync from downsync in EasMailboxSyncHandler.
This move also fixes some upsync bugs.

Also put EmailSyncParser in its own file.

Bug: 10678136
Change-Id: Ie5e131a3f316176c203d275df35d3e8a8f9141c7
/packages/apps/Exchange/src/com/android/exchange/adapter/EmailSyncParser.java