summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* email: suggested contactsHEADlp5.0Jorge Ruesga2015-03-112-8/+215
| | | | | | | | | | | | | | | | | | | | This change adds support for suggested contacts (email addresses not in the contact provider and received via email). The implementation creates a new separate "extras" database (to avoid conflicts with future aosp changes). In the table SuggestedContacts are stored every email address present in every email inserted in the database. This allow to display this contacts in the RecipientEditTextView when compose an email. Suggested contacts are selected by account (only those ones received by that account). This features is opt-out by default, but it can be activated in general settings by choosing the suggested contact mode: * none: Not active * recents: Those received within the last 7 days * all: All the suggested contacts Change-Id: I156c3b1e2c4e4cff985a2183bc72b805bd596f3b Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Don't fetch deleted messages from IMAP folderDaniel Volk2015-01-141-2/+4
| | | | | | | | | | | | | Fetching messages from an IMAP folder within a specific date range returns messages marked as deleted, also. Unlike every other getMessages() method, which filter out deleted messages. This leaves server deleted messages untouched in the mail conversation view, even when the folder is synced manually. This patch adds "NOT DELETED" to the IMAP search command, when searching for mails in a given date range. Change-Id: I49e4adfcab9a1de1d1baa4700462a82df651f3cb
* Email: change to switchesLars Greiss2014-12-042-18/+18
| | | | Change-Id: If34c0543e98255ae12c29bde1746b84fc1abd821
* Email: Add native heads up support per account (1/2)Lars Greiss2014-12-042-7/+83
| | | | | | | | | | | | | | Add native heads up notification support. User can set on every account if he or she want this account as heads up notification or not. This patch adds the settings for it as well the complete handling. Due of a half broken NotificationCompat.Builder class we switch here to the Notification.Builder class to get access to the methods we need. This is no problem here due that we do not need compatibility on lower API's Adapted to LP Change-Id: Ia88d2f15f0eaf7ae024ab07dd4f74c6858f17f76
* Add missing "Notify for every message"...Dimitris Kazakos2014-12-042-0/+15
| | | | | | | | Since Email now uses UnifiedEmail, this setting defaults to false and there is no way to enable it; this commit adds this option, which is then honored by the unified notification engine. Change-Id: I5d4464026c6532c9aac87016368cf8e13d9cfbb5
* DBHelper: Support upgrades from CM11Ricardo Cerqueira2014-11-101-4/+25
| | | | | | | | Add the new columns when coming from v126, add the old ones when coming from any other value (or creating) so that they're there when the feature gets reintroduced Change-Id: I48ec042b30afbcefd43bdad0042147b6b0d2249f
* Add MAIL_SERVICE WAKEUP, SEND, MOVE, READ, DELETE MESSAGE actionsAshwini Munigala2014-11-045-4/+388
| | | | | | | | | | | | | Add change in Email app to process following intents from Bluetooth app, for MAP MSE support. - com.android.email.intent.action.MAIL_SERVICE_WAKEUP - com.android.email.intent.action.MAIL_SERVICE_DELETE_MESSAGE - com.android.email.intent.action.MAIL_SERVICE_MOVE_MESSAGE - com.android.email.intent.action.MAIL_SERVICE_MESSAGE_READ - com.android.email.intent.action.MAIL_SERVICE_SEND_PENDING Change-Id: I2b46265ba20c6f333c9e6d1b19ee73f5a066f1ff
* Change method signaturePaul Westbrook2014-08-191-1/+2
| | | | | Bug: 16153528 Change-Id: I7f183bab825176814275f6c99981554e4529983a
* Merge "Fix folder sync settings for tablet" into ub-gmail-ur14-devTony Mantler2014-08-162-16/+30
|\
| * Fix folder sync settings for tabletTony Mantler2014-08-152-16/+30
| | | | | | | | | | | | b/17068128 Change-Id: Ia61cba10fb0edc97448d9ff39aa58578db1d4ac7
* | Merge "Update Notifications Icon (Email)" into ub-gmail-ur14-devRohan Shah2014-08-151-1/+1
|\ \
| * | Update Notifications Icon (Email)Rohan Shah2014-08-151-1/+1
| | | | | | | | | | | | | | | | | | Rest in pieces little gmail icon :( Change-Id: I14459cba33cf61f6717d922bdb006d8d56ad893c
* | | Fix providers.xml alternate diversionTony Mantler2014-08-151-6/+9
| |/ |/| | | | | | | | | b/17048013 Change-Id: If2bc857266a6ba1445bf1fabbaed179c1b13a14f
* | Merge "End of Life screen for Email" into ub-gmail-ur14-devJames Lemieux2014-08-122-13/+17
|\ \ | |/ |/|
| * End of Life screen for EmailJames Lemieux2014-08-142-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | b/16843301 This introduces a new build target: EmailGoogleTombstone. Building with a tapas line that includes that target will produce EmailGoogleTombstone.apk. The apk includes the EmailProvider and AttachmentProvider (for migration to Gmail) and an activity that explains to the user where to find their email data. Change-Id: Ib8192b46d9017e04f5c99f5c8e509531198eec07
* | Update Notifications (Email)Rohan Shah2014-08-131-1/+1
| | | | | | | | | | | | | | Switched out icons (For updated mail notify icon). Bug: 16987147 Change-Id: I695b4c51daddc47eecbe7d856de642932190c4bb
* | Extend MailboxSettings to handle full folder listTony Mantler2014-08-133-38/+122
|/ | | | | | b/16541463 Change-Id: If428413ad258497a5654fa095d51cd60f6ed4e18
* Don't return a protocol for a null account typeTony Mantler2014-08-071-1/+5
| | | | | | b/16735532 Change-Id: Ie83709fe3a9942ef946cf86f853b3d6565dc5799
* Switch null checks to TextUtils.isEmpty()Tony Mantler2014-08-072-3/+4
| | | | | | b/16872654 Change-Id: Ib8943f068ad6988ff08f8bfd54e2df8fa5ce0274
* Merge "Make sure that we close the cursor." into ub-gmail-ur14-devAnthony Lee2014-08-071-12/+20
|\
| * Make sure that we close the cursor.Anthony Lee2014-08-071-12/+20
| | | | | | | | | | | | Found this problem while testing Email migration. Change-Id: I07862b5c4dd2ef189a87f7dbd085030c448f365f
* | Skip null/empty account typesTony Mantler2014-08-071-5/+4
|/ | | | | | b/16730607 Change-Id: I6b3207edbf3dc841dd2222e92f69d270a0caf773
* Fix `getAllAmAccounts()` returning duplicated accountsRégis Décamps2014-08-061-11/+13
| | | | | | | | | | Use a set to save the account types, in order to de-duplicate identical types. Also, remove unused imports. Bug: 16811863 Duplicate POP accounts are listed Change-Id: If699d03b2c12959cfde9926bec9352b71c3d8912
* Support the new MOVE_FAILED_TO_DRAFT operation in EmailJin Cao2014-08-011-1/+3
| | | | | | | | | | Default the MOVE_FAILED_TO_DRAFT action to simply deleting the failed message from Outbox for Email since this is the current behavior. b/4080109 Change-Id: I74917d0b2581e2dd145906dddfac395efc2d8206
* temp fix for b/16730607Andrew Sapperstein2014-08-011-1/+6
| | | | Change-Id: I1474955d82442ad10527e2a308fa19bec7b144e9
* Add Exchange fallback and support diverting to GmailTony Mantler2014-07-313-2/+58
| | | | | | | b/16679701 Change-Id: I59d7cb4a803f0ad8e782614d0c6cc635318d2375 (cherry picked from commit d039322f7402ef402eb66c92b899510dd6649e2d)
* Imap folders are case sensitiveTony Mantler2014-07-311-6/+6
| | | | | | | | | For real this time b/16686642 Change-Id: Ib484c2ac3505ff35bc643bbc51597f1ceb4e7f7e (cherry picked from commit 60e5abbc563ca7ac963bbcb670e474c6e331b52d)
* Add support for disabling OAuth on setup flow onlyTony Mantler2014-07-301-0/+6
| | | | | | b/16633826 Change-Id: Iea984ae656fbf3fe44de7598fdb9357a18d52a74
* Convert server settings to dialogTony Mantler2014-07-292-1/+3
| | | | | | b/8134410 Change-Id: I3c4c9a02a37571a9c7af10971840fbe39458244e
* b/16570506. Only enable alternate EAS authenticator when needed.Anthony Lee2014-07-283-15/+29
| | | | | | | | The old code was turning on both the EAS authenticator and the alternate EAS authenticator (with the offending string). Now it turns on the right one depending on the VendorPolicyLoader. Change-Id: I69945e695f28fdb8bd33bf49ee253a354c05b30c
* Merge "Disable Eas Authenticator if Exchange is not installed" into ↵Martin Hibdon2014-07-243-10/+30
|\ | | | | | | ub-mail-master
| * Disable Eas Authenticator if Exchange is not installedMartin Hibdon2014-07-243-10/+30
| | | | | | | | | | | | b/16541219 Change-Id: Ibc2a9608278762e6af4f7c429b08ad38935bfcae
* | Factor out the guts of setupAccountManagerAccount()Anthony Lee2014-07-241-4/+23
| | | | | | | | | | | | | | The new function will be called by the old function but it also allows me to use it from the Migration code. Change-Id: If9b2ad82479d60c63e8924d42fb6ce18d7d9a2f8
* | Add ACCOUNT_ID to ACCOUNT_COLUMNS and populate it with Email fromRay Chen2014-07-221-0/+5
|/ | | | | | | | EmailProvider. b/16400882 Change-Id: I2765fa6cea392e07b878fe063c7234582a485b1d
* IMAP mailboxes are case-sensitiveTony Mantler2014-07-211-2/+1
| | | | | | b/15694346 Change-Id: I4a59979f40d6118bb9c7e27069ea228ba783a4c3
* Add support for launching setup flow via intent actionTony Mantler2014-07-181-8/+7
| | | | | | b/16371282 Change-Id: I9ee45d769a6f73fe1e44b7ca7607f8f0b54a703d
* com.android.mail.providers.Account contructors are no longer publicRay Chen2014-07-166-7/+8
| | | | | | and clients need to use Account.builder().buildFrom(...) instead. Change-Id: I7559540458ae549c399effc59392930ec914ffcc
* Merge "Add "Add Account" to prefs headers" into ub-mail-masterTony Mantler2014-07-151-1/+8
|\
| * Add "Add Account" to prefs headersTony Mantler2014-07-141-1/+8
| | | | | | | | | | | | | | | | Borrowed + icon from authentication widget b/16298155 Change-Id: I36d0eb2c7b9e98442d72481254d9a4da2ae3c999
* | Merge "Marking conversations read/unread in the TL removes the snippet text" ↵James Lemieux2014-07-151-0/+2
|\ \ | | | | | | | | | into ub-mail-master
| * | Marking conversations read/unread in the TL removes the snippet textJames Lemieux2014-07-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16322573 EmailConversationCursor was not populating the firstUnreadSnippet and lastSnippet values in ConversationInfo. When they remain null and are subsequently set as the snippet text, it effectively removes the snippet. Change-Id: I1c17508bbc8857d00d8678dca4a7ad791dcae049
* | | Merge "Make quick response UI in settings toggleable" into ub-mail-masterTony Mantler2014-07-151-13/+25
|\ \ \
| * | | Make quick response UI in settings toggleableTony Mantler2014-07-151-13/+25
| |/ / | | | | | | | | | | | | | | | b/16302932 Change-Id: I24b289ffbecd4f127e6109b56c0af7f9c4b00879
* / / Add new account intent is no longer forwardingTony Mantler2014-07-151-1/+1
|/ / | | | | | | | | | | | | | | It now launches directly instead of bouncing through settings b/16309940 Change-Id: I23ab9902f3b02e466626e08b842a5228193a7909
* | Merge "Fix NPE in uiSaveDraftMessage" into ub-mail-masterJay Shrauner2014-07-141-2/+3
|\ \ | |/ |/|
| * Fix NPE in uiSaveDraftMessageJay Shrauner2014-07-141-2/+3
| | | | | | | | | | | | | | Verify that restoreMessageWithId returns a non-null result. Bug:14655866 Change-Id: Ia48d5fd96a4314f4e10e9a8c3764ad52f2aa5eed
* | Rename AccountSettings to EmailPreferenceActivityTony Mantler2014-07-142-3/+3
| | | | | | | | Change-Id: I972cdae394081b5ec028c38b9274e64ef5822d4a
* | Merge "Update IEmailService" into ub-mail-masterMartin Hibdon2014-07-143-8/+16
|\ \ | |/ |/|
| * Update IEmailServiceMartin Hibdon2014-07-113-8/+16
| | | | | | | | | | | | | | | | | | | | | | Add version support Change deleteAccountPIMData to deleteExternalAccountPIMData. Data kept inside the EmailProvider can be deleted from within the Email app. Only external data (e.g. contacts and calendar) need to be deleted by the service which has protocol specific knowlege. Change-Id: I875d3051d0cfdbaf52775ec20eb114a345894a93
* | Merge "Remove direct entry points to AccountSettings" into ub-mail-masterTony Mantler2014-07-1414-254/+91
|\ \ | |/ |/|