Commit Graph

4076 Commits

Author SHA1 Message Date
Paul Westbrook 11472650d1 Fix apk attachments
Bug: 7585865
Change-Id: I20191523377d99472e333dece4d727415f97c67a
2013-04-01 17:20:27 -07:00
Paul Westbrook 3767da5d26 Add capabilities for search folder
Bug: 6693452
Change-Id: Ib55fca4f883a699eabdaabf35568bffa055d556f
2013-03-31 12:00:14 -07:00
Yu Ping Hu 7cc82371ec Improve error logging for mailboxNotification.
Change-Id: I5b16ac46ce8cdd6e8f791c9cea7d7ead7e053bdc
2013-03-28 19:10:23 -07:00
Yu Ping Hu c534638b7a Disable notification prefs until folder prefs are loaded.
Bug: 8485354
Change-Id: Id56c2634a16274e9340ad6ecb96661ee8a489d49
2013-03-27 17:40:38 -07:00
Yu Ping Hu 1dd937bf18 Prevent NPE when getting a bad mailbox id.
The mailboxNotification query apparently can return bogus
mailbox ids. This underlying bug still needs fixing.

Bug: 8482721
Change-Id: Icfbd0d986ab32fe878a0dbe09a3276322c75cafe
2013-03-26 15:00:30 -07:00
Paul Westbrook 28a344042d Prevent NPE
Also add additional logging for this case

Bug: 8372753
Change-Id: I87aa9ee46f0ca866745d62d27f4b40913f2e9b97
2013-03-22 18:21:19 -07:00
Yu Ping Hu 861c5c8c9e Guard against potential NPE.
Change-Id: I379da1f478b1b1fd1e488dbeff249cc10e3d48d5
2013-03-21 19:25:14 -07:00
Paul Westbrook 5a3aebbd2d Fix problem with sending attachments in Exchange
The problem was that when the attachment was attempted to be opened
from the Exchange process, it didn't have access to the cached file.
Instead, use a content provider uri to reference the cached file.

Bug: 8400456

Change-Id: I80abd66642e938cf09f73bf0e9bd049aa8d7ba1d
2013-03-21 17:34:19 -07:00
Yu Ping Hu 68a8e21248 Merge "Always create system folders during sync." into jb-ub-mail-ur9 2013-03-21 16:05:03 +00:00
Yu Ping Hu 8a11cb8fd1 Merge "Always show the starred folder." into jb-ub-mail-ur9 2013-03-21 16:04:53 +00:00
Scott Kennedy f16a7612c0 Exclude all inbox labels when we're viewing an inbox
Bug: 8426563
Change-Id: I7707c9ebf9ebcb73be73ef82f5f2212514671bfe
2013-03-20 17:51:59 -07:00
Yu Ping Hu a5a963321d Always show the starred folder.
Bug: 8383232
Change-Id: I8a5fa0dbdd9f4f2000c5b7d3347eb4946af0ae80
2013-03-20 15:34:56 -07:00
Yu Ping Hu 2192bf01e0 Always create system folders during sync.
Change-Id: I8ff6eb4f65d4207d7a2768c5fd837fad8cd47269
2013-03-20 15:23:51 -07:00
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
Yu Ping Hu 3e88d65aa8 Fix inboxes in POP for non-english.
Same as I27b422b4b9a3568c899beda41c96e61eb77c4ad3
but for POP.

Bug: 8393126
Change-Id: Ifa7ef3aa4080ec4c39309f988f041344fc4e8b54
2013-03-14 20:29:10 -07:00
Yu Ping Hu b3b47ef971 Merge ""Fix" Inboxes in non-English languages for IMAP." into jb-ub-mail-ur9 2013-03-15 02:42:29 +00:00
Yu Ping Hu 5187e702d6 "Fix" Inboxes in non-English languages for IMAP.
Without this change, languages where the inbox is not named
"Inbox" will never initialize IMAP accounts correctly.

This change "works" because
LegacyConversions.inferMailboxTypeFromName matches against
server name. Obviously this code's bad and I should feel
bad, but for now this change at least makes the app usable
in other languages and leaves the code in the simplest state
for fixing later.

Bug: 8393126
Change-Id: I27b422b4b9a3568c899beda41c96e61eb77c4ad3
2013-03-15 02:01:22 +00: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 700fb3c23d Merge "Revert "Change "hide checkboxes" to "show checkboxes""" into jb-ub-mail-ur9 2013-03-13 21:31:30 +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 88c80b775b Load replyall setting
Bug: 8374501
Change-Id: Ibf01a9c27ad05e3d6c1b172a255299d8af3b69ea
2013-03-12 21:28:26 -07:00
Paul Westbrook fdc5e52ef9 Merge "Simplification of app initialization" into jb-ub-mail-ur9 2013-03-12 22:24:40 +00:00
Yu Ping Hu 9d91dd8023 Specify correct sync extras for user-requested syncs.
BUG: 8364227
Change-Id: Icfc97c92e5ecc9c2abd83b73cf67a5e10408cede
2013-03-12 12:38:01 -07:00
Paul Westbrook 06c358dfee Simplification of app initialization
Specify a account query uri in a resource, and remove the old receiver

Change-Id: Ia04dccfc95e0bb1854bba2e6f51e2de1546d72ce
2013-03-11 23:48:44 -07:00
Paul Westbrook 5a3d863a43 Add support for feedback
Change-Id: I6de8c0117f79c0be05d3db2fc108f8bf61415783
2013-03-08 17:15:00 -08:00
Paul Westbrook 95bb350f38 Fix NPE when adding account with security policy
When adding an Exchange account with a security policy, Email
generates a notification to let the user enable the policy. The
code that generates the notification attemptes to load the folder
as part of the base notification.  Before the account policy has been
configured, it isn't possible to load the folder.  We need to handle
a null folder when generating the notification

Also, imporoved the logging when an exception is thrown from the
PolicyService

Bug: 8341882
Change-Id: I33ff57adc3c130e8318910e352146b8ea56f9a2c
2013-03-07 23:00:47 -08:00
Scott Kennedy 1cea05ac37 Merge "Make widgets work again" into jb-ub-mail-ur9 2013-03-08 01:45:22 +00:00
Yu Ping Hu 6967b6b6bc Merge "When folder is changed, also update conversation list." into jb-ub-mail-ur9 2013-03-07 19:44:50 +00:00
Scott Kennedy dfd2c87740 Make widgets work again
We can't send Folder parcelables to RemoteViews, so let's just send
what we need: two URIs and a String.

Bug: 8330949
Change-Id: Ic3f272e1bae4530cdc7776fd88eeb7bcb1a7dae3
2013-03-07 11:00:43 -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 32881e8dd3 Fix NPE after migrating older account
Change-Id: Ifeb3b1853ce3efd725227941103d29a00bc14fc2
2013-03-05 14:07:47 -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 15056dedc5 am fb4cc403: Check tablet mode through resources
# Via Vikram Aggarwal
* commit 'fb4cc403514e4d98e63f86ed9d5fa2ac442073d0':
  Check tablet mode through resources
2013-01-28 18:10:31 -08:00
Vikram Aggarwal fb4cc40351 Check tablet mode through resources
Change-Id: I1f29bce68a5736e00e38b5f0189c025bfbae433c
2013-01-28 18:05: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
Scott Kennedy f9997921cb Change Email vibrate setting from tri-state to checkbox
Migrate the old value as necessary.
Update the unit tests.

Cherry-picked from I1c276ffde3496cbc66846ed4a007088d39f20382 with
minor changes.

Bug: 7624838
Change-Id: I1b3fa331b62f556701bacba5ce9cd64305d9b52a
2012-11-29 12:16:33 -08:00
Scott Kennedy 722b7bc29d Do not vibrate in vibrate mode if ringtone is silent
An empty string as the ringtone URI was triggering the system
vibration while in vibrate mode.

Bug: 7624838
Change-Id: Ide1cb2d8ac5d1295c18770bd053dd1cd0a50feb0
2012-11-28 18:33:00 -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
Paul Westbrook 986881efe6 Fix multi message notifications
When multiple messages are received, now the View intent
will take the user to to contents of the mailbox, instead of
the viewing the last message

I have filed bug 7216375 to track the issue about receiving
multiple messages in different syncs

Bug: 7129870

Change-Id: I3fdf4680c62565615fcbefc75d72c2a721942604
2012-09-23 13:11:06 -07:00
Marc Blank 35177585a2 Merge "Remove Imap2 from AOSP tree" into jb-ub-mail 2012-09-23 10:25:24 -07:00
Marc Blank 0629f67215 Remove Imap2 from AOSP tree
Bug: 7215459

Change-Id: I0808920c12d0b43455e213fd47c90f4eaee7ee1c
2012-09-22 19:10:27 -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 54347010fb Allow legacy imap to sync
* Remove old (and dangerous) constants

Bug: 7210754
Bug: 7212263

Change-Id: I6a1463a653c5c4823a96c9fbb9ca37e53a45b48a
2012-09-21 18:03:17 -07:00
Marc Blank 6bbbc0d57c Prevent duplicate imap folders
Bug: 7212259
Change-Id: Iad43956c4caaf5a61c483af6ade91fa046342879
2012-09-21 17:37:12 -07:00
Marc Blank 78b8c04898 Add another test for "incomplete" accounts
* We have been erroneously marking some accounts "incomplete" and
  this can cause reconciliation to fail after deleting the
  accounts in Settings.
* Still need to investigate why the flag isn't cleared at times...

Bug: 7148506
Bug: 7166598
Change-Id: I0059580a6e4b6a5c54c09b8409c4358ff707ff77
2012-09-21 11:27:19 -07:00
Marc Blank 5c52385838 Restore Imap1
* Restore Imap1 code
* Legacy users will use Imap1
* Existing Imap2 users will continue to use Imap2
* New accounts will be created in Imap1
* More to follow

Bug: 7203993

Change-Id: I8b86fcada59a854fd464d5269c94d00ebae85459
2012-09-21 08:29:09 -07:00
Marc Blank ec0af7822c Merge "Quote username and password in login command" into jb-ub-mail 2012-09-20 11:13:29 -07:00
Marc Blank 6c477f5430 Quote username and password in login command
Bug: 7201914
Change-Id: Iff13a730c308198b01fdd3238149f54075b5d846
2012-09-20 09:57:39 -07:00
Paul Westbrook 652a907672 Hide reply all setting on tablets
Since tablets have the space to fit both the reply and reply all buttons
there is no need to show this setting on these devices

Bug: 7190341
Change-Id: I8a911ee964be6af31b63286db53b335a9e4a8396
2012-09-19 23:10:09 -07:00
Paul Westbrook 5e1db519d9 Fix crash when the Email process is killed
If the Email process is killed during setup, the Account information
wouldn't be set.  Specify this information in the intent as the intent will be delivered
again when the activity is restored

This is a short term fix. Ideally we would switch all of the intents for the setup
activities to use these extras to pass this information, or we would save the state of
SetupData in onSaveInstanceState

Bug: 7163201

Change-Id: Ic1758eb031cd113089073d03f3c2571e37a98b23
2012-09-18 21:02:35 -07:00
Paul Westbrook fb42a915e7 Merge "Fix crash with Email widget" into jb-ub-mail 2012-09-18 18:16:57 -07:00
Paul Westbrook 48b4864840 Fix crash with Email widget
Make sure the projection is correct for the sparse account
cursor

Bug: 7029165
Change-Id: If25ee7718fcd2577320404145de26a859fd4de0a
2012-09-18 18:12:55 -07:00
Mindy Pereira 58e3a2da4c Merge "Return Mindy's senders" into jb-ub-mail 2012-09-18 17:46:41 -07:00
Marc Blank af7d768e87 Return Mindy's senders
* Also prevent NPE

Bug: 7188573
Change-Id: Ic87e7b3411667262e2aa738a38cb2283c9340b03
2012-09-18 16:26:05 -07:00
mindyp 8ff282a260 Lots of fixes to line up with new multi/single move to folder dialog.
This leaves the picker with radion buttons for choosing the trash
and sent folders for imap.

Change-Id: I11bf32458b4d91bd21f2baf9260a69ac13026aaa
2012-09-18 15:56:53 -07:00
Marc Blank b203b2b119 Remove useless class and crazy UIDL logging
* The logging makes it very difficult to debug POP3 issues

Change-Id: Ic3ffb9e5b3240918dff3e713fc2a7c49976efe84
2012-09-18 15:07:50 -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 e161ca513d Properly check for deleted messages
Bug: 7011707
Change-Id: I9b977774e4b6d201dd96da1675bef7e3de88099c
2012-09-18 08:48:53 -07:00
Marc Blank 00d17498c3 Merge "Make sure provider is initialized before setServicesEnabled()" into jb-ub-mail 2012-09-15 14:18:41 -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 8fe771a9e3 Prevent infinite loops (ugh); fix list parsing
* We weren't accounting for string literals in list
  parsing
* We didn't account for a null result in bodystructure
  parse

Bug: 7162595
Change-Id: Idf0ae135dcfb968c722ab9fb56d5d253e74bd623
2012-09-14 11:51:37 -07:00
Marc Blank 787c534f28 Remove duplicate classes; trim addresses in RCPT TO:
Bug: 7133545

Change-Id: Ia1b928083246c5d54a5403b00168a20967517f09
2012-09-11 18:57:14 -07:00
Marc Blank f5ae803847 Merge "Make sure EmailContent is initialized" into jb-ub-mail 2012-09-11 10:14:20 -07:00
Marc Blank 92561ecd56 Make sure EmailContent is initialized
Bug: 7142845
Change-Id: I4299ab2627a4427ff8e96958b2c27f2f827e7794
2012-09-11 10:00:34 -07:00
Marc Blank 8580511541 Handle loadMore when no messages are loaded
Bug: 7129772
Change-Id: I9d2fd4f2bc488930c53e9fe44dc3fa852409b5c0
2012-09-11 09:05:59 -07:00
Marc Blank 74c79a5043 Modify intent names
Change-Id: Iad8b4842056a7f553363f9af47e65665c2b26a5d
2012-09-10 17:18:32 -07:00
Marc Blank 266064bcc7 Add "System Folders" settings
* Add this category and preferences for setting the trash
  and sent items folders

Bug: 7100092

Change-Id: I964e02e5e319b3f04b030d36ed7dca30ed046362
2012-09-10 11:07:18 -07:00
Marc Blank b621f625ef Merge "Don't reset user's port number in settings" into jb-ub-mail 2012-09-09 10:51:44 -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 665b19e779 Don't reset user's port number in settings
* Spinner onItemSelected is called prior to user input; this
  reverts the port to the security-based default

Change-Id: I1cb67e519e9305ef2384b5f5f305bff1e950e7c4
2012-09-09 10:41:39 -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
Marc Blank 8c8a68a717 Prevent looping w/ exceptions during IDLE
Bug: 7126413

Change-Id: If1d435a93845e0fd06be54328f6a0cbc161e5a9d
2012-09-07 09:10:05 -07:00
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 14e5f567ed Merge "Log capabilities (w/ STOPSHIP)" into jb-ub-mail 2012-09-06 16:03:51 -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 2f5897589e Merge "Clean up imap2 logging" into jb-ub-mail 2012-09-06 14:28:27 -07:00
Marc Blank 41e78c168e Clean up imap2 logging
Change-Id: I53b522ea33d8bb1b070d994fd765d1eec2f60fb4
2012-09-06 12:42:47 -07:00
Mark Wei 5b3fda11de Add supplementary account info to outbound google.com links
Bug: 6661601
Change-Id: Ifae6d4a0f30c8233a1b51971168a19f1548718ca
2012-09-05 13:43:51 -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 d2bf25ac8b Make sure body loading finishes when searching
Bug: 7107329
Change-Id: Ief78b1c31a7c363cd2e23ef1b7d4ff9e26c219b7
2012-09-05 10:25:34 -07:00
Marc Blank 7110183fe5 Merge "Put combined account last" into jb-ub-mail 2012-09-05 09:58:23 -07:00
Marc Blank 2651bcc7be Put combined account last
Bug: 7100404
Change-Id: Iff2884e635d030d840f297c15f5e2ee646185c5f
2012-09-05 09:49:55 -07:00
Marc Blank db1c845212 Handle mime encoded sender in convo list
Bug: 6901954
Change-Id: I5f9915592d4d859bd8ddd0185890015923390fbe
2012-09-04 19:33:48 -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 5bf0cef203 Merge "Show "Creating account..." dialog during account creation" into jb-ub-mail 2012-09-03 18:47:20 -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 b82437f563 Merge "Allow NULL values in genSelect" into jb-ub-mail 2012-09-03 18:35:39 -07:00
Marc Blank 0ef02e5773 Merge "Decode base64 message text" into jb-ub-mail 2012-09-03 18:34:42 -07:00
Marc Blank ada7dfef3f Merge "Reconcile all types of local accounts in MailService" into jb-ub-mail 2012-09-03 18:33:14 -07:00
Marc Blank f53490dc86 Reconcile all types of local accounts in MailService
Bug: 7078247

Change-Id: I43eb5b8a85e40217893bdc08cd839450358d07ea
2012-09-03 18:32:53 -07:00
Marc Blank 6eac1c9f1c Show "Creating account..." dialog during account creation
Bug: 7100373
Change-Id: Ic86d8b8c8fafe628a69e867d93719bb986c7c583
2012-09-03 16:44:33 -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 e6c576a629 Decode base64 message text
* Who the f*** sends text in base64.  Oh, that's right - we do.

Bug: 7074378
Change-Id: Ic20c6e2aba0b700cbb2cd032f5e541c9a9f83239
2012-09-03 14:01:30 -07:00
Marc Blank 96e13d4d8c Don't logout of Imap while body loading continues
Change-Id: Ibb79c8436851863dac582478fef32344b9269d3f
2012-09-03 10:52:44 -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 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
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 c992071671 Fix build break
Change-Id: I23cdd4c07faf97d471caf1e9dc37d81f412d8dab
2012-07-18 12:05:37 -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
Mindy Pereira ab076fa633 Account and Folder are both json objects now.
We dont have a seperate parcelable account and serialized account
string (for pending and regular intents)

Fixes b/6805342 Email crash on opening message from notification bar

Change-Id: I5b310fbafefb8dd82b9e222421fb624703b1676b
2012-07-16 14:35:44 -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 c5afb16430 Add a bunch of stuff missed earlier
Change-Id: I7f707446a963912fe5786dacb5569e68db572d1c
2012-06-28 12:16:59 -07:00
Marc Blank f419287f22 DO NOT MERGE: Move emailcommon2 sources to emailcommon
Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
2012-06-28 11:15:06 -07:00
Paul Westbrook d658fb6cac Set clear_when_task_reset flag on get content intent
Bug: 6401627
Change-Id: I546d51e605bf9483bd36f56adf5b21c1b3cd4c70
2012-04-26 18:48:08 -07:00
Paul Westbrook 65432baf25 set FLAG_ACTIVITY_TASK_ON_HOME on notification intent
Bug: 6384825
Change-Id: I9fc577ab3acdc608ce6e1781d438cc049c6ddcd6
2012-04-26 18:26:57 -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 824f776365 Fix up load of IMAP attachments
Change-Id: I2f55fc2c3d92eff72ebfd50ff3f782928f3a85a2
2012-03-12 09:11:46 -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 3408ad1113 Use proper column in loadAttachmentCallback
Bug: 6138389

Change-Id: Icd9b3454670d29e1fbd1dfc309700eb1643cc9ee
2012-03-08 21:18:04 -08:00
Marc Blank 97e4651c45 Repair brain damage
Change-Id: I1f2367476f78c5cd78d8a59e099debabceb95e3a
2012-03-08 19:48:11 -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 92f9de3c5c Merge "Return searchUri with accounts; return empty cursor for now" 2012-03-08 08:21:54 -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
Brian Muramatsu 6b4cdee94f am 938ec79a: am d163332b: am d5fdf404: Merge "Fix STARTTLS handshake error in Email\'s SmtpSender class"
* commit '938ec79ac92ef9119ad75b49691b2121886d867b':
  Fix STARTTLS handshake error in Email's SmtpSender class
2012-03-07 17:22:07 -08:00
Marc Blank 420e97f0f8 Support attachment commands from UIProvider
Change-Id: Ib457808bdb424275c0abe6e1d86e3b9d33406780
2012-03-07 14:57:19 -08:00
Marc Blank 70bbe5ec3c Add columns to Attachment for UIProvider use
Change-Id: I7f85431f409dbd6a5bd6d111b18d1fc89c00b9b2
2012-03-07 13:10:23 -08:00
Andy Huang b4a4ca99a9 Attachment SYNCED column is going away
Change-Id: I19476bc5a9a9e557e61a7347689129ce552b3ff9
2012-03-07 10:29:23 -08:00
Marc Blank af8f8a48ee Reconcile accounts in deleteAccountPIMData
Change-Id: Ifd17ef76e13ddcfa07c84429dca7bf19e6cbcfab
2012-03-07 08:43:08 -08:00
Brian Muramatsu d163332bc5 am d5fdf404: Merge "Fix STARTTLS handshake error in Email\'s SmtpSender class"
* commit 'd5fdf40490033bbafbd946e92094b18e931c1a76':
  Fix STARTTLS handshake error in Email's SmtpSender class
2012-03-07 02:09:18 -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 258ab6ee84 Prevent NPE in AccountCheckSettings
Bug: 5911793
Change-Id: I2834ab6d139e734baed6790098f0405e6a4e957a
2012-03-02 12:41:01 -08:00
Marc Blank e1a6088ee4 Don't try to refresh combined inbox
Bug: 6022440
Change-Id: I182c0da80debff5579b850c20015253864a0cf9f
2012-03-02 10:31:11 -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
Marc Blank c7a10613b3 Clean up updated messages in non-syncing mailboxes
* We'll just delete the updates for that mailbox

Change-Id: I6eec384334c9b1ea42ec064a49f938c772c44489
2012-02-29 16:50:14 -08:00
Misha Nasledov c31e2555bf Fix STARTTLS handshake error in Email's SmtpSender class
The Email.apk checks for "-STARTTLS" in the SMTP server's EHLO response
but SMTP servers may respond with STARTTLS on the last line as such:

250 STARTTLS

Or even as part of a line as such:

250-XSECURITY=NONE,STARTTLS

Checking for "-STARTTLS" in this case will break. The fix is to simply check
for "STARTTLS" instead.

See http://code.google.com/p/android/issues/detail?id=19109
And http://code.google.com/p/android/issues/detail?id=2309

Change-Id: I3a590a4398cb664f46875650550986a67f320f76
2012-02-29 03:15:10 -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