summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | email: return default folder name for subfoldersJorge Ruesga2016-01-131-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For subfolders of system folder type return the remote folder name instead of translate it to the default folder type resource name. Subfolders shouldn't be considered as system folders. For example a SPAM folder of a SPAM root folder (Junk/Ham should be displayed as Ham instead of Junk). Change-Id: I2644b8da336e3f0983d24355aefe961aa8acf30b Signed-off-by: Jorge Ruesga <jorge@ruesga.com> (cherry picked from commit db1ca54cd325c64971240d92ed11dad175d83579)
* | | | | | | | Automatic translation importMichael Bestas2016-01-116-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I86e068c4114bfa5b831eb7be587027205225602c
* | | | | | | | Automatic translation importMichael Bestas2015-12-254-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I401c2158e4585f8144d5d4b1854a862d9e6728d5
* | | | | | | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-070-0/+0
|\ \ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Email into HEAD Android 6.0.1 release 3
| * | | | | | | am dcb985ea: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-07-150-0/+0
| |\ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | * commit 'dcb985eafe0a20e2cdc36c1882ef7104a22829ec': Import translations. DO NOT MERGE
| * | | | | | | Import translations. DO NOT MERGEGeoff Mendal2015-07-1118-39/+39
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id28ad6e6677405836a88dbd22a4b1a8f250434de Auto-generated-cl: translation import
* | | | | | | Email: Clean duplicated WRITE_CONTACTS permissionAdrianDC2015-11-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2f20c9d39de8132da16dd985350189a54e659244 Signed-off-by: AdrianDC <radian.dc@gmail.com>
* | | | | | | Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-161-0/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | git://codeaurora.org/platform/packages/apps/Email into cm-13.0
| * | | | | | | Email: Fix the ActivityNotFoundException when click "Update now"wangjing2015-11-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no activity response the intent of action VIEW and data auth://com.android.email.ACCOUNT_SECURITY. Add the intent filter for activity AccountSecurity, then this activity can handle this intent. CRs-fixed: 816922 Change-Id: I0b8982c63bd31d3fcca506fde9a1ad0d72e38cbb
* | | | | | | | email: Add an ActionBar to the mail app's PreferenceActivityJorge Ruesga2015-10-181-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id2ed98d2c2cd6648e179fb2942f3bc4479049cd0 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | | | | | | | Automatic translation importMichael Bestas2015-10-182-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Icd59665373860db2bce17afae4c4ff66ec706359
* | | | | | | | email: fix empty body updateJorge Ruesga2015-10-181-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, body text and html are removed from the content values to be stored as files in the filesystem. This could lead to a IllegalArgumentException because we passed an empty content value to the update operation. We must ensure that we update at least one item. Related BUGDUMP-4037330 and http://forum.cyanogenmod.org/topic/112563-massive-data-use Change-Id: Ib9ba10eb2cb86598bef6e5f8bc11553d09fc4ef8 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | | | | | | | Automatic translation importMichael Bestas2015-10-182-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I432e8ba78567048f45c939b15032ca96902353b2
* | | | | | | | Automatic translation importMichael Bestas2015-10-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I10b18c7f8674660d0ec1081c316361da49c434a8
* | | | | | | | Automatic translation importTom Powell2015-10-182-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3788414aaa622ea6a9fb1bdd496314ba2ccfb4e7
* | | | | | | | Automatic translation importTom Powell2015-10-181-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I62f9837f18625f827ff3ed1df3eb1574c7d64da1
* | | | | | | | Automatic translation importTom Powell2015-10-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I099dc2db2e4f1db8b3e8cc95d606108e9206ea77
* | | | | | | | Automatic translation importMichael Bestas2015-10-184-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I27808a9f2c08b848bcf44b07cbf3c8e0aeee7500
* | | | | | | | Automatic translation importMichael Bestas2015-10-182-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I08bd531f3bfaab3feb3ee72ea0eaadeb657eb5a1
* | | | | | | | Automatic translation importMichael Bestas2015-10-183-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I851a2a39059f7db6b773515475e9001a0b90806c
* | | | | | | | Automatic translation importMichael Bestas2015-10-183-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I976db98cec4a120d7d9bb9810c0e0dd597bf9f8c
* | | | | | | | Allow saving attachments even if there's no intent handling them.Danny Baumann2015-10-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For e.g. compressed files that doesn't mean they can't be opened, as they still can be unpacked by the file manager. Change-Id: I53c80b7bedb44732bc1cf346a83c1f6e39fb0da0
* | | | | | | | Allow download of compressed attachments.Danny Baumann2015-10-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assuming all compressed files are malware is a little extreme. Change-Id: I0ef776f3ad4af1fb73199989c99ab05171353d17
* | | | | | | | Automatic translation importMichael Bestas2015-10-181-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If61323bf1d0cdbdff1ad6f090b24debc96a2213a
* | | | | | | | Don't cancel PendingIntents used for AlarmManager.Danny Baumann2015-10-181-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating new ones (which is the implicit effect of FLAG_CANCEL_CURRENT) causes PendingIntent.equals() to return false for the new and the old instance, which in turn leads to AlarmManager failing to remove the alarm. Also remove the unneeded request code offsets. The intent actions for the various actions are already distinct, so we need to only identify between the intents that have the same actions; using the mailbox ID as request code is sufficient for that purpose. Change-Id: I9030c24a9c6b1c722b246601fde741f7027d3de7
* | | | | | | | Optimize connection loss and re-gain behaviour.Danny Baumann2015-10-181-54/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Schedule the ping restart through AlarmManager to be able to cancel it properly on connection loss, and make sure to only restart idle connections that aren't already idling (which may happen e.g. on bootup or if there was a sync request in the 30 second wait window). Change-Id: If62ffa0981a7a0a71ed7764a9724c07466c6d8a3
* | | | | | | | Refine thread handling.Danny Baumann2015-10-181-26/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove mailboxes from the list synchronously and just do the network I/O and thread joins in the background. Change-Id: I2a339e5982c103b69f1212627f1cc98e98a8a068
* | | | | | | | Properly unregister alarm manager callbacks.Danny Baumann2015-10-182-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2d474bc1cee168a5b76b8710b382498cd6c2fd59
* | | | | | | | Use AlarmManager to schedule an IDLE connection restart.Danny Baumann2015-10-181-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We also want to restart it during sleep. Change-Id: Ib2c26e06fb923487b10d94edc1bbd743ebb39fb1
* | | | | | | | Don't auto-register IDLE when gaining connection.Danny Baumann2015-10-182-47/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We request a sync in this case anyway, which in turn starts the IDLE connection anyway. If we're starting IDLE earlier, we do unnecessary work as the sync will tear it down just a few moments later. Change-Id: I9b99023fbe1aaab72638f6ef9d29223d9a325b7b
* | | | | | | | Do less work on IDLE refresh.Danny Baumann2015-10-184-57/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't do a full reconnection, but just a stopIdling/startIdling pair. In order to be able to do that, make sure the IDLE connection is fully shut down when stopIdling() returns, for which some refactoring was needed to avoid a deadlock on mIdledFolders: the ImapIdleListener callbacks acquire this lock, so stopIdling() now MUST NOT be called with mIdledFolders lock held. Change-Id: Ifa1677d7845722ccee2b1b9380c7b7e4014bcd97
* | | | | | | | Improve debug logging.Danny Baumann2015-10-182-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I13a99d5caadcc7bd2682791527f71a697d07f8d0
* | | | | | | | Automatic translation importMichael Bestas2015-10-181-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I47a88655494be6161c944d96532534d1c2ac1ad2
* | | | | | | | Use an inexact timer for the IDLE refresh.Danny Baumann2015-10-181-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also use a wakeup timer, as we can't rely on the screen being turned on at refresh time. Change-Id: If64c164fd151c63404d0d63d9c463556cc3d0658
* | | | | | | | Don't throw a NPE when operating on a destroyed list.Danny Baumann2015-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie4ca1fdd55031efa56448bf0237d0edab51ea349
* | | | | | | | Fix some more argument order issues.Danny Baumann2015-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1ea17a0fba4ff3af03ee8c0acbe9967bed92aae1
* | | | | | | | Simplify logic.Danny Baumann2015-10-181-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that either messages are fetched or a sync is initiated, and there can be no situation where neither happens. Change-Id: I73ec2482a5a86c54309634f434b7d8fd77d7c079
* | | | | | | | Fix some typos.Danny Baumann2015-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idd3018a03023efe02c3bcf40b44c8f5a5e304436
* | | | | | | | Don't solely rely on the presence of RECENT for checking for new mail.Danny Baumann2015-10-181-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It may happen (depending on server and/or timing) that only an EXISTS response is sent to the IDLE connection when new mail arrives. Don't discard that response, but evaluate it to determine whether there's new mail by checking whether the message count increased. Change-Id: Ia49714e6cd42dd71dfda8b7bbdf1fd622972edda
* | | | | | | | Don't re-sync when refreshing the IDLE connection.Danny Baumann2015-10-181-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The refreshing (done every 25 minutes) should be a cheap operation. Instead, do a (quick) re-sync after idling failed. Change-Id: Idfcc775417dc02417142e51ca546c9564c660aab
* | | | | | | | Fix crash when attempting to view EML files.Danny Baumann2015-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the correct, AppCompat based, theme. Change-Id: Ib8e72f781a69cadb738a5783371253b8bba328e7
* | | | | | | | Reset idling flag when cancelling early due to being cancelled.Danny Baumann2015-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Idde5f3a3fa04a1aa80ef4cdb9e3ba1ab01d3fcb5
* | | | | | | | Add some debug statements.Danny Baumann2015-10-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9295bedb5b7908c8ee873285c255816373d2c602
* | | | | | | | Assign debug tags to IMAP communication output.Danny Baumann2015-10-184-7/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows better tracking of the output if multiple connections are active. Change-Id: I900c9f9ecda06d3191c4cf82af7e774ae70b7dac
* | | | | | | | Fix argument order.Danny Baumann2015-10-182-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I087937c1323cfa1fd3d5400ef0a69d7476e36d20
* | | | | | | | Simplify code.Danny Baumann2015-10-181-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6c783afb9c436a35176134bfe7ae5264f2255b2f
* | | | | | | | Automatic translation importMichael Bestas2015-10-182-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If5410fff5db8cc70779e4523cc1483c3416c5256
* | | | | | | | email: catch the correct exception while closing the buffersJorge Ruesga2015-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BinaryTempFileBody#getBody()#getInputStream() returns a MessagingException not an IOException. This causes "com.android.emailcommon.mail.MessagingException: Unable to open body" exception messages and attachment messages not flagged as loaded. Change-Id: Ia8f25dd0a212ce52e3dd202c523c5db4a009604f Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | | | | | | | Fix ArrayIndexOutOfBoundsException.Danny Baumann2015-10-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This crash happens when the server isn't able to resolve the MSN: FATAL EXCEPTION: IdleReader 3:Inbox Process: com.android.email, PID: 3200 java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at com.android.email.mail.store.ImapFolder.extractImapChanges(ImapFolder.java:1641) at com.android.email.mail.store.ImapFolder.access$700(ImapFolder.java:77) at com.android.email.mail.store.ImapFolder$1.run(ImapFolder.java:294) Change-Id: I8a8c7cf3f2949630ee9db3646e5832246d69132d
* | | | | | | | email: fix NPEJorge Ruesga2015-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix possible NPE when protocol don't offers offerLookback (pop3) Change-Id: Id924e06e691d0ed99179fcd37fd213ac379340fd Signed-off-by: Jorge Ruesga <jorge@ruesga.com>