Commit Graph

307 Commits

Author SHA1 Message Date
Marc Blank 9a341d85f0 Merge "Improve trash folder picker upon account creation" into jb-ub-mail 2012-09-06 17:49:34 -07:00
Marc Blank 983c78e928 Log capabilities (w/ STOPSHIP)
Change-Id: Id448fd48ee1d7a2eabab8f3bd4dae34b6e401a7d
2012-09-06 16:03:07 -07:00
Marc Blank 2616405471 Improve trash folder picker upon account creation
* Use setup intent uri
* TODO: More cleanup

Bug: 7077441

Change-Id: Ieab5b0ed33b73b7a0e9012aedd6becf867db1566
2012-09-06 16:01:45 -07:00
Marc Blank b210f3ad53 Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail 2012-09-05 13:41:18 -07:00
Marc Blank c0a425027b Revert "Initialize mDatabase on provider startup"
This reverts commit 6c319d78ed

Change-Id: I57881b090a3c7efba79369702356b622d9a7aba8
2012-09-05 13:41:07 -07:00
Marc Blank c0e2b147e0 Clear visibleLimit when folder entered
Change-Id: I39824dbff83ffcf109cbc1ffebf00cad5bce2498
2012-09-05 12:52:06 -07:00
Marc Blank 2651bcc7be Put combined account last
Bug: 7100404
Change-Id: Iff2884e635d030d840f297c15f5e2ee646185c5f
2012-09-05 09:49:55 -07:00
Marc Blank 9765f7b284 Merge "Initialize mDatabase on provider startup" into jb-ub-mail 2012-09-04 08:55:50 -07:00
Marc Blank 5a2b9579de Prevent possible NPE
Change-Id: I0254812c55cf6c5e4825aa28f900b8030502e9f6
2012-09-03 19:57:41 -07:00
Marc Blank 6c319d78ed Initialize mDatabase on provider startup
* Try to prevent startup-related races

Bug: 6969684
Change-Id: I58ac16381bb71b8e21e01cb3ead0ba99f70c9873
2012-09-03 18:58:24 -07:00
Marc Blank 9e4556ae1c Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail 2012-09-03 18:55:19 -07:00
Marc Blank fcba7fa20a Revert "Initialize mDatabase on provider startup"
This reverts commit 33f3b0c1d5

Change-Id: Ia56d67f49b3b5d7569791d9d556e2f7eed13ee7d
2012-09-03 18:53:15 -07:00
Marc Blank efb46b0857 Merge "Clear visible limit when entering mailbox; enable imap load more" into jb-ub-mail 2012-09-03 18:36:23 -07:00
Marc Blank 644f172cde Merge "Initialize mDatabase on provider startup" into jb-ub-mail 2012-09-03 18:35:54 -07:00
Marc Blank cc986cf3d7 Clear visible limit when entering mailbox; enable imap load more
Bug: 7045530

Change-Id: I013c465dfbe992e9df104039e8576465805c9119
2012-09-03 15:52:31 -07:00
Marc Blank 33f3b0c1d5 Initialize mDatabase on provider startup
* Try to prevent startup-related races

Bug: 6969684
Change-Id: I5eb2bf2773c2809a27a7eeb461bf8fbfccc864a2
2012-09-03 14:32:01 -07:00
Marc Blank df9c1f3aa5 Allow NULL values in genSelect
Bug: 7050016
Change-Id: Ia70e2312e37e8a5adae62d045878a079e9195d00
2012-09-03 14:14:53 -07:00
Marc Blank b82ae909d7 Add support for "load more" for Imap2
* Use new attribute in services.xml to indicate support
* Initial implementation

Change-Id: Ia8709d606d521c6d495c343a47ee074b5024d340
2012-09-01 15:58:46 -07:00
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 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 296d18c02b Try to find cause for NPE
Bug: 7006995
Change-Id: I12d19fab0264b5d779f24df92274ad879237d254
2012-08-17 13:03:30 -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 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 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 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
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
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 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
Mindy Pereira 49cbb81332 Should be able to forward a message with no additional content.
Change-Id: I6eccf2f2436303a0359027d3efd3763306f9f657
2012-07-18 16:55:27 -07:00
Marc Blank c6089bc01f Initial Imap2 implementation
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
2012-07-18 11:32:26 -07:00
Andrew Sapperstein b27348a808 Adding the via column to email.
Change-Id: I3d49f696a1262f22b0ebaf733b5a4f26ac270935
2012-07-13 12:31:06 -07:00
Andrew Sapperstein de79ecbbe2 Update to email2 for the new spam warnings.
This feature being Gmail-specific, we simply
set the default values so that warnings never show
up for email clients.

Change-Id: Ie0a55762c1af73a9c9aa8836faadc23ac9af52cb
2012-07-12 15:08:09 -07:00
Marc Blank 7c8f1c125a Fix handling of json in SQLite query
Bug: 6749576
Change-Id: I3cd85182d8c35e564f50ee7f9c787d797253e105
2012-06-28 13:09:13 -07:00
Marc Blank f419287f22 DO NOT MERGE: Move emailcommon2 sources to emailcommon
Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
2012-06-28 11:15:06 -07:00
Marc Blank 03cd72805d Revert to old Email app
* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
2012-04-25 13:58:23 -07:00
Paul Westbrook 05ba972408 Move settings into account
Change-Id: I0e791ead6c54af96afbfdf1d38457fb2fb41c4dc
2012-04-06 12:38:10 -07:00
Paul Westbrook 6f627965d0 Removed some UI provider code from EmailProvider
Leaving this in was breaking the build, as new files were required.

This change is just to keep this version of Email building.
Eventuually Email2 will replace this one.

Change-Id: I96fbed63a18a11bcdc64c2f0bbe8b100fdb273d9
2012-03-20 16:33:03 -07:00
Vikram Aggarwal e7dc6a34d4 AutoAdvance.OLDER always
Change-Id: Ifaf1ab14db0a3415d91b910b726bf9c8e0fec1ea
2012-03-16 15:49:59 -07:00
Vikram Aggarwal 05b99a0d8c AutoAdvance.LIST is safer than AutoAdvance.NEWER
Change-Id: I72ba37cb8a7259c13afcfaabb70a11d65f536b69
2012-03-16 15:12:47 -07:00
Mindy Pereira a7d788d54a Fix build.
Change-Id: I077de029e1da06e3dcd6dae438a6c64b58e9e127
2012-03-13 16:12:51 -07:00
Mindy Pereira 4bf4edcf64 Send uri of folder this item is in instead of just the id.
Change-Id: I5b7ba10497ac2f5081de02074d525e39d73ba9b0
2012-03-13 16:04:44 -07:00
Paul Westbrook 1d202e274d Support new folder id
Change-Id: If971ca60e5029487dd1c12b4664c6b64f3133f4a
2012-03-13 14:06:03 -07:00
Marc Blank ebbf8e1040 Merge "Add support for "Load more" for search results" 2012-03-12 17:19:06 -07:00
Marc Blank 6550ae9773 Add support for "Load more" for search results
Change-Id: Ie16e11ced34c85de02980c85e2db9d61faed5b6f
2012-03-12 17:11:19 -07:00
Andy Huang dd32d14187 cross-project refactoring
Attachment.mimeType -> contentType
Attachment.contentUri(String) -> contentUri(Uri)

Change-Id: Id35fb698d120013c00878f416f9b68a2f0095fca
2012-03-12 13:31:33 -07:00
Marc Blank 34943d241d Trigger load of full msg when opening partially loaded msg
Change-Id: Ia49aa7f423ceac6697d95abf66e10bb5998c5747
2012-03-12 10:37:19 -07:00
Marc Blank e2166f7548 Add totalCount to Mailbox; send to UIProvider
Change-Id: If01868eb27a97540683f25148f32b8c41ae59c17
2012-03-10 20:15:58 -08:00
Marc Blank 9e266d12fb Implement "load more" for POP/IMAP
* Search not yet implemented

Change-Id: Ic808d3adcb48a2b4370fda77d7b108ea656de5c4
2012-03-10 15:41:43 -08:00
Marc Blank 25fe72687d Notify on attachment's message when updates occur
Change-Id: I23d537992fbf8b0f0dab3afaf37cacfd5587d1f3
2012-03-09 15:33:39 -08:00
Marc Blank 55d0e821ea Report search result total to UI
Change-Id: Ic88e7594b98548a96c8c6f96d2f8a585e539f520
2012-03-09 14:04:49 -08:00
Marc Blank ebb79619e8 Move account delete logic to EmailProvider
* This functionality had to move away from Controller

Change-Id: I557918a325eab8c83a9728fa1ce33dde8b86158f
2012-03-09 12:59:21 -08:00
Marc Blank ab6321e2c4 Fix SMTP sending
Bug: 6134036
Change-Id: Id48e4bd17e7493d873d888027e68c7eb86d23198
2012-03-09 10:26:33 -08:00
Marc Blank c3643cf2b5 Fix search to work with IMAP
Change-Id: Ic3d9dfec0e30323e258e59630c2ca42bb1c7e98c
2012-03-08 17:23:49 -08:00
Marc Blank 26195ef64d Handle searchUri (first pass)
Change-Id: I75f7a757322e1d4f9b4eac92b9ecbb6a0cc6580b
2012-03-08 15:14:48 -08:00
Marc Blank 06a382f26f Fix up delete to handle trash/drafts deletions
* Also, while we're here, create default "last touched time" for drafts and
  sent so that they appear in the initial recent list

Change-Id: Ie2fe20b34625b5616dac5581f9bbd015f52a82bc
2012-03-08 14:36:26 -08:00
Marc Blank ef94d9285e Return searchUri with accounts; return empty cursor for now
Change-Id: I160676a492ef359007676c3aa9f56f9015b64c64
2012-03-08 08:17:52 -08:00
Marc Blank 420e97f0f8 Support attachment commands from UIProvider
Change-Id: Ib457808bdb424275c0abe6e1d86e3b9d33406780
2012-03-07 14:57:19 -08:00
Andy Huang b4a4ca99a9 Attachment SYNCED column is going away
Change-Id: I19476bc5a9a9e557e61a7347689129ce552b3ff9
2012-03-07 10:29:23 -08:00
Mindy Pereira 71b57354c1 Listen for application/email-ls so we can distinguish between email2/gmail2.
Change-Id: I1b30738b0d8a3f6830dfc6d67b6db385771bba15
2012-03-06 08:47:52 -08:00
Mindy Pereira 6ae4b080d4 Set compose to email2 until we get rid of the email app.
Email2 supports the compose intent.

Change-Id: I739ccb95b63806ed46dfa74b721b5a43665aa1c4
2012-03-06 08:24:22 -08:00
Paul Westbrook 27282ed34a Change the authority for Email2's account cache provider
Allow the account cache cursor to have the notification uri set

Change-Id: I8b01ada0b787fe7a709ad7feacacb91acc3da826
2012-03-05 16:21:14 -08:00
Marc Blank bc7f451442 Fix IMAP/POP notifications
* Make sure the default Inbox is always notified
* Use correct "new" count for mailbox

Change-Id: Id66c76e415589f6eb6fdad0649ae039fd45c1205
2012-03-05 10:23:38 -08:00
Marc Blank eccf7ee9a4 Hook up attachment queries; use more specific notifications
Change-Id: I01198b9ddf63e1edd9a35a81c15e0cf791702184
2012-03-02 09:16:26 -08:00
Marc Blank ceedaa3c54 Fix settingsQueryUri
Change-Id: I519f9e52ebe6a2eeeed78913e0f2b0c01539161e
2012-03-01 13:24:58 -08:00
Marc Blank d5187106d1 Handle account settings query in EmailProvider
Change-Id: Iae33b00c3fa17fe381c0c66d9e159a2717e0f201
2012-03-01 11:36:15 -08:00
Paul Westbrook 108f7b639a Support the always_show_images column
Change-Id: I4817ca936cc2775cd22b878d17045e0ede0af04d
2012-02-28 16:19:37 -08:00
Marc Blank 27be3474a2 Actually put composeUri into the cursor; d'oh!
Change-Id: I1295bb7501c3481f0d5e21e7cc76c1b19ab3047d
2012-02-28 13:25:10 -08:00
Marc Blank d9201da55b Setup composeUri for accounts in EmailProvider
* Add intent filter in manifest

Change-Id: Ifbacfcb6109d76d48dabb87eb45ea28ec4278ad8
2012-02-28 10:16:43 -08:00
Marc Blank 8c4b6e40cf Hook up settingsIntentUri in EmailProvider
Change-Id: Icc47a7dd29f6707443f5b56bdc6df86818295662
2012-02-28 09:15:53 -08:00
Marc Blank fd077592ee Use EmailProvider to create account list
Change-Id: Iedd99ecb95066c3b7e089e3b987a0caed44b97e5
2012-02-27 13:22:45 -08:00
Marc Blank 9a5e2a798e Fix clearing of mailbox notifications
Change-Id: Ieb98a8908ec067229dd449790da55085585ef17b
2012-02-26 12:52:57 -08:00
Marc Blank bf5caf97c5 Notify by mailbox, rather than account
* Update EmailProvider, removing two no-longer-used columns in Account and
  Mailbox

Change-Id: Ie0f10eb0ca315d73e82be968f7760a51a239ba3f
2012-02-24 14:51:59 -08:00
Marc Blank 98412cadfb Use account id instead of name for queries
Change-Id: I49f870491d2b090df345b956280dbb477436be60
2012-02-24 10:27:29 -08:00
Mindy Pereira 99dfd1edfd Merge "Remove folder sync_frequency column. UI doesn't need it." 2012-02-23 13:57:25 -08:00
Mindy Pereira b61bd298bd Remove folder sync_frequency column. UI doesn't need it.
Change-Id: I2a696115aed048f854174a8c4dc7666165b6ae1f
2012-02-23 13:52:11 -08:00
Marc Blank 87c84a6d96 Send sync status updates from POP3/IMAP
Change-Id: Ia1bb5d1a302d6dde8b8979e03a762d6d45ee8cd3
2012-02-22 16:27:26 -08:00
Marc Blank 6b9d94bf39 Make mailbox change notifier less noisy
Change-Id: I6eb7ac4f60acf6d92f4c094a373038fef222d97a
2012-02-22 12:59:49 -08:00
Marc Blank 1dc7772d43 Support syncStatus and lastSyncResult in EmailProvider
* Also, trigger a sync on refreshUri

Change-Id: Ia8dee593decfc2101873071ad64fcc3fd1fd5f23
2012-02-22 11:50:18 -08:00
Marc Blank 7db23e6acb Fix build break; support folder query
Change-Id: Ic2a62e2d00e0fe46a1a488d665818c47243c9d8d
2012-02-21 17:30:34 -08:00