Commit Graph

307 Commits

Author SHA1 Message Date
Yu Ping Hu 9ae81e2af0 Move system folder string resources to emailcommon.
This permits us to move shared code for looking up system
folder names to emailcommon, which is also in this change.

Also renames emailcommon2 to emailcommon.

This is part of a multi-project submit with
I4a071a07c3e33aaa4ea404eb66a8db1eabc9ef0e and
I5746c0353783f9b29d52d6540472588c6542a6a2.

Bug: 8383232

Change-Id: I6c6eec4f1bcf2abd54c1ed05da1add8d894ee403
2013-03-19 19:45:52 -07:00
Yu Ping Hu 91107a4c56 Remove useless UI notifications in uiUndo.
The uris supplied for these are bogus (lack IDs), and at any
rate the actual undo itself should notify the UI. (That's
currently broken, but not for want of trying, but the point
is that needs to get fixed anyway.)

Bug: 8373349
Change-Id: Id0f4e9fa45f2ece42d07f1f350d841f00270a8d9
2013-03-18 14:41:24 -07:00
Yu Ping Hu d0e7d88f43 Fix undo to use the correct URI.
Bug: 8373349
Change-Id: Ia23b60a1f82be16cb48afe5cf239e1c588b192a1
2013-03-15 19:32:32 -07:00
Paul Westbrook 5ed8b266a4 Fix some problems with move message
Make Email respect the accepts moved mail flag

Don't throw an exception when receiving on the
folders_updated column

Bug: 8370675
Change-Id: I92c630577e6f572361bbaf68d8e5d0bfb6204951
2013-03-14 16:06:11 -07:00
Yu Ping Hu 8e2c4056ca Clean up dead code. Should be a no-op for functionality.
Also includes a fix for saving a draft that's already
been saved (used to create a new one).

The following were unused:
- accountIdAddToField
- mailboxIdAddToField
- uisendmail
- uisavedraft
- uiupdatedraft
- uisenddraft

Deleting those also allows us to remove the translation
from the Bundle used by calls to the ContentValues used by
update (since the update paths are now gone).

Change-Id: I87f2875e3272177a128a8ff65541e51b1f2d05fc
2013-03-14 14:40:39 -07:00
Yu Ping Hu a6cd7cbd63 Merge "Fix IMAP send by ensuring system mailboxes exist." into jb-ub-mail-ur9 2013-03-14 17:17:54 +00:00
Yu Ping Hu f7055e2618 Fix IMAP send by ensuring system mailboxes exist.
This is a quick fix to get it working ASAP, I will improve
how system folders are created when handling b/8383232.

Bug: 8307247
Change-Id: I6ea24ea756911c60d4eca69ce65d27dff33850c8
2013-03-14 17:07:00 +00:00
Alice Yang a833b36ec2 Revert "Change "hide checkboxes" to "show checkboxes""
This reverts commit 5742d44917.

Bug 8370186

Change-Id: Ie15b7c30aaba8df8678d15e19dcd38fddea6de13
2013-03-13 14:18:19 -07:00
Paul Westbrook 5a3d863a43 Add support for feedback
Change-Id: I6de8c0117f79c0be05d3db2fc108f8bf61415783
2013-03-08 17:15:00 -08:00
Yu Ping Hu fc0dae9cd7 When folder is changed, also update conversation list.
Also add the folder's total count to the extras for the
conversation list cursor.

BUG: 7480726
Change-Id: I3215fed561deb8430fd6d6c680bdb44ca87cc162
2013-03-06 19:01:41 -08:00
Paul Westbrook 9a95253846 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
2013-02-27 09:43:31 -08:00
Paul Westbrook 3e2fdd33e3 Fix account creation
Notifications were not being sent on account additions,
so the UI would reprompt to add an account, after an account
was added.  Now, the appropriate notifications are sent.

Also, fixed some cases where try/finally blocks were not used
to ensure that cursors were being closed.

Change-Id: If65934a34d995471fd5102fbe7e8cacbed5aae44
2013-02-26 12:04:29 -08:00
Paul Westbrook 82fef2b331 Remove usage of deprecated field
Change-Id: I6c2dc897e0389023f16c0d4887ee9489ebba4cd8
2013-02-22 17:07:01 -08:00
Mark Wei ffa3370b39 am ea2edb63: Set MIME type correctly on drafts when content provider does not provide it.
* commit 'ea2edb637036a7368b6ef82a0aafdb1a790e26e9':
  Set MIME type correctly on drafts when content provider does not provide it.
2013-02-22 15:50:45 -08:00
Paul Westbrook 7401a82634 Fix suggestions from last CL
Change-Id: I838a408d28b5427f591e8e453008d9945144ff21
2013-02-22 14:40:14 -08:00
Paul Westbrook e04b736866 Remove deprecated fields/members
Change-Id: I74d5f2eb4ed778f0590a3c935e6b79c335a3bdd7
2013-02-22 12:50:11 -08:00
Paul Westbrook 779fe02003 First part of switching Email to use ContentResolver#call
This CL includes the call() support.  Subsequent CLs will remove the
deprecated UI provider uris, will add attachment caching to Email

Bug: 7381557
Change-Id: Iff59c7c0503c6e9ccda1d15954f72ffa78331b4e
2013-02-22 10:09:03 -08:00
Mark Wei ea2edb6370 Set MIME type correctly on drafts when content provider does not provide it.
Bug: 8235172
Change-Id: Ia8bc575fb902de882dfbba3bfc7cd3acb625ce2c
2013-02-21 18:10:10 -08:00
Yu Ping Hu 512433135c Merge "Fix how visibleLimit for a Mailbox is set." into jb-ub-mail-ur9 2013-02-16 03:01:08 +00:00
Yu Ping Hu 66eef4565d Fix how visibleLimit for a Mailbox is set.
- Make sure visibleLimit stays <= totalCount.
- Don't reset it to 0 every time user enters a folder.

Also sets Folder.totalCount = Mailbox.folderCount
(rather than Mailbox.messageCount).

BUG: 7480726
Change-Id: Iae084d9445f483dca2b1da052ffd4dd7d091c6f6
2013-02-15 17:02:40 -08:00
Scott Kennedy 2f9c66d08b Use swipe preference for archive/delete action
Since some people prefer delete over archive, we will use their
conversation list swipe preference to determine whether to show
a "Delete" action or an "Archive"/"Remove label" action. "Delete"
will be shown if they have selected "Always delete"

UR9 version of I4eb0d408474a9f613cc4267c3851cc7277a22ebd

Change-Id: Ia2f1382b88c1ee6f64e864cb8b780d02821b673d
2013-02-14 14:46:02 -08:00
Vikram Aggarwal 132a3f0977 Merge "Add user assignable category for mail foldders if it accepts moved messages" into jb-ub-mail-ur9 2013-02-11 17:03:46 +00:00
Rohan Shah 5ba32cc2b9 Add user assignable category for mail foldders if it accepts moved messages
Email requires a user assignable category in the case
the user is moving labels/folders from a category the
user should not be allowed to view (i.e. sys labels).

Change added flag under function where if it allows
moved messages, it will allow the user to assign
there as well.

Bug: 8157593

Change-Id: Icc8a5d4587ef9180d32207613da4f31ddc8854f1
2013-02-08 11:19:11 -08:00
Scott Kennedy b34608228f Move notifications to UnifiedEmail
This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d (UnifiedEmail)

Change-Id: Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2
2013-02-08 09:48:22 -08:00
Scott Kennedy a5abf7b338 am 7fdde9bb: Cache column name/indexes so we can use getColumnIndex()
# Via Scott Kennedy
* commit '7fdde9bb4a24e931618a7a64227e2194c89034da':
  Cache column name/indexes so we can use getColumnIndex()
2013-02-06 17:26:30 -08:00
Scott Kennedy 7fdde9bb4a Cache column name/indexes so we can use getColumnIndex()
MatrixCursor doesn't do this, so we need to add our own cache.

Depends on Ia5ffd31f54a2a335f495df5e0d1a0886ee08c14b

Change-Id: Ica78e3cec747bf86fcef16508156e359216c64fe
2013-02-06 17:09:42 -08:00
Vikram Aggarwal d02b69c5cc am 4b09765a: Added veiled pattern updates through provider
# Via Vikram Aggarwal
* commit '4b09765a2e8a0fd22a9db0e876aaaada4246aff8':
  Added veiled pattern updates through provider
2013-01-28 18:03:21 -08:00
Vikram Aggarwal 4b09765a2e Added veiled pattern updates through provider
Change-Id: I09cef0865e3d29f44a93a3887ff72676ab868b14
2013-01-28 11:54:10 -08:00
Paul Westbrook 632ab1d633 DO NOT MERGE Revert "Change "hide checkboxes" to "show checkboxes""
This reverts commit 5742d44917.
2013-01-23 10:16:06 -08:00
Scott Kennedy 5742d44917 Change "hide checkboxes" to "show checkboxes"
Change-Id: Ie44dc65acab4ed94e8d7b3b26392872c4419a603
2012-12-21 12:24:26 -08:00
Andy Huang 68a3607895 convert rawFolders into a blob/Parcel
Requires CL I42eadd.

Bug: 7690709
Change-Id: I303f3c5479402a0eed9037ba2c95e00bdc7087b8
2012-12-10 16:37:22 -08:00
Vikram Aggarwal 2fbe5abcac Notify the folder list in addition to the specific folder.
We might be dropping updates to the FolderListFragment since updates
to individual folders do not currently update the top-level
folder-list URI.

Bug: 7487632 EmailProvider doesn't notify on the folder list URI

Change-Id: I7c673eefd2d9cbaf01a5ca3098f7c4728f841f40
2012-11-06 13:48:54 -08:00
Paul Westbrook 9479110829 Fix missed case for suppressing undo
Change-Id: I1393cf87f0372dfa20c46265ce9e26cbf34b15c2
2012-11-05 13:49:23 -08:00
Paul Westbrook c7636b8a47 Add support to suppressing undo in Email
Bug: 7465798
Change-Id: I5f07b7821bb72ef8c0766da82d335792b010a11c
2012-11-05 13:33:12 -08:00
Paul Westbrook 7e49f89a3a Return a value for conversation mode
Bug: 7312540
Change-Id: I0266df9a71f237666efa17360269f9ee5201668f
2012-10-13 14:42:15 -07:00
Vikram Aggarwal 016310a054 Fix account order.
The combined account is added both at the top and the bottom
currently: Check L.3103 of EmailProvider.java.

Bug: 7100404 Order of accounts in email is broken

Change-Id: I1cbff04efbb0b50630c655918ffdfa4a5d11c2f7
2012-09-22 16:08:18 -07:00
Marc Blank 114e314968 Return contentUri for all attachments
Bug: 7189815
Change-Id: If76d3a2038b3260fa44a7662854b03f7b6a1696c
2012-09-21 21:18:10 -07:00
Marc Blank 887ea25ed5 Merge "Show display name in convo list" into jb-ub-mail 2012-09-18 11:17:17 -07:00
Marc Blank d40524bbac Show display name in convo list
Bug: 7170872
Bug: 7144575
Change-Id: Iceaa0616b1fd2db842cd6af0d818a4cc2a2189cc
2012-09-18 11:10:41 -07:00
Marc Blank eaf7e3bce7 Don't smartsend reply inappropriately
Bug: 7172780
Change-Id: Id43b75efab9c6f7a32e7c6bd42696547cc81f413
2012-09-18 09:47:57 -07:00
Marc Blank 93bb868b87 Make sure provider is initialized before setServicesEnabled()
Bug: 7142845
Change-Id: Idf793c5d07e3ea4c4a482696c5a27914fba66022
2012-09-15 10:45:21 -07:00
Marc Blank 19e9291c9a Merge "Use correct attachment provider authority" into jb-ub-mail 2012-09-09 10:45:37 -07:00
Marc Blank 393b859577 dump is @hide; remove @Override
Change-Id: I4df3a75a7d0747e62ddd4bbc23ab4008344e49a1
2012-09-09 10:20:12 -07:00
Marc Blank 323954df41 Merge "Create requireSetup attribute; use it for gImap" into jb-ub-mail 2012-09-09 10:15:18 -07:00
Marc Blank 16b07e11c7 Merge "Use resource based mime type for application" into jb-ub-mail 2012-09-09 10:15:05 -07:00
Marc Blank 6e5bccf2c9 Use correct attachment provider authority
* Make sure new code works with old Attachment rows

Bug: 7130972
Change-Id: Ia5d258930f39266517eead535a92bb4380fdb594
2012-09-09 09:32:14 -07:00
Marc Blank 81b0f74efa Create requireSetup attribute; use it for gImap
Change-Id: Id5f37861e4d6f2c2ed0fe98bd8b4d7eb73868c09
2012-09-08 13:08:50 -07:00
Marc Blank 7e5df63fc9 Use resource based mime type for application
Change-Id: I41a3cbf5c810668f9b0885f6614b2e48215901b2
2012-09-08 10:50:40 -07:00
Marc Blank af092bd5f8 EmailProvider dump
Change-Id: Id975c99427b41f4a56235dc6ba5ad515d6700fe5
2012-09-07 19:02:25 -07:00
Marc Blank fdb1635868 More work on FolderPicker
* Only show for Imap2 (hard-coded now w/ STOPSHIP)
* Don't show more than once
* Make sure all folders are set up completely before showing

Change-Id: Ie745c7e2f155496482d213ecfc9eff2009bb23ee
2012-09-07 14:14:19 -07:00