summaryrefslogtreecommitdiffstats
path: root/emailsync/src
Commit message (Collapse)AuthorAgeFilesLines
* Delete obsolete emailsync codeTony Mantler2014-06-307-2945/+0
| | | | | | b/5784532 Change-Id: I33a693e91b99253c4f82758c875c8cf21bace543
* Delete obsolete codeMartin Hibdon2014-06-041-53/+0
| | | | | | PartRequest was only used by obsolete Exchange code. Change-Id: I708648c24c8b1af37928131186b8a84ff23dd3ef
* Fetch email bodies using ContentResolver#openInputStreamTony Mantler2014-05-081-3/+3
| | | | | | | This brings us further along the path to storing email bodies outside of the database. Change-Id: I96296114ade0d561df724878ed92999306bcd176
* am 81f9a57a: Fix some STOPSHIP loggingMartin Hibdon2014-05-052-5/+1
|\ | | | | | | | | * commit '81f9a57a655fe842ddd86b14afe75bcd575edb81': Fix some STOPSHIP logging
| * Fix some STOPSHIP loggingMartin Hibdon2014-05-052-5/+1
| | | | | | | | | | | | b/14564870 Change-Id: I9365013eacde23178578b45f728713f80417bc7a
* | Cleanup in EmailContentTony Mantler2014-04-141-3/+2
|/ | | | Change-Id: Ifa251eb206779f59ea003f99395d454c7e407bc2
* Make oauth error handling localizableMartin Hibdon2014-04-031-0/+3
| | | | | | Also, add some logging to track down b/13545303 Change-Id: I44a0d63b5c3b53018b48eb1c58d6a9ff74bddd9c
* Remove mAmAccount from the email provider account objectTony Mantler2013-10-041-4/+12
| | | | | | b/11070468 Change-Id: I51bad4be41800e4cd6dae42744005ade784cdf82
* Remove some warningsScott Kennedy2013-08-014-2/+6
| | | | Change-Id: Ifc855a6c8623bd980807064477635c19b8ed81e0
* Delete most of IEmailServiceCallback.Yu Ping Hu2013-07-291-10/+0
| | | | | | | | | The old callback mechanism is deprecated, in favor of making calls on the ContentProvider. Bug: 9842867 Change-Id: I65f559e593cda24456c4ffb96f785e054626dd0b
* Unify LogTagScott Kennedy2013-06-053-20/+22
| | | | | | | | | | | | | | | | | | | | 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
* Switch constants to existing standard values.Yu Ping Hu2013-05-081-9/+2
| | | | Change-Id: I1dc5a6b7ceb5b13975a9366f11a945f5b111842c
* Code cleanup.Yu Ping Hu2013-04-301-80/+33
| | | | | | | - Cleanup sync adapter to not have statics & locks. - Remove some dead code. Change-Id: Ia310d32b93706dc3742ccee74e5b751174280488
* Use system SyncManager for Exchange.Yu Ping Hu2013-04-251-1/+2
| | | | Change-Id: I77e4e75c94c532d22a28cf97e6f55f1259b8bdde
* Add a way to check whether we have a wakelock.Yu Ping Hu2013-04-181-0/+14
| | | | | | Bug: 8640907 Change-Id: I886af09d20dab195a9bbd38082a02d29e8b864e7
* Improve service dump a bitMarc Blank2012-09-191-2/+2
| | | | Change-Id: I850aebae0f8b20f0041672dc36a361c5b2d73f9a
* Add bugreport dump of wake lock timesMarc Blank2012-09-191-7/+65
| | | | Change-Id: I4086e8ee620ac10d5a3c1673838c567753c1a553
* Don't sync at all if 1) upsync and 2) heldMarc Blank2012-09-111-1/+3
| | | | | | Bug: 7148468 Change-Id: I93a7734f274263e09ddef1b5cf7d9d7ea58a17c3
* Don't clear errorMap due to upload syncMarc Blank2012-09-101-2/+4
| | | | | | | * Clearing it will prevent backoff behavior from working properly when there are changes to be uploaded Change-Id: I1a1509e42730a3aa36298e3024068b6fe993e045
* Convert authorities, intents, and account manager typesMarc Blank2012-08-312-6/+8
| | | | | | | | * Tested ok on wiped Nexus * Tested ok on S3 * Upgrade verified on Nexus Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
* Integrate Imap2 into EmailMarc Blank2012-08-221-15/+16
| | | | | | | | | * Also, convert imap accounts to imap2 * The original imap service remains, but is no used * There remain some questions about how the upgrade should work in terms of settings Change-Id: I0e05edad6a1553f428a2c2fa3daf1df878d4b5f7
* Make sure that all access to service map is lock-protectedMarc Blank2012-08-191-40/+27
| | | | | Bug: 7013731 Change-Id: I9da734d19597997b34d6079cf013064262a75ec4
* Revert "Make sure that all access to service map is lock-protected"Marc Blank2012-08-181-19/+10
| | | | | | This reverts commit 9d593aab1b5b4af6df4d9bbc3f4126da4ec2e2a0 Change-Id: I2b8f044e2119c60b9a42c7cb84577147c89ea0cb
* Make sure that all access to service map is lock-protectedMarc Blank2012-08-181-10/+19
| | | | | Bug: 7013731 Change-Id: Ib5e1f2aa92fd448f0a4131393a34d93315bfa649
* Ensure that security notification is posted if not activeMarc Blank2012-08-171-1/+5
| | | | | | Bug: 7007658 Change-Id: Ia422c30c47b044279471e549541ac6279735828c
* Fix ConcurrentModificationExceptionPaul Westbrook2012-08-061-1/+3
| | | | | Bug: 6937046 Change-Id: I82e578d9b31b0064570deee9a9625ddf07826112
* Don't save connection manager for autodiscover/validationMarc Blank2012-08-011-2/+6
| | | | | | * Also add outlook.com to providers file Change-Id: I2c334d1307b84899c3b64bd0c3f0cd92c190576e
* Do "same certificate" checking when using "trust certificates"Marc Blank2012-08-011-9/+10
| | | | | | | | | | | | | | | | * Refactor/simplify Transport/MailTransport * Add serverCert column to HostAuth table in EmailProvider * During first connection to server, save the server certificate in the HostAuth; on subsequent connections, ensure that the certificate presented has the same public key as the one stored * For now, we'll just fail to connect (with a CertificateException) if there's a mismatch TODO: Add some UI to handle different certificates Bug: 6888866 Change-Id: Ia79497e89eaad8d43617b50d3771121b2ed7f687
* Handle ALERT response to login commandMarc Blank2012-07-272-1/+2
| | | | | | | | | | | | * Allow AccountService loginFailed API to take a reason string * Present the reason string in the dialog shown from the login failure notification * Handle ALERTs in IMAP login responses (for example, some servers will occasionally require web login and we need to inform them, rather than simply saying the password is wrong) * This fixes a longstanding bug in our Imap1 implementation Change-Id: I8b270cd5d4746559b6c8a78bce02f0e7c525bdea
* Imap2 additionsMarc Blank2012-07-271-2/+8
| | | | | | | | * Implement first-pass Imap2 server-side search * Improve number parsing performance * Better handle the BodyThread (loading message bodies) Change-Id: I0ccd7377c80a0553b086d5204b211067896a2f49
* Fix EAS backoff behavior (was stuck at 30 seconds)Marc Blank2012-07-251-3/+3
| | | | | Bug: 6881519 Change-Id: Ib0b6f8a07a4bc47d3691c9cfa711e45eaf1955f2
* Prevent ConcurrentModificationException in SyncManagerMarc Blank2012-07-231-2/+6
| | | | | Bug: 6856652 Change-Id: I1a264844cbab159505b4b3ebd32716a469517f0a
* More work on Imap2Marc Blank2012-07-191-0/+1
| | | | | | | | | | | | * Handle sending mail and moving to sent folder * Implement picker for sent folder * Upload sent items to server * Add support for "automatic" sync window * Move some files from Email -> emailcommon * The added files are copied directly from Email (and can be removed if/when Imap2 is merged back with Email) Change-Id: I3a6a3d224826e547748be2f1b567b6294ad5db89
* Initial Imap2 implementationMarc Blank2012-07-185-47/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | This CL includes the following: * New Imap2.apk generation (not included in builds) * "Push IMAP" option for accounts when Imap2.apk present * Account creation/setup * 2-way sync of messages, deletions, flag updates * Push (messages, flags) * Folder list hierarchy handling * Message text (one plain or html part) * Picker UI for trash folder (placeholder) * Capabilities handling/UI command Major Imap2 new features: * Push * Multiple folder sync * Sync window (like EAS) TODO: * Picker UI for sent folder * Upload of sent messages to server * Search * Multiple viewable parts * Probably lots more, incl. unit tests Change-Id: Ia5d74073d9c307e0bdae72a7f76b27140dde7d14
* Add a bunch of stuff missed earlierMarc Blank2012-06-287-0/+2919
Change-Id: I7f707446a963912fe5786dacb5569e68db572d1c