diff options
Diffstat (limited to 'provider_src/com/android/email/mail/store/ImapStore.java')
-rw-r--r-- | provider_src/com/android/email/mail/store/ImapStore.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/provider_src/com/android/email/mail/store/ImapStore.java b/provider_src/com/android/email/mail/store/ImapStore.java index 5fc83e001..ddabe1c4a 100644 --- a/provider_src/com/android/email/mail/store/ImapStore.java +++ b/provider_src/com/android/email/mail/store/ImapStore.java @@ -501,6 +501,14 @@ public class ImapStore extends Store { connection.destroyResponses(); } bundle.putInt(EmailServiceProxy.VALIDATE_BUNDLE_RESULT_CODE, result); + + // Shared capabilities (check EmailProxyServices for available shared capabilities) + int capabilities = 0; + if (connection.isCapable(ImapConnection.CAPABILITY_IDLE)) { + capabilities |= EmailServiceProxy.CAPABILITY_PUSH; + } + bundle.putInt(EmailServiceProxy.SETTINGS_BUNDLE_CAPABILITIES, capabilities); + return bundle; } @@ -556,6 +564,7 @@ public class ImapStore extends Store { while ((connection = mConnectionPool.poll()) != null) { try { connection.setStore(this); + connection.setReadTimeout(MailTransport.SOCKET_READ_TIMEOUT); connection.executeSimpleCommand(ImapConstants.NOOP); break; } catch (MessagingException e) { |