Commit Graph

3734 Commits

Author SHA1 Message Date
Marc Blank e714bb9d15 Convert authorities, intents, and account manager types
* Tested ok on wiped Nexus
* Tested ok on S3
* Upgrade verified on Nexus

Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
2012-08-31 23:26:36 -07:00
Marc Blank 5ac8d38796 Always return correct folder capabilities
* This requires us to use a MatrixCursor based on individual
  Mailbox queries

Bug: 7059516
Change-Id: Ie9481a519d3d876464985924e5e7ad6d987c3945
2012-08-28 10:53:49 -07:00
Marc Blank 70edcf0538 Integrate Imap2 into Email
* 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
2012-08-22 14:17:57 -07:00
Marc Blank 0b9f23cae2 Merge "Report delete capability for all folders" into jb-ub-mail 2012-08-22 10:56:05 -07:00
Marc Blank 285cef8ad0 Report delete capability for all folders
Bug: 7034779
Change-Id: I5cd69739007a870d50e0f362945ca5aa62ae0cdc
2012-08-22 10:45:13 -07:00
Marc Blank a6885ba97d Remember base64 decoding for IMAP attachments
* Also, add debugging class to EmailProvider

Bug: 6995516
Change-Id: Ia96415caa61f26d55f09beb76fb3f34a40b53691
2012-08-21 10:34:39 -07:00
Marc Blank ae597ea949 Handle getExtras() from message list cursor
Bug: 6923453
Change-Id: Iceacf32ab195de47553243cdf16a75436057d995
2012-08-20 16:29:45 -07:00
Paul Westbrook 22e9efd442 Supports delete
Make sure that all Email labels report supporting delete

Bug: 7006885
Change-Id: Ia73b37f456d749debdf5c186a8ae688b9d8525b7
2012-08-19 13:21:34 -07:00
Marc Blank 12a79eb479 Preserve SetupData state on orientation change
* I suspect there are more bugs to be found here

Bug: 6956692
Change-Id: Id01d8e990b954505383d8218c05c192d658062cc
2012-08-17 16:04:05 -07:00
Marc Blank 0bac607eff Merge "Try to find cause for NPE" into jb-ub-mail 2012-08-17 13:42:11 -07:00
Marc Blank 296d18c02b Try to find cause for NPE
Bug: 7006995
Change-Id: I12d19fab0264b5d779f24df92274ad879237d254
2012-08-17 13:03:30 -07:00
Marc Blank 53d791d7a4 Remove Imap2 warning
Change-Id: Ic531ef1047ba1bf8da50cae9af147cf18332d8b8
2012-08-17 12:29:08 -07:00
Marc Blank bc53491b95 Ensure that security notification is posted if not active
Bug: 7007658

Change-Id: Ia422c30c47b044279471e549541ac6279735828c
2012-08-17 11:24:39 -07:00
Marc Blank b89744ecfb Use appropriate prefix to infer server address
Bug: 6999072
Change-Id: I71aa184b1cfa0b6926f4dae8861f071f27d3acb2
2012-08-16 14:11:11 -07:00
Marc Blank cf3b3ae987 Prevent NPE while getting service
Bug: 6989095
Change-Id: I646e393ec77a2e31c92011868f705e0936e41d88
2012-08-16 10:18:36 -07:00
Paul Westbrook 33858c77e9 Fix crash when validating email hostAuth
Bug: 6948287
Change-Id: I781a32a2da0b4248e7ee1e061393ebc2bdc4dd61
2012-08-09 16:24:51 -07:00
Paul Westbrook 9439595e58 Fix NPE when proceeding without selecting trash folder
Bug: 6948677
Change-Id: Iac846a8c4e992a02f5f5974ac623a99bee218b13
2012-08-07 23:52:38 -07:00
Paul Westbrook 532bcf4a52 Catch exception in monkey runs
Bug: 6929910
Change-Id: I1d1703282af66bcba7e77277b8ea663fdebcc251
2012-08-07 11:01:02 -07:00
Marc Blank e340b1f4df Merge "Progress updates for POP3 message downloads" into jb-ub-mail 2012-08-03 17:07:50 -07:00
Marc Blank 970fe5316b Progress updates for POP3 message downloads
* Also, handle MessagingException when doing STAT

Change-Id: I5267b64f18a84fcc97fc2d003e49d4e373ea02c5
2012-08-03 17:03:25 -07:00
Paul Westbrook b74f220467 Make sure to respect the projection from the client
The combined account query wasn't respecting the projection from the
client

Bug: 6930416
Change-Id: Iecda9b08caf6bb3e68a0d1cf79496b3d32b4b54e
2012-08-03 14:13:52 -07:00
Marc Blank cee9881650 Fix typo in DBHelper
Bug: 6930157
Change-Id: Id98cb1772b3d2d58dcd3098566f1096b10ea66f2
2012-08-03 12:12:35 -07:00
Marc Blank 7f7f7e6402 Handle server deletion of local POP deletions
* Also avoid looping through zillions of messages when
  checking uid's
* Always have 25 (or whatever the visible limit) messages
  loaded

Change-Id: Ib2f02a59cc438e3fd14d7ac607fb01d9a5fa5282
2012-08-02 20:06:38 -07:00
Marc Blank f6db592c31 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
2012-08-02 15:26:30 -07:00
Vikram Aggarwal e0015b2800 Priority Arrows are always disabled for Email.
Change-Id: If8617fc9c41467987aa572bfe2f93394757c4166
2012-08-01 09:35:49 -07:00
Marc Blank 7d5e2a7c08 Do "same certificate" checking when using "trust certificates"
* 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
2012-08-01 09:04:44 -07:00
Marc Blank 942fea3c97 Synchronize checkDatabases()
Bug: 6538393
Change-Id: I5e4d532aa859d8a49805b74475275ad914e84b86
2012-07-31 12:03:08 -07:00
Marc Blank 949fc3d883 Prevent NPE when the message has been deleted
Bug: 6907706
Change-Id: I5d5f980856eed12242095527aa927d139c77db4d
2012-07-31 09:53:21 -07:00
Mindy Pereira f986f44eca Reduced the number of calls that did the same thing in the Folder class.
The new method is just Folder.toString

Change-Id: I28fe0cc6e0adb110645941acd4990957283e5b03
2012-07-30 13:26:13 -07:00
Marc Blank 125a2435d6 Use Imap2 for auto-setup (if installed)
* And warn user (allowing her to switch to legacy adapter)
* This is temporary, for use in testing and marked STOPSHIP

Change-Id: I2510b0855a67c09add116d827185ff14596f44dd
2012-07-29 13:41:34 -07:00
Marc Blank 1bd4630d3d Linkify and show URL's if they are incuded in ALERT messages
* Gmail does this, for example...

Change-Id: I3b8d7b38e490bbac286f688c11cb62e6874121c2
2012-07-27 15:38:17 -07:00
Marc Blank dba0b20d95 Handle ALERT response to login command
* 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
2012-07-27 13:36:41 -07:00
Marc Blank ae57810e1e Merge "Imap2 additions" into jb-ub-mail 2012-07-27 12:50:58 -07:00
Marc Blank 0b6b83c6f9 Imap2 additions
* Implement first-pass Imap2 server-side search
* Improve number parsing performance
* Better handle the BodyThread (loading message bodies)

Change-Id: I0ccd7377c80a0553b086d5204b211067896a2f49
2012-07-27 11:58:48 -07:00
Mindy Pereira 34d8a139ce Remove extraneous loop.
There better be just 1 folder!

Change-Id: I8f4431cb133b29a4d4f266d0a95b843b374f15cc
2012-07-27 11:42:02 -07:00
Mindy Pereira 709b4633ed We don't need this! Raw folders does everything for us.
Change-Id: I5e37ed79ce3dce02ffad6fbea184981dd6f4f40e
2012-07-27 09:30:15 -07:00
Marc Blank 97a198292e Notify on "all accounts" when an account is updated
Change-Id: If6bad046d10972dcf7aa76d73b18c8a0c655a6ce
2012-07-26 13:51:09 -07:00
Marc Blank b225298b13 Add swipe-to-delete general preference
Change-Id: I83aa62526ba7a74cea27930300340227b147340f
2012-07-26 09:40:56 -07:00
Paul Westbrook 21959b3f29 Support widget changes in UnifiedEmail
Change-Id: I48ed403a7f1d61607b70c3ef260cc1f903e27a1b
2012-07-25 14:03:23 -07:00
Marc Blank a4418762d4 Merge "Make sure account capabilities get set properly in UIProvider" into jb-ub-mail 2012-07-25 13:40:14 -07:00
Marc Blank 0b5f15d61e Make sure account capabilities get set properly in UIProvider
* Change getCapabilities API to take an account, rather than
  the id of the account
* getCapabilities() can therefore execute even before Exchange
  is fully up and running

Change-Id: Id4c2a9942ea7a21e0c56401c50206b680274b43e
2012-07-25 13:25:02 -07:00
Andrew Sapperstein 6eee9e4f11 Filtering attachments by content type.
If the optional contentTypeQueryParameters is
set in the attachments URI, we only include attachments
that start with one of the contentTypes given in the
query parameters.

Change-Id: I97364b405b37174c02ba712009604b4dd122ae73
2012-07-25 13:24:12 -07:00
Paul Westbrook 51693c5a4c Migrate legacy widgets
Bug: 6304532

Change-Id: I6a5cad036ec7d4746e396b580e4689c957a7ee18
2012-07-23 14:57:46 -07:00
Marc Blank 54b6b8b072 Prevent CME w/ sServiceList
Bug: 6854037
Change-Id: I0b9aadfa0b347c62bf8a3b0c5ec88330871cce2d
2012-07-20 10:51:33 -07:00
Marc Blank 00287c4d8f Remove unused code; rename some constants
* Also handle large batch operations in chunks

Change-Id: Ie566cb8d8bb73e8edd663de5228e905c223f031b
2012-07-20 10:25:11 -07:00
Mindy Pereira 51d4370b77 Create ConversationInfo object with senders info for email.
Change-Id: Ibc789682d3bf0b19e026dcb629f94afee0405ec3
2012-07-20 08:46:43 -07:00
Marc Blank 77a9966f46 Merge "More work on Imap2" into jb-ub-mail 2012-07-19 14:27:49 -07:00
Marc Blank a8b683cf3f More work on Imap2
* 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
2012-07-19 14:27:17 -07:00
Vikram Aggarwal ba6bf4e052 Merge "Default Inbox name for Email" into jb-ub-mail 2012-07-19 11:15:40 -07:00
Vikram Aggarwal a0fef46aea Default Inbox name for Email
Change-Id: Iac4995d948d73c6a663331b0653453a916057189
2012-07-19 10:58:50 -07:00