* Save reference to LoadMessageTask and cancel it in onDestroy
* Check whether we've already processed the source message
before calling processSourceMessage
* Fixes#2097361 (Duplicate addresses in reply/reply all)
* Fixes NPE (not in Buganizer) related to fast orientation changes
due to duplicated background task
Change-Id: Ib8115e29c9d88db1be009df4f549f925db8a1c19
Merge commit '8d5004a6eb28844c9d86a5e97a947043b693eee6' into eclair-plus-aosp
* commit '8d5004a6eb28844c9d86a5e97a947043b693eee6':
Modernize the code to load message and body from DB.
* Don't use unneeded managed cursors
* Put more of the DB work in async
* Don't try to load HTML and plaintext simultaneously
* Explicitly catch & handle exceptions during db ops
Bug # 2087051 (see also bug # 2122960 re unexpected db exceptions)
Change-Id: I446086bc4f3a85b2e766b12d1f7271e61e3ae8d5
Merge commit '8587aa61211d288d05b5fb2ddf02d69cabe6a9e2' into eclair-plus-aosp
* commit '8587aa61211d288d05b5fb2ddf02d69cabe6a9e2':
Make EmailProvider more threadsafe w/r/t transactions
Merge commit '9d43de5d1206eb54c4486cefec44a7bbd810bada' into eclair-plus-aosp
* commit '9d43de5d1206eb54c4486cefec44a7bbd810bada':
Remove parser logging from standard SD logging
* Since transactions can be nested, get rid of pointless/dangerous
flag for indicating we're in a transaction.
* Fixes#2131847
Change-Id: I2955e8a7659533e8ee9e71b949a042570466df45
Merge commit '02df29b647ae77f0ff283ab9ace737b077db3509' into eclair-plus-aosp
* commit '02df29b647ae77f0ff283ab9ace737b077db3509':
Fix bug that caused Cc field to be displayed when empty.
* Make sure to null out vars in onDestroy
* Use START_STICKY as return value for onStartCommand
* Start SyncManager from EasAuthenticator callback, rather from the
authenticator itself (otherwise, the Account might not have been
created when we start SyncManager)
Change-Id: I54ff8d5586e96f016b365587717710dee3202da8
Merge commit '24bbde37478bb717d72a13e880359d1ab28216a8' into eclair-plus-aosp
* commit '24bbde37478bb717d72a13e880359d1ab28216a8':
Revert change to AccountManager naming; use email address again
The IMAP & POP messages are being stored with cc="" instead of null,
which is taken care of by testing the output of toFriendly() instead
of the raw field from the DB.
Change-Id: I9460e7ae098ac5cd0ccd527381ffd4e6d9defae4
Merge commit 'dfe66e5eda51679ff61a5ae9da4c678abd7bb571' into eclair-plus-aosp
* commit 'dfe66e5eda51679ff61a5ae9da4c678abd7bb571':
Fix bug #2004167: update assets for Email authenticator and add small icon. Re-upload after path conflict.
We lost the reporting of connection errors in the UI. These were
originally displayed in FolderMessageList, under the name of each folder.
In the new implementation, we borrow the "undo" banner from Gmail and
display it whenever there is a connection error in a mailbox.
* Add banner, and code to animate it on/off the top of the list.
* Toggle banner whenever a connection state change occurs in MessageList
* Toggle banner whenever a connection state change occurs in MailboxList
* Slight change to callback semantics for sendMailCallback
Merge commit '91f12b8d520fbdcd26e6cf80fed26ce73d9ad782' into eclair-plus-aosp
* commit '91f12b8d520fbdcd26e6cf80fed26ce73d9ad782':
Fix problem with account settings not being saved (#2131153)
Merge commit 'a96c941d9ffa69897ff68a6298b69a2805b81d64' into eclair-plus-aosp
* commit 'a96c941d9ffa69897ff68a6298b69a2805b81d64':
Clean up transport encryption & port options
Merge commit '68b620cca0097e2fbde9498bd76129d081c5c9b2' into eclair-plus-aosp
* commit '68b620cca0097e2fbde9498bd76129d081c5c9b2':
Switch Email to new FastTrack API.
Merge commit '666dd867625d52c26d42e68e837f2e5234efb1bd' into eclair-plus-aosp
* commit '666dd867625d52c26d42e68e837f2e5234efb1bd':
Move chip in mailbox to the left
As part of http://b/2087222 we have a new API specifically
for launching FastTrack. This allows SHOW_OR_CREATE to be
returned to its original behavior.
I've tested this change and confirmed that it's WAI, and
may have also fixed up some deprecated references.
* Remove SSL-Optional and TLS-Optional choices from UI
* Remove SSL-Optional and TLS-Optional choices from providers.xml
* Switch over most SMTP connections from 25 to 587
* Clean up the providers list which has a lot of "optional" cases
that were probably falling back to unencrypted.
Fixes bugs:
2110243 Settings UI shouldn't offer SSL/TLS (if available) options
2089070 Update list of providers
Change-Id: I57be57b349eed33a5284121d904528279a36a91c
Merge commit '9e7a9801c7e08557c1b57433f58c519caf504ccb' into eclair-plus-aosp
* commit '9e7a9801c7e08557c1b57433f58c519caf504ccb':
Rename name of color
Merge commit '27bc39399e47e8f14cbb42834990546eb93851de' into eclair-plus-aosp
* commit '27bc39399e47e8f14cbb42834990546eb93851de':
Turn off debugging code that was accidentally left on.
Merge commit 'a6888d7448f27b39cb66a26efedf38b06ff9adae' into eclair-plus-aosp
* commit 'a6888d7448f27b39cb66a26efedf38b06ff9adae':
Fix sort order of MailboxList
Merge commit '8b240ed9dc57425804ed816265be7a032be21717' into eclair-plus-aosp
* commit '8b240ed9dc57425804ed816265be7a032be21717':
UI Refulesh of account folder list
Merge commit '925be3bf76a943375947be8565800c24e4d27a6c' into eclair-plus-aosp
* commit '925be3bf76a943375947be8565800c24e4d27a6c':
UI Refuresh of account folder list
Merge commit 'fcdebb69a5f7790c377e11e913536977cff19471' into eclair-plus-aosp
* commit 'fcdebb69a5f7790c377e11e913536977cff19471':
Revert very bad commit (strange merge problem)?
* This reverts commit 3f224e7efe.
* Use StructuredName.DISPLAY_NAME for Email display name on upload
Change-Id: Ic11713773d0e5b0db452dce3c9c31680ca45dbf5
This cleans up a number of bugs that could be generically described as
"MailService and Notifications not being updated when accounts or account
settings are changed."
This also fixes a number of race conditions, one of which was causing
accounts to be refreshed in a nearly-endless loop, and another which
could cause an endless loop of alarms to be posted & fired..
Specific changes:
* Update/reschedule any time an account is edited (this was accidentally
broken and being handled on EAS only.)
* Make sure we reschedule if an account becomes unavailable
* Clear notifications whenever refreshing accounts
* Reload local copy of account settings whenever refreshing accounts
* When restoring prev sync times (this happens when process is killed),
be sure to also recalculate next sync times.
* Set flags on the pending intents to make sure old pending intents are
not being reused.
* Set a watchdog each time we check the mail, so if we are killed during
the mail check, we will be woken up again to retry.
* Fix a 2nd race condition in which a just-created account fails to sync,
due to not (yet) having an inbox.
* Clean up handling of Controller callback:
* Fix a minor bug in which refresh of non-inbox mailboxes would delay
the next timed sync of the inbox for that account.
* If the checkmail ended in an error (result != null) the service was
never rescheduled.
Bugs Fixed:
bug 2078149 - Update service and notifications when account settings
change or accounts are added/deleted.
bug 2084412 - Fix race condition caused by first intent being refired
bug 2071484 - Make sure we wake up later if killed during mail check
Change-Id: I3ee0d1b389c652351de5eb798c32a2daea244067