History log of /packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
85d2190552d05dbc06518bdc21674c6aabeb583b 15-Oct-2013 Martin Hibdon <mhibdon@google.com> Clear all "drafts" related flags from email when sending

b/11224331

Change-Id: I1df8ea3e0e24b050cd391dea454124e06988bf7d
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
56aba8d8436b083bfc1169dd8b988161d537f7e5 09-Oct-2013 Martin Hibdon <mhibdon@google.com> Allow multiple mailboxes to be synced in a single request

b/11103878

Change-Id: Ic6abf51457fe94e89fe51b461da4371f50e0fe86
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
7c03217316b21d59a00cf1abed093470e8004144 09-Oct-2013 Martin Hibdon <mhibdon@google.com> Add a retry backoff/limit policy to attachment download

b/11081672

Prior to this, any time the AttachmentDownloadService
got a CONNECTION_ERROR, it would just instantly retry,
without any limit on the number of tries. This is bad
if the server is in a funny state, we'll just keep spamming
it with multiple connection attempts per second. Also,
this kills the client device's battery and responsiveness.

Now, it will retry instantly five times, and then retry on a
10 second delay 5 more times. After that it will give up.

Even if it gives up, if the user visits an email with an
attachment, or taps on an attachment to expand it, we'll
start the process over. So we shouldn't have permanent
apparently data loss, even if we fail on the first 10 tries.

I'm not certain that this is the best backoff/limit policy,
maybe we should add a delay after even the first connection
error. But I'm hesitant to change this at this point, it's
possible that something is relying on this behavior and
we don't have a lot of soak time left.

Change-Id: I53d75d5d214ccca887a89cf65b799fe640cc9bc5
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
529bdeaec1d19b035dddde204c0c7074ba8ea80f 09-Oct-2013 Martin Hibdon <mhibdon@google.com> Always close the connection after trying to load attachments

b/11081672

Change-Id: Ibe804713492b37f5579fb20a0da7292e82cb5341
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
921c04d2ac5df091fb3c5cfa823e6dc2fc6cdf5a 02-Oct-2013 Martin Hibdon <mhibdon@google.com> Add some logging

Change-Id: Ib26ffad0bb6841361b8ee7be4ee2a6255d509ae2
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
da42d856b8940f58c0431dd2f0fb7e8c8f8c0644 12-Sep-2013 Tony Mantler <nicoya@google.com> Don't skip attachment saving if the attachment is not yet saved.

Also tidy up warnings

b/10461356

Change-Id: I65ac4c5b512cd67a39c81606391a2b044213f269
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
eb4ee8a7aa540e77c57af1635ede7f89124f1259 02-Aug-2013 Yu Ping Hu <yph@google.com> 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
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
2075c97f608a853923980865b72147a5c8ef71f0 30-Jul-2013 Yu Ping Hu <yph@google.com> Delete most of IEmailServiceCallback.

The old callback mechanism is deprecated, in favor of making
calls on the ContentProvider.

Bug: 9842867

Change-Id: I65f559e593cda24456c4ffb96f785e054626dd0b
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
afe097f318a7eeac9d240d2bedbc5caba7640ea8 26-Jul-2013 Yu Ping Hu <yph@google.com> Simplify account reconciliation.

- Rather than handle by type, do them all at once.
- Simplify when reconciliation happens.

Bug: 9056861

Change-Id: If264678c82c63090246ef8ff857c8e46f6672c85
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
9a1f00bee4c50c128df320a3795cfc8295d5e011 20-Jul-2013 Yu Ping Hu <yph@google.com> 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
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
d5acf0bbc00cbe9a2c075e1bd4825ccbd9851d8d 15-Jul-2013 Yu Ping Hu <yph@google.com> 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
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
560bfadc3151f7a06f3b06e9a6c92cfa534c63ec 26-May-2013 Scott Kennedy <skennedy@google.com> Unify LogTag

There is now only one LogTag class. The static initializer of
GmailApplication (existing) and EmailApplication (new) will now set
the log tag to "Gmail" and "Email", respectively. Up until that code
is run, it will be "UnifiedEmail".

"setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to
be printed as long as they go through LogUtils, regardless of what tag
is used by that individual log. This lets us still turn on logging
everywhere in one command, but also lets us use more descriptive tags
(like the class name).

And since we no longer have three com.android.mail.utils.LogTag
classes, builds will be much easier.

Also, we now use LogUtils everywhere.

Change-Id: I55f1c7a66ce50ead54877a13e40256422a56dc39
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
9e7f5a2a33a31ff392d3116f6432b2f93ffe8e71 25-Apr-2013 Yu Ping Hu <yph@google.com> Use system SyncManager for Exchange.

Change-Id: I77e4e75c94c532d22a28cf97e6f55f1259b8bdde
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
17d5bbf768c27ac7782b155e2ab25bcd480f5dcf 05-Apr-2013 Yu Ping Hu <yph@google.com> Improve mailbox sync and load more.

- Update syncTime for IMAP and POP whenever we sync.
- Change load more to simply include the delta in the RPC
rather than using the visibleLimit column.
- Add a query to get the message count for a Mailbox.
- Refactor code for updating totalCount and determining
the new message count when syncing.
- Remove dead code from Mailbox.
- Remove uses of visibleLimit from code.

Note that visibleLimit and messageCount in Mailbox table are
no longer useful and will be removed in a later change.

Bug: 8579767
Bug: 8523146
Change-Id: Ieb67e3b6f1c82c3b21b972c5a1e557cd75dc21db
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
861c5c8c9e054a4562af44805c57f39e7121ca43 22-Mar-2013 Yu Ping Hu <yph@google.com> Guard against potential NPE.

Change-Id: I379da1f478b1b1fd1e488dbeff249cc10e3d48d5
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
2192bf01e0df1285718b53f6b77d635f4e8c65ca 20-Mar-2013 Yu Ping Hu <yph@google.com> Always create system folders during sync.

Change-Id: I8ff6eb4f65d4207d7a2768c5fd837fad8cd47269
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
9d91dd8023b31f37c0aade7bf6d9910908204a94 12-Mar-2013 Yu Ping Hu <yph@google.com> Specify correct sync extras for user-requested syncs.

BUG: 8364227
Change-Id: Icfc97c92e5ecc9c2abd83b73cf67a5e10408cede
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
9a95253846ccc7a94dd7d4c618ec2d808e2a4000 23-Feb-2013 Paul Westbrook <pwestbro@google.com> Cache attachments on send

Cache attachments in a email directory when sending to allow sending
to succeed when the content provider has a permission

Bug: 7381557
Change-Id: Icf9faead2048de237228625f998b42feade48978
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
54347010fbbdd3ae1dea5b0e282514c640e16a5f 22-Sep-2012 Marc Blank <mblank@google.com> Allow legacy imap to sync

* Remove old (and dangerous) constants

Bug: 7210754
Bug: 7212263

Change-Id: I6a1463a653c5c4823a96c9fbb9ca37e53a45b48a
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
f53490dc86f5a61ab09024dc4938ce8419c61fc5 03-Sep-2012 Marc Blank <mblank@google.com> Reconcile all types of local accounts in MailService

Bug: 7078247

Change-Id: I43eb5b8a85e40217893bdc08cd839450358d07ea
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
e714bb9d153cfe13a7f0932e7d67ea08fa5a1d98 23-Aug-2012 Marc Blank <mblank@google.com> Convert authorities, intents, and account manager types

* Tested ok on wiped Nexus
* Tested ok on S3
* Upgrade verified on Nexus

Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
f6db592c313c77190727c7cd72d3edda9d23a099 02-Aug-2012 Marc Blank <mblank@google.com> POP3 renovation

* Much, much faster
* Remove message length pass and lots of other useless code
* Create pseudo-attachment for long messages (click to download) that
includes size (so user can determine whether it's worth it)
* Handle download of message via pseudo-attachment; real attachments
are then created as necessary.

TODO: Add real UI with UX input (or modify existing to clean up the
loose ends)
TODO: Optimizations for loading the whole message
TODO: Get server delete working (isn't working currently anyway)

Change-Id: I31f3809fc5a2f9fd490d33cfed70d2930654e71d
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
c5afb16430a145f20d7c887e45f47b38687054da 28-Jun-2012 Marc Blank <mblank@google.com> Add a bunch of stuff missed earlier

Change-Id: I7f707446a963912fe5786dacb5569e68db572d1c
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
03cd72805dab0379ed255d151f1c17cc60655fc3 25-Apr-2012 Marc Blank <mblank@google.com> Revert to old Email app

* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
824f7763653cd9c15f400301de53f5023ae37762 12-Mar-2012 Marc Blank <mblank@google.com> Fix up load of IMAP attachments

Change-Id: I2f55fc2c3d92eff72ebfd50ff3f782928f3a85a2
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
ab6321e2c470596b9d8e4f97a23160788d917590 09-Mar-2012 Marc Blank <mblank@google.com> Fix SMTP sending

Bug: 6134036
Change-Id: Id48e4bd17e7493d873d888027e68c7eb86d23198
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
af8f8a48ee8a974862802a39a001390937a3cfb7 07-Mar-2012 Marc Blank <mblank@google.com> Reconcile accounts in deleteAccountPIMData

Change-Id: Ifd17ef76e13ddcfa07c84429dca7bf19e6cbcfab
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
87c84a6d96a360b2310f44ff4ae2e181c7a4479a 23-Feb-2012 Marc Blank <mblank@google.com> Send sync status updates from POP3/IMAP

Change-Id: Ia1bb5d1a302d6dde8b8979e03a762d6d45ee8cd3
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
9227dbbf0f1c467762c44119d7cb1140c7191a88 19-Feb-2012 Marc Blank <mblank@google.com> Add back attachment loading callbacks for IMAP

* Remove newly unused code

Change-Id: Ifea2193deaf35734a031500c807ce9e3abd88fb1
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java
4f813fb12937de74d3ccec730b8de0c9de7a87e0 14-Feb-2012 Marc Blank <mblank@google.com> Convert POP3 to service

* Remove MessagingController and (almost all of) MailService

Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
/packages/apps/Email/src/com/android/email/service/EmailServiceStub.java