History log of /packages/apps/Email/src/com/android/email/provider/EmailProvider.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
270a422efd5744b4b15cecbcfc0c349131d0c767 21-May-2013 Yu Ping Hu <yph@google.com> Synchronize checkDatabases.

This function can delete the database while other
threads are trying to read it, which is bad. The readers
are already synchronized methods so this should prevent
that.

Bug: 8964541
Change-Id: Ib2f606f274500f0935a5f0211609cf458a0a6005
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bc47398187c6ffd132435e51d8d61e6ec79a79db 25-Sep-2012 Paul Westbrook <pwestbro@google.com> Merge Email1 into MR1

Change-Id: I45289d46b65faffc7a3a3dd46382899162f3aaab
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
24e11036e76f735accb9bf812d2a657dce8f5c07 24-Sep-2012 Vikram Aggarwal <viki@google.com> am 016310a0: Fix account order.

* commit '016310a054d54c11490244f2725f5323f4b2ee35':
Fix account order.
d47027b92d07342223b6094748787414ce22e549 24-Sep-2012 Marc Blank <mblank@google.com> am 114e3149: Return contentUri for all attachments

* commit '114e314968f507b4237e693d279befe261b00f02':
Return contentUri for all attachments
016310a054d54c11490244f2725f5323f4b2ee35 23-Sep-2012 Vikram Aggarwal <viki@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
114e314968f507b4237e693d279befe261b00f02 22-Sep-2012 Marc Blank <mblank@google.com> Return contentUri for all attachments

Bug: 7189815
Change-Id: If76d3a2038b3260fa44a7662854b03f7b6a1696c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d42afadc5af35e3c06c3f3024498e51b6928bf7f 18-Sep-2012 Marc Blank <mblank@google.com> am 887ea25e: Merge "Show display name in convo list" into jb-ub-mail

* commit '887ea25ed5a7074eddbe3a2fcf8c817269631ec1':
Show display name in convo list
887ea25ed5a7074eddbe3a2fcf8c817269631ec1 18-Sep-2012 Marc Blank <mblank@google.com> Merge "Show display name in convo list" into jb-ub-mail
d40524bbac2e55cafc7bf6d634dde093fd432b0a 18-Sep-2012 Marc Blank <mblank@google.com> Show display name in convo list

Bug: 7170872
Bug: 7144575
Change-Id: Iceaa0616b1fd2db842cd6af0d818a4cc2a2189cc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
668dd9211fef4214a7aa16b3b32ee3c80e4e3850 18-Sep-2012 Marc Blank <mblank@google.com> am eaf7e3bc: Don\'t smartsend reply inappropriately

* commit 'eaf7e3bce7a7f8f31c5677db188dec74072a43ca':
Don't smartsend reply inappropriately
eaf7e3bce7a7f8f31c5677db188dec74072a43ca 18-Sep-2012 Marc Blank <mblank@google.com> Don't smartsend reply inappropriately

Bug: 7172780
Change-Id: Id43b75efab9c6f7a32e7c6bd42696547cc81f413
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
60061a460f1a9cc90ba83e5c15e4bbd1a3a72ab7 16-Sep-2012 Marc Blank <mblank@google.com> am 00d17498: Merge "Make sure provider is initialized before setServicesEnabled()" into jb-ub-mail

* commit '00d17498c34776639369306791fd7f557605dfe4':
Make sure provider is initialized before setServicesEnabled()
93bb868b870980cb7e62bb30a4d7e9b61528d90c 15-Sep-2012 Marc Blank <mblank@google.com> Make sure provider is initialized before setServicesEnabled()

Bug: 7142845
Change-Id: Idf793c5d07e3ea4c4a482696c5a27914fba66022
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d3f928eee98664889ad4ac3491a6ae8f9968e073 09-Sep-2012 Marc Blank <mblank@google.com> am 19e9291c: Merge "Use correct attachment provider authority" into jb-ub-mail

* commit '19e9291c9ad42a3e6be10e5ff4a12f9bbe8adc05':
Use correct attachment provider authority
19e9291c9ad42a3e6be10e5ff4a12f9bbe8adc05 09-Sep-2012 Marc Blank <mblank@google.com> Merge "Use correct attachment provider authority" into jb-ub-mail
21e7e2c626eb9de890ba724f6084adb565f73f65 09-Sep-2012 Marc Blank <mblank@google.com> am 393b8595: dump is @hide; remove @Override

* commit '393b85957781baab7d648071b5b2288a26976881':
dump is @hide; remove @Override
393b85957781baab7d648071b5b2288a26976881 09-Sep-2012 Marc Blank <mblank@google.com> dump is @hide; remove @Override

Change-Id: I4df3a75a7d0747e62ddd4bbc23ab4008344e49a1
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7bc7ddf89146b6cdf13d76ec7ce06115c8646d8f 09-Sep-2012 Marc Blank <mblank@google.com> am 323954df: Merge "Create requireSetup attribute; use it for gImap" into jb-ub-mail

* commit '323954df41bb71076d11f52df6275a57ab2fd4dc':
Create requireSetup attribute; use it for gImap
f7030e76f647260b5010551ec18d11d507525d8a 09-Sep-2012 Marc Blank <mblank@google.com> am 16b07e11: Merge "Use resource based mime type for application" into jb-ub-mail

* commit '16b07e11c737edb362d968da12b42ad5a8b94f69':
Use resource based mime type for application
323954df41bb71076d11f52df6275a57ab2fd4dc 09-Sep-2012 Marc Blank <mblank@google.com> Merge "Create requireSetup attribute; use it for gImap" into jb-ub-mail
0413dae9a9baf6b9d3b5eb2a5e3c2d4464382ac3 09-Sep-2012 Marc Blank <mblank@google.com> am af092bd5: EmailProvider dump

* commit 'af092bd5f850653b0d237fb55ccc896f74dc7982':
EmailProvider dump
16b07e11c737edb362d968da12b42ad5a8b94f69 09-Sep-2012 Marc Blank <mblank@google.com> Merge "Use resource based mime type for application" into jb-ub-mail
6e5bccf2c984039da5ae1dc08cffa665b73b6474 08-Sep-2012 Marc Blank <mblank@google.com> Use correct attachment provider authority

* Make sure new code works with old Attachment rows

Bug: 7130972
Change-Id: Ia5d258930f39266517eead535a92bb4380fdb594
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
81b0f74efa39d80b0aa18686c96499faf0e2691f 08-Sep-2012 Marc Blank <mblank@google.com> Create requireSetup attribute; use it for gImap

Change-Id: Id5f37861e4d6f2c2ed0fe98bd8b4d7eb73868c09
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7e5df63fc9771c7950d3f95da17cfb112ebbf7f3 08-Sep-2012 Marc Blank <mblank@google.com> Use resource based mime type for application

Change-Id: I41a3cbf5c810668f9b0885f6614b2e48215901b2
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
af092bd5f850653b0d237fb55ccc896f74dc7982 08-Sep-2012 Marc Blank <mblank@google.com> EmailProvider dump

Change-Id: Id975c99427b41f4a56235dc6ba5ad515d6700fe5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
01779e18915cec6ee223e4bc1d950e2a4e2530ec 07-Sep-2012 Marc Blank <mblank@google.com> am fdb16358: More work on FolderPicker

* commit 'fdb1635868e9591c3bcaf107360a7eae2e09fe18':
More work on FolderPicker
fdb1635868e9591c3bcaf107360a7eae2e09fe18 07-Sep-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7b53e9c7aa4e4085aa88529648d09943daa438ac 07-Sep-2012 Marc Blank <mblank@google.com> am 9a341d85: Merge "Improve trash folder picker upon account creation" into jb-ub-mail

* commit '9a341d85f0027cac0f9dca0312d8c775738f9c73':
Improve trash folder picker upon account creation
9a341d85f0027cac0f9dca0312d8c775738f9c73 07-Sep-2012 Marc Blank <mblank@google.com> Merge "Improve trash folder picker upon account creation" into jb-ub-mail
512b1e31a33050700b166cda793cd5a6b32edfe8 07-Sep-2012 Marc Blank <mblank@google.com> am 14e5f567: Merge "Log capabilities (w/ STOPSHIP)" into jb-ub-mail

* commit '14e5f567ed09b0f5e4442038999d38a77593f658':
Log capabilities (w/ STOPSHIP)
983c78e92899b94b237c292968c1be2bf53c5d57 06-Sep-2012 Marc Blank <mblank@google.com> Log capabilities (w/ STOPSHIP)

Change-Id: Id448fd48ee1d7a2eabab8f3bd4dae34b6e401a7d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
26164054710375519ba7468987971a7a3340ba7e 06-Sep-2012 Marc Blank <mblank@google.com> Improve trash folder picker upon account creation

* Use setup intent uri
* TODO: More cleanup

Bug: 7077441

Change-Id: Ieab5b0ed33b73b7a0e9012aedd6becf867db1566
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8d8ae0290f72f84bab01d74c0b548c445684204e 05-Sep-2012 Marc Blank <mblank@google.com> am b210f3ad: Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail

* commit 'b210f3ad534c1215de17e95ce5f289dde9fad4a1':
Revert "Initialize mDatabase on provider startup"
b210f3ad534c1215de17e95ce5f289dde9fad4a1 05-Sep-2012 Marc Blank <mblank@google.com> Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail
c0a425027b4d01262bd85f73a5212179b4418b16 05-Sep-2012 Marc Blank <mblank@google.com> Revert "Initialize mDatabase on provider startup"

This reverts commit 6c319d78edc52cd4a6d2f53277d2e1cef1afc5bc

Change-Id: I57881b090a3c7efba79369702356b622d9a7aba8
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f41d00b4e847168ae95cc5b35954165ea8fa6545 05-Sep-2012 Marc Blank <mblank@google.com> am c0e2b147: Clear visibleLimit when folder entered

* commit 'c0e2b147e09dd0bf15f19e63807b1b3bab798f50':
Clear visibleLimit when folder entered
c0e2b147e09dd0bf15f19e63807b1b3bab798f50 05-Sep-2012 Marc Blank <mblank@google.com> Clear visibleLimit when folder entered

Change-Id: I39824dbff83ffcf109cbc1ffebf00cad5bce2498
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8d51344aaa14dafb2b7ab2d5e0de8bce97f839fc 05-Sep-2012 Marc Blank <mblank@google.com> am 7110183f: Merge "Put combined account last" into jb-ub-mail

* commit '7110183fe51cfb51819e9992f3e4700567c7b8e9':
Put combined account last
2651bcc7be2c5fbce23faa0b0d12db63caee5a45 05-Sep-2012 Marc Blank <mblank@google.com> Put combined account last

Bug: 7100404
Change-Id: Iff2884e635d030d840f297c15f5e2ee646185c5f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a6d34de6015837b834273a231a42bc917a554acd 04-Sep-2012 Marc Blank <mblank@google.com> am 9765f7b2: Merge "Initialize mDatabase on provider startup" into jb-ub-mail

* commit '9765f7b284941fc542c285998e435a8844d0e582':
Initialize mDatabase on provider startup
9765f7b284941fc542c285998e435a8844d0e582 04-Sep-2012 Marc Blank <mblank@google.com> Merge "Initialize mDatabase on provider startup" into jb-ub-mail
c8699108934b346f2df2563247aee1f201cb54a3 04-Sep-2012 Marc Blank <mblank@google.com> am 5a2b9579: Prevent possible NPE

* commit '5a2b9579de8353996df7cbd84cf0847c2ee075d3':
Prevent possible NPE
5a2b9579de8353996df7cbd84cf0847c2ee075d3 04-Sep-2012 Marc Blank <mblank@google.com> Prevent possible NPE

Change-Id: I0254812c55cf6c5e4825aa28f900b8030502e9f6
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6c319d78edc52cd4a6d2f53277d2e1cef1afc5bc 04-Sep-2012 Marc Blank <mblank@google.com> Initialize mDatabase on provider startup

* Try to prevent startup-related races

Bug: 6969684
Change-Id: I58ac16381bb71b8e21e01cb3ead0ba99f70c9873
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3348d6da67f07064dc22da74a8677906dec78f8f 04-Sep-2012 Marc Blank <mblank@google.com> am 9e4556ae: Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail

* commit '9e4556ae1c4ed0202e3b60c790d165945b4a0fc0':
Revert "Initialize mDatabase on provider startup"
9e4556ae1c4ed0202e3b60c790d165945b4a0fc0 04-Sep-2012 Marc Blank <mblank@google.com> Merge "Revert "Initialize mDatabase on provider startup"" into jb-ub-mail
fcba7fa20a17e2c691a39d344d5c880d051a34e0 04-Sep-2012 Marc Blank <mblank@google.com> Revert "Initialize mDatabase on provider startup"

This reverts commit 33f3b0c1d5930c5420bdc366a6a361c248937265

Change-Id: Ia56d67f49b3b5d7569791d9d556e2f7eed13ee7d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
156bf908ca9cd1505cefe71c13a322669feeffbd 04-Sep-2012 Marc Blank <mblank@google.com> am efb46b08: Merge "Clear visible limit when entering mailbox; enable imap load more" into jb-ub-mail

* commit 'efb46b08571aeffb62ec9cd913775a57be6b8407':
Clear visible limit when entering mailbox; enable imap load more
fa543af380da66536e1c9070abd55030c82bada5 04-Sep-2012 Marc Blank <mblank@google.com> am 644f172c: Merge "Initialize mDatabase on provider startup" into jb-ub-mail

* commit '644f172cde5bb39b383e42f61ea5c73ca0ea1671':
Initialize mDatabase on provider startup
88505b81d0fa935988fc8c247a96c543b47ef4f3 04-Sep-2012 Marc Blank <mblank@google.com> am b82437f5: Merge "Allow NULL values in genSelect" into jb-ub-mail

* commit 'b82437f563f814471c88e7977dca0ef888cdcaea':
Allow NULL values in genSelect
efb46b08571aeffb62ec9cd913775a57be6b8407 04-Sep-2012 Marc Blank <mblank@google.com> Merge "Clear visible limit when entering mailbox; enable imap load more" into jb-ub-mail
644f172cde5bb39b383e42f61ea5c73ca0ea1671 04-Sep-2012 Marc Blank <mblank@google.com> Merge "Initialize mDatabase on provider startup" into jb-ub-mail
cc986cf3d75dd80f59e41b829bb41c369f973d7d 03-Sep-2012 Marc Blank <mblank@google.com> Clear visible limit when entering mailbox; enable imap load more

Bug: 7045530

Change-Id: I013c465dfbe992e9df104039e8576465805c9119
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
33f3b0c1d5930c5420bdc366a6a361c248937265 03-Sep-2012 Marc Blank <mblank@google.com> Initialize mDatabase on provider startup

* Try to prevent startup-related races

Bug: 6969684
Change-Id: I5eb2bf2773c2809a27a7eeb461bf8fbfccc864a2
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
df9c1f3aa54792cc65f95ddff8e36a34a9dcdda1 03-Sep-2012 Marc Blank <mblank@google.com> Allow NULL values in genSelect

Bug: 7050016
Change-Id: Ia70e2312e37e8a5adae62d045878a079e9195d00
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8116f576eb9ce8112f815f073fab4809e83423ed 02-Sep-2012 Marc Blank <mblank@google.com> am b82ae909: Add support for "load more" for Imap2

* commit 'b82ae909d7514bf06090ee3a120aef2154ab0296':
Add support for "load more" for Imap2
b82ae909d7514bf06090ee3a120aef2154ab0296 24-Aug-2012 Marc Blank <mblank@google.com> Add support for "load more" for Imap2

* Use new attribute in services.xml to indicate support
* Initial implementation

Change-Id: Ia8709d606d521c6d495c343a47ee074b5024d340
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e0b8fd27ac7bb273c6622f26c9aca57fc467236a 02-Sep-2012 Marc Blank <mblank@google.com> am e714bb9d: Convert authorities, intents, and account manager types

* commit 'e714bb9d153cfe13a7f0932e7d67ea08fa5a1d98':
Convert authorities, intents, and account manager types
e714bb9d153cfe13a7f0932e7d67ea08fa5a1d98 23-Aug-2012 Marc Blank <mblank@google.com> Convert authorities, intents, and account manager types

* Tested ok on wiped Nexus
* Tested ok on S3
* Upgrade verified on Nexus

Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ae678bac770a284e752d0909487c183c6c25bb5e 30-Aug-2012 Marc Blank <mblank@google.com> am 5ac8d387: Always return correct folder capabilities

* commit '5ac8d38796952a817f4693b38d62fc124651c121':
Always return correct folder capabilities
5ac8d38796952a817f4693b38d62fc124651c121 28-Aug-2012 Marc Blank <mblank@google.com> Always return correct folder capabilities

* This requires us to use a MatrixCursor based on individual
Mailbox queries

Bug: 7059516
Change-Id: Ie9481a519d3d876464985924e5e7ad6d987c3945
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
806a48e33fa06568f54466cc9994c13380545e85 22-Aug-2012 Marc Blank <mblank@google.com> am 0b9f23ca: Merge "Report delete capability for all folders" into jb-ub-mail

* commit '0b9f23cae28a57730653af7be074a367e3ae4a09':
Report delete capability for all folders
0b9f23cae28a57730653af7be074a367e3ae4a09 22-Aug-2012 Marc Blank <mblank@google.com> Merge "Report delete capability for all folders" into jb-ub-mail
285cef8ad0af4727b53a7b79e709c0ecb5f40d4f 22-Aug-2012 Marc Blank <mblank@google.com> Report delete capability for all folders

Bug: 7034779
Change-Id: I5cd69739007a870d50e0f362945ca5aa62ae0cdc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
cf30d663493719d83c38f1396723df6f80ece488 21-Aug-2012 Marc Blank <mblank@google.com> am a6885ba9: Remember base64 decoding for IMAP attachments

* commit 'a6885ba97d9d45d3496c67b8142418cbdefee89b':
Remember base64 decoding for IMAP attachments
a6885ba97d9d45d3496c67b8142418cbdefee89b 21-Aug-2012 Marc Blank <mblank@google.com> Remember base64 decoding for IMAP attachments

* Also, add debugging class to EmailProvider

Bug: 6995516
Change-Id: Ia96415caa61f26d55f09beb76fb3f34a40b53691
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
25dba76030a7fdb48d3748d22c60802b90524c83 21-Aug-2012 Marc Blank <mblank@google.com> am ae597ea9: Handle getExtras() from message list cursor

* commit 'ae597ea949e3351de0dc71ba4b4ab124afea7d96':
Handle getExtras() from message list cursor
ae597ea949e3351de0dc71ba4b4ab124afea7d96 21-Aug-2012 Marc Blank <mblank@google.com> Handle getExtras() from message list cursor

Bug: 6923453
Change-Id: Iceacf32ab195de47553243cdf16a75436057d995
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a592498f0fbf07bae4d07eb39dbecc15d86439a3 19-Aug-2012 Paul Westbrook <pwestbro@google.com> am 22e9efd4: Supports delete

* commit '22e9efd44238802cc76ac18ec0c717640898df67':
Supports delete
22e9efd44238802cc76ac18ec0c717640898df67 19-Aug-2012 Paul Westbrook <pwestbro@google.com> Supports delete

Make sure that all Email labels report supporting delete

Bug: 7006885
Change-Id: Ia73b37f456d749debdf5c186a8ae688b9d8525b7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
866eaa6a218cc467855ba534092062b607aeca4c 17-Aug-2012 Marc Blank <mblank@google.com> am 0bac607e: Merge "Try to find cause for NPE" into jb-ub-mail

* commit '0bac607eff0503a69ae8cc579b474eb55c06fdbd':
Try to find cause for NPE
296d18c02b4397c320a273cc94c234620e13b3fd 17-Aug-2012 Marc Blank <mblank@google.com> Try to find cause for NPE

Bug: 7006995
Change-Id: I12d19fab0264b5d779f24df92274ad879237d254
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1b240f7016e2e25aba7f609dcf8e8d6d04ef2bcd 10-Aug-2012 Paul Westbrook <pwestbro@google.com> am 33858c77: Fix crash when validating email hostAuth

* commit '33858c77e9eaa688b43469de38439bd2107073f7':
Fix crash when validating email hostAuth
33858c77e9eaa688b43469de38439bd2107073f7 10-Aug-2012 Paul Westbrook <pwestbro@google.com> Fix crash when validating email hostAuth

Bug: 6948287
Change-Id: I781a32a2da0b4248e7ee1e061393ebc2bdc4dd61
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e4fe67d7d8fb18053967ea42007d4f571d0c24c4 03-Aug-2012 Paul Westbrook <pwestbro@google.com> am b74f2204: Make sure to respect the projection from the client

* commit 'b74f2204672ae01e1b2954f5714031d369c332cb':
Make sure to respect the projection from the client
b74f2204672ae01e1b2954f5714031d369c332cb 03-Aug-2012 Paul Westbrook <pwestbro@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6810283183c1265d36d37e1d526bde4f6b5d8cb3 03-Aug-2012 Marc Blank <mblank@google.com> am e68efceb: Merge "Handle server deletion of local POP deletions" into jb-ub-mail

* commit 'e68efceb9a192070799867f54867a98ceb84ead8':
Handle server deletion of local POP deletions
209ea738ad2db1ce9b2438c70e150a96ed803800 03-Aug-2012 Marc Blank <mblank@google.com> am 4ba99bfb: Prevent crash in Email while viewing message

* commit '4ba99bfb24aa884ad4aff2c8e40631e836398c2a':
Prevent crash in Email while viewing message
7f7f7e6402eec1baab6bedcb58da61369cae4097 03-Aug-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4ba99bfb24aa884ad4aff2c8e40631e836398c2a 03-Aug-2012 Marc Blank <mblank@google.com> Prevent crash in Email while viewing message

* Due to new VIEWED column in UIProvider.ConversationColumns

Change-Id: I029d61b30eac96c4cb87cc7f8b6719ecdd987892
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
28d940472d593f74149f99f0206a311971792b4d 03-Aug-2012 Marc Blank <mblank@google.com> am f6db592c: POP3 renovation

* commit 'f6db592c313c77190727c7cd72d3edda9d23a099':
POP3 renovation
f6db592c313c77190727c7cd72d3edda9d23a099 02-Aug-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
257fb7ab59de7c8ccaa30ef380daba908da8078c 01-Aug-2012 Vikram Aggarwal <viki@google.com> am e0015b28: Priority Arrows are always disabled for Email.

* commit 'e0015b2800eeefbf8aaf322645038907f37e62f1':
Priority Arrows are always disabled for Email.
e0015b2800eeefbf8aaf322645038907f37e62f1 01-Aug-2012 Vikram Aggarwal <viki@google.com> Priority Arrows are always disabled for Email.

Change-Id: If8617fc9c41467987aa572bfe2f93394757c4166
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
13858031306ea6fbaaadbd4b02ceae590f894955 31-Jul-2012 Marc Blank <mblank@google.com> am 942fea3c: Synchronize checkDatabases()

* commit '942fea3c97e0f8aa6420ecbc6201d4be27800d94':
Synchronize checkDatabases()
942fea3c97e0f8aa6420ecbc6201d4be27800d94 31-Jul-2012 Marc Blank <mblank@google.com> Synchronize checkDatabases()

Bug: 6538393
Change-Id: I5e4d532aa859d8a49805b74475275ad914e84b86
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
dbcab3ca23e4f6f482d74ac962958a4fffc999ee 31-Jul-2012 Marc Blank <mblank@google.com> am 949fc3d8: Prevent NPE when the message has been deleted

* commit '949fc3d88338861dec8eac29fffaef5b17ae07e8':
Prevent NPE when the message has been deleted
949fc3d88338861dec8eac29fffaef5b17ae07e8 31-Jul-2012 Marc Blank <mblank@google.com> Prevent NPE when the message has been deleted

Bug: 6907706
Change-Id: I5d5f980856eed12242095527aa927d139c77db4d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fb3ec1a84dfddae5f2a91d976e6eee7dabaf3413 31-Jul-2012 The Android Automerger <android-build@android.com> Merge remote-tracking branch 'goog/jb-ub-mail' into jb-mr1-dev
ae57810e1e321991c454a4a6de4b88817c839315 27-Jul-2012 Marc Blank <mblank@google.com> Merge "Imap2 additions" into jb-ub-mail
0b6b83c6f90652b506c7761b923663c08f3af833 25-Jul-2012 Marc Blank <mblank@google.com> Imap2 additions

* Implement first-pass Imap2 server-side search
* Improve number parsing performance
* Better handle the BodyThread (loading message bodies)

Change-Id: I0ccd7377c80a0553b086d5204b211067896a2f49
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
34d8a139ce9c7eb72ec92ba6861353f221301330 27-Jul-2012 Mindy Pereira <mindyp@google.com> Remove extraneous loop.

There better be just 1 folder!

Change-Id: I8f4431cb133b29a4d4f266d0a95b843b374f15cc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
709b4633eda47f81a689c3be623660d74cdad904 27-Jul-2012 Mindy Pereira <mindyp@google.com> We don't need this! Raw folders does everything for us.

Change-Id: I5e37ed79ce3dce02ffad6fbea184981dd6f4f40e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
97a198292e665fff5d27d727d415f35b0a0633e4 26-Jul-2012 Marc Blank <mblank@google.com> Notify on "all accounts" when an account is updated

Change-Id: If6bad046d10972dcf7aa76d73b18c8a0c655a6ce
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
b225298b13eb47c6251d73c28506b0a7ad56bf5c 26-Jul-2012 Marc Blank <mblank@google.com> Add swipe-to-delete general preference

Change-Id: I83aa62526ba7a74cea27930300340227b147340f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
298780dc3799ac79ab61500a43c54bcddbd643a7 25-Jul-2012 Marc Blank <mblank@google.com> am a4418762: Merge "Make sure account capabilities get set properly in UIProvider" into jb-ub-mail

* commit 'a4418762d4667dd8e76adfe45d905da9e228d1d5':
Make sure account capabilities get set properly in UIProvider
a4418762d4667dd8e76adfe45d905da9e228d1d5 25-Jul-2012 Marc Blank <mblank@google.com> Merge "Make sure account capabilities get set properly in UIProvider" into jb-ub-mail
54ae050ca7c75e02135aab2d2511e86cd3178940 25-Jul-2012 Andrew Sapperstein <asapperstein@google.com> am 6eee9e4f: Filtering attachments by content type.

* commit '6eee9e4f11d0dad2c2e965281c63146f7acd0d2f':
Filtering attachments by content type.
0b5f15d61ebf7c0e8428100637bc479ed93a4cb2 25-Jul-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6eee9e4f11d0dad2c2e965281c63146f7acd0d2f 24-Jul-2012 Andrew Sapperstein <asapperstein@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ea56e5eb503735a29737c4aef4d1da1b1ca53576 24-Jul-2012 Paul Westbrook <pwestbro@google.com> am 51693c5a: Migrate legacy widgets

* commit '51693c5a4ca3553f0a02a91fe1805fb895380e3e':
Migrate legacy widgets
51693c5a4ca3553f0a02a91fe1805fb895380e3e 20-Jul-2012 Paul Westbrook <pwestbro@google.com> Migrate legacy widgets

Bug: 6304532

Change-Id: I6a5cad036ec7d4746e396b580e4689c957a7ee18
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
377079b0ddf0dbbfd8d69e0260a4a4500ace791a 20-Jul-2012 Marc Blank <mblank@google.com> am 00287c4d: Remove unused code; rename some constants

* commit '00287c4d8f54ae07c89bb3893f440acdca09d728':
Remove unused code; rename some constants
00287c4d8f54ae07c89bb3893f440acdca09d728 20-Jul-2012 Marc Blank <mblank@google.com> Remove unused code; rename some constants

* Also handle large batch operations in chunks

Change-Id: Ie566cb8d8bb73e8edd663de5228e905c223f031b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e5990d1ad6b13f4b320b650f6dba523001585fa8 20-Jul-2012 Mindy Pereira <mindyp@google.com> am 51d4370b: Create ConversationInfo object with senders info for email.

* commit '51d4370b770ae56a4437bb68ed4729e5f1111a43':
Create ConversationInfo object with senders info for email.
51d4370b770ae56a4437bb68ed4729e5f1111a43 20-Jul-2012 Mindy Pereira <mindyp@google.com> Create ConversationInfo object with senders info for email.

Change-Id: Ibc789682d3bf0b19e026dcb629f94afee0405ec3
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
48000826492a05809851d5af594a7fbe4da4ca4c 19-Jul-2012 Marc Blank <mblank@google.com> am 77a9966f: Merge "More work on Imap2" into jb-ub-mail

* commit '77a9966f462581707bc49ccbf3348ca65b5fa41d':
More work on Imap2
77a9966f462581707bc49ccbf3348ca65b5fa41d 19-Jul-2012 Marc Blank <mblank@google.com> Merge "More work on Imap2" into jb-ub-mail
a8b683cf3f2efe726220c0235368cf6ea899e3ba 18-Jul-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
358fe3ef75fbf6eec0f8d210f58d272183e09e34 19-Jul-2012 Vikram Aggarwal <viki@google.com> am ba6bf4e0: Merge "Default Inbox name for Email" into jb-ub-mail

* commit 'ba6bf4e0520ab8e5eb5e3ccdb0a41a241fab8f34':
Default Inbox name for Email
ba6bf4e0520ab8e5eb5e3ccdb0a41a241fab8f34 19-Jul-2012 Vikram Aggarwal <viki@google.com> Merge "Default Inbox name for Email" into jb-ub-mail
a0fef46aea16c1783f681bb0053eeb3f53d975ab 19-Jul-2012 Vikram Aggarwal <viki@google.com> Default Inbox name for Email

Change-Id: Iac4995d948d73c6a663331b0653453a916057189
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
26dfca646dddff2929b53d7f48287896b82a111f 19-Jul-2012 Mindy Pereira <mindyp@google.com> am 49cbb813: Should be able to forward a message with no additional content.

* commit '49cbb81332769c97a19cd388dcfd88957c072328':
Should be able to forward a message with no additional content.
38f0a06f031f6aa68429fa1cfb573a599c78dd33 19-Jul-2012 Marc Blank <mblank@google.com> am c6089bc0: Initial Imap2 implementation

* commit 'c6089bc01f2ae49fb11904a4b4f222811358254f':
Initial Imap2 implementation
49cbb81332769c97a19cd388dcfd88957c072328 19-Jul-2012 Mindy Pereira <mindyp@google.com> Should be able to forward a message with no additional content.

Change-Id: I6eccf2f2436303a0359027d3efd3763306f9f657
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c6089bc01f2ae49fb11904a4b4f222811358254f 29-Jun-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
deddc0c2350fbbb366a3909cfc430cf3d37cfc44 13-Jul-2012 Andrew Sapperstein <asapperstein@google.com> am 13ba7c74: Merge "Adding the via column to email." into jb-ub-mail

* commit '13ba7c74f65b5e1c9c471cc46d78eddc3c9658bf':
Adding the via column to email.
b27348a80836d6f7daac2ece4b2e6620f8d315f4 13-Jul-2012 Andrew Sapperstein <asapperstein@google.com> Adding the via column to email.

Change-Id: I3d49f696a1262f22b0ebaf733b5a4f26ac270935
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
61c37b0a3a151173aa6c3851ec7d7838225a0479 13-Jul-2012 Andrew Sapperstein <asapperstein@google.com> am bebb152c: Merge "Update to email2 for the new spam warnings." into jb-ub-mail

* commit 'bebb152ce0ddc84ad64fe595b75ef05cfa04c0e9':
Update to email2 for the new spam warnings.
de79ecbbe2356d21ab0b0d40a7ee00f4e18b4924 11-Jul-2012 Andrew Sapperstein <asapperstein@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
cc0185f07c9198008d8dc685ae9979f3e35e8539 28-Jun-2012 Marc Blank <mblank@google.com> Manual merge of Email from jb-ub-mail

Change-Id: I564ddf433d371f45ba78a10f73bb182d484c56f2
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7c8f1c125aa5cd79f1f5f6048f8443eb084a6b2e 28-Jun-2012 Marc Blank <mblank@google.com> Fix handling of json in SQLite query

Bug: 6749576
Change-Id: I3cd85182d8c35e564f50ee7f9c787d797253e105
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f419287f22ae44f25e1ba1f757ec33c7941bbfa8 28-Jun-2012 Marc Blank <mblank@google.com> DO NOT MERGE: Move emailcommon2 sources to emailcommon

Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5041ac1cdc3bf042867670816f047a010ae21ea6 11-May-2012 Marc Blank <mblank@google.com> Add logging re: ANR's in endTransaction()

Change-Id: I813cd09816d1a3abdde19c45a5786db6b28fa9a7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7715248fa32977d8b02c26fc9069e1570c57705b 11-May-2012 Jeff Brown <jeffbrown@google.com> Ensure provider ends transactions even if an error occurs.

The previous code swallowed the exception and sometimes left one
or both database transactions open causing subsequent queries
to hang indefinitely.

Bug: 6479301
Change-Id: Ice0d986ed17cd6cbd2fec1e8a3d9a7758f0a62ed
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
542000fec569341cf5bf00f03a0502f71c5b5e02 10-May-2012 Marc Blank <mblank@google.com> Make sure widget is notified on message-related changes

Bug: 6472628
Change-Id: I0e77b379e06dda64f506f54833cd52a8982dadae
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
db48fcbe056f5d621e0a64cf1f05aa92db40b97d 01-May-2012 Marc Blank <mblank@google.com> Move EmailContent, EmailProvider, DBHelper from Email2

* Remove UIProvider related code/data
* Establish compatibility with Exchange2

Change-Id: I5971978b53cda73eb52b30b0c1d0eba8f82a1c7a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
03cd72805dab0379ed255d151f1c17cc60655fc3 25-Apr-2012 Marc Blank <mblank@google.com> Revert to old Email app

* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
05ba9724087aa032c120cfba64ff1a997a9cba7f 06-Apr-2012 Paul Westbrook <pwestbro@google.com> Move settings into account

Change-Id: I0e791ead6c54af96afbfdf1d38457fb2fb41c4dc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6f627965d00bbe137f848cf6593556ce66a53372 21-Mar-2012 Paul Westbrook <pwestbro@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e7dc6a34d481e509021432d501585dd30fa7cd01 16-Mar-2012 Vikram Aggarwal <viki@google.com> AutoAdvance.OLDER always

Change-Id: Ifaf1ab14db0a3415d91b910b726bf9c8e0fec1ea
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
05b99a0d8cbf6e9eab0b12e596e9afbff4cec9d4 16-Mar-2012 Vikram Aggarwal <viki@google.com> AutoAdvance.LIST is safer than AutoAdvance.NEWER

Change-Id: I72ba37cb8a7259c13afcfaabb70a11d65f536b69
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a7d788d54a602bfdfd4111b1de119404101a3ef4 14-Mar-2012 Mindy Pereira <mindyp@google.com> Fix build.

Change-Id: I077de029e1da06e3dcd6dae438a6c64b58e9e127
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4bf4edcf64c0b1cb8aabfb2e16ec29f4b19921d2 13-Mar-2012 Mindy Pereira <mindyp@google.com> Send uri of folder this item is in instead of just the id.

Change-Id: I5b7ba10497ac2f5081de02074d525e39d73ba9b0
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1d202e274d4c4f83d01c83abc909e1e331cd7df6 13-Mar-2012 Paul Westbrook <pwestbro@google.com> Support new folder id

Change-Id: If971ca60e5029487dd1c12b4664c6b64f3133f4a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ebbf8e1040ef9742e3ea20b3e3c6b07a08812b58 13-Mar-2012 Marc Blank <mblank@google.com> Merge "Add support for "Load more" for search results"
6550ae97731282e2427c3130c4ea316dfce5538b 13-Mar-2012 Marc Blank <mblank@google.com> Add support for "Load more" for search results

Change-Id: Ie16e11ced34c85de02980c85e2db9d61faed5b6f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
dd32d141878d0e1018f2f0b8b02b34208e81ff1c 10-Mar-2012 Andy Huang <ath@google.com> cross-project refactoring

Attachment.mimeType -> contentType
Attachment.contentUri(String) -> contentUri(Uri)

Change-Id: Id35fb698d120013c00878f416f9b68a2f0095fca
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
34943d241d189b80d2f825f7577c7e8e509901c4 12-Mar-2012 Marc Blank <mblank@google.com> Trigger load of full msg when opening partially loaded msg

Change-Id: Ia49aa7f423ceac6697d95abf66e10bb5998c5747
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e2166f75486da0a1b70b804ea34f11f600f11cfd 11-Mar-2012 Marc Blank <mblank@google.com> Add totalCount to Mailbox; send to UIProvider

Change-Id: If01868eb27a97540683f25148f32b8c41ae59c17
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9e266d12fb5f09fb309b60f2d1eaaa4a1a0a4a8e 11-Mar-2012 Marc Blank <mblank@google.com> Implement "load more" for POP/IMAP

* Search not yet implemented

Change-Id: Ic808d3adcb48a2b4370fda77d7b108ea656de5c4
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
25fe72687df8fd3aa4d7dc81054cbf9f2be7f1f3 10-Mar-2012 Marc Blank <mblank@google.com> Notify on attachment's message when updates occur

Change-Id: I23d537992fbf8b0f0dab3afaf37cacfd5587d1f3
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
55d0e821eaecb5e454812a30c1137dbc95db98e2 09-Mar-2012 Marc Blank <mblank@google.com> Report search result total to UI

Change-Id: Ic88e7594b98548a96c8c6f96d2f8a585e539f520
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ebb79619e8ed3c9f0c051e7f323e3971bce7508d 09-Mar-2012 Marc Blank <mblank@google.com> Move account delete logic to EmailProvider

* This functionality had to move away from Controller

Change-Id: I557918a325eab8c83a9728fa1ce33dde8b86158f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ab6321e2c470596b9d8e4f97a23160788d917590 09-Mar-2012 Marc Blank <mblank@google.com> Fix SMTP sending

Bug: 6134036
Change-Id: Id48e4bd17e7493d873d888027e68c7eb86d23198
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c3643cf2b561a345040645951cb107bb7daf01a9 09-Mar-2012 Marc Blank <mblank@google.com> Fix search to work with IMAP

Change-Id: Ic3d9dfec0e30323e258e59630c2ca42bb1c7e98c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
26195ef64d9588b1d5f42ee93913bb1222ed9641 08-Mar-2012 Marc Blank <mblank@google.com> Handle searchUri (first pass)

Change-Id: I75f7a757322e1d4f9b4eac92b9ecbb6a0cc6580b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
06a382f26fe80931359dba4872a2563e6a8e5732 08-Mar-2012 Marc Blank <mblank@google.com> 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
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ef94d9285ea58e3db47871cd73b0e9270c673021 08-Mar-2012 Marc Blank <mblank@google.com> Return searchUri with accounts; return empty cursor for now

Change-Id: I160676a492ef359007676c3aa9f56f9015b64c64
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
420e97f0f82afe0db64c3651eaf3cb15e149ba01 07-Mar-2012 Marc Blank <mblank@google.com> Support attachment commands from UIProvider

Change-Id: Ib457808bdb424275c0abe6e1d86e3b9d33406780
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
b4a4ca99a9bd5aa357cdbc8530e3b3d861af9197 07-Mar-2012 Andy Huang <ath@google.com> Attachment SYNCED column is going away

Change-Id: I19476bc5a9a9e557e61a7347689129ce552b3ff9
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
71b57354c1e9df99d121a6725358311b3450c859 06-Mar-2012 Mindy Pereira <mindyp@google.com> Listen for application/email-ls so we can distinguish between email2/gmail2.

Change-Id: I1b30738b0d8a3f6830dfc6d67b6db385771bba15
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6ae4b080d498fbf8b9c750ea4289ddd15908f1f1 06-Mar-2012 Mindy Pereira <mindyp@google.com> Set compose to email2 until we get rid of the email app.

Email2 supports the compose intent.

Change-Id: I739ccb95b63806ed46dfa74b721b5a43665aa1c4
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
27282ed34ae1a7f636bd5d85b859e38ee692b5bd 06-Mar-2012 Paul Westbrook <pwestbro@google.com> Change the authority for Email2's account cache provider

Allow the account cache cursor to have the notification uri set

Change-Id: I8b01ada0b787fe7a709ad7feacacb91acc3da826
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bc7f451442d008e4b3c8e1d28546f1831c7f9d7e 03-Mar-2012 Marc Blank <mblank@google.com> Fix IMAP/POP notifications

* Make sure the default Inbox is always notified
* Use correct "new" count for mailbox

Change-Id: Id66c76e415589f6eb6fdad0649ae039fd45c1205
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
eccf7ee9a4c4b9bf78af9a679827542ec5c42161 01-Mar-2012 Marc Blank <mblank@google.com> Hook up attachment queries; use more specific notifications

Change-Id: I01198b9ddf63e1edd9a35a81c15e0cf791702184
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ceedaa3c546bd84eccc9c44eff2f1bc09d61ec8a 01-Mar-2012 Marc Blank <mblank@google.com> Fix settingsQueryUri

Change-Id: I519f9e52ebe6a2eeeed78913e0f2b0c01539161e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d5187106d1b0e0e387bc020e1d8e1c4aab8ed3ef 01-Mar-2012 Marc Blank <mblank@google.com> Handle account settings query in EmailProvider

Change-Id: Iae33b00c3fa17fe381c0c66d9e159a2717e0f201
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
108f7b639a78ba772dcdc2747e480935bb5c052a 29-Feb-2012 Paul Westbrook <pwestbro@google.com> Support the always_show_images column

Change-Id: I4817ca936cc2775cd22b878d17045e0ede0af04d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
27be3474a2a6df6d5f1eec3c63d6937c92559a86 28-Feb-2012 Marc Blank <mblank@google.com> Actually put composeUri into the cursor; d'oh!

Change-Id: I1295bb7501c3481f0d5e21e7cc76c1b19ab3047d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d9201da55bd57032651ba84207cf95c938d2123d 28-Feb-2012 Marc Blank <mblank@google.com> Setup composeUri for accounts in EmailProvider

* Add intent filter in manifest

Change-Id: Ifbacfcb6109d76d48dabb87eb45ea28ec4278ad8
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8c4b6e40cf0d258cb15a032cfa3d45e17c21b305 28-Feb-2012 Marc Blank <mblank@google.com> Hook up settingsIntentUri in EmailProvider

Change-Id: Icc47a7dd29f6707443f5b56bdc6df86818295662
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fd077592ee06b27ad70281f05a6239d9c943b52f 27-Feb-2012 Marc Blank <mblank@google.com> Use EmailProvider to create account list

Change-Id: Iedd99ecb95066c3b7e089e3b987a0caed44b97e5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9a5e2a798e11b666670281d64c1039483ad60546 26-Feb-2012 Marc Blank <mblank@google.com> Fix clearing of mailbox notifications

Change-Id: Ieb98a8908ec067229dd449790da55085585ef17b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bf5caf97c547c8fa4bbdc2b500e8d43ee6322fcf 24-Feb-2012 Marc Blank <mblank@google.com> Notify by mailbox, rather than account

* Update EmailProvider, removing two no-longer-used columns in Account and
Mailbox

Change-Id: Ie0f10eb0ca315d73e82be968f7760a51a239ba3f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
98412cadfb8d8a9ff1f09cf0d4a73a636e478818 24-Feb-2012 Marc Blank <mblank@google.com> Use account id instead of name for queries

Change-Id: I49f870491d2b090df345b956280dbb477436be60
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
99dfd1edfd0151a1aa608d96f26a605d972a8a95 23-Feb-2012 Mindy Pereira <mindyp@google.com> Merge "Remove folder sync_frequency column. UI doesn't need it."
b61bd298bd24f33a70d17e3936927a39e69fa960 23-Feb-2012 Mindy Pereira <mindyp@google.com> Remove folder sync_frequency column. UI doesn't need it.

Change-Id: I2a696115aed048f854174a8c4dc7666165b6ae1f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
87c84a6d96a360b2310f44ff4ae2e181c7a4479a 23-Feb-2012 Marc Blank <mblank@google.com> Send sync status updates from POP3/IMAP

Change-Id: Ia1bb5d1a302d6dde8b8979e03a762d6d45ee8cd3
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6b9d94bf397757b5f6654d0a0c56f562ad62a5b2 22-Feb-2012 Marc Blank <mblank@google.com> Make mailbox change notifier less noisy

Change-Id: I6eb7ac4f60acf6d92f4c094a373038fef222d97a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1dc7772d4313bec45af4a4d7609bc36f6e3a247b 22-Feb-2012 Marc Blank <mblank@google.com> Support syncStatus and lastSyncResult in EmailProvider

* Also, trigger a sync on refreshUri

Change-Id: Ia8dee593decfc2101873071ad64fcc3fd1fd5f23
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7db23e6acb1dbfd04a4a544de7754bc587265c4b 22-Feb-2012 Marc Blank <mblank@google.com> Fix build break; support folder query

Change-Id: Ic2a62e2d00e0fe46a1a488d665818c47243c9d8d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
59e10b6b3dbc14884b032b1843413b08adaaf288 18-Feb-2012 Marc Blank <mblank@google.com> Support folderUri and statusUri in EmailProvider

* Implementation of status to be completed later

Change-Id: I9dc2b1144b8186341f1c032906145f3d899b2a0b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d57e096b2cf9c85a3c2df733f92e7f8b2d26402a 15-Feb-2012 Marc Blank <mblank@google.com> This time for sure!

Change-Id: I98a0a8dcc37f52ac29d87379a886c9ca966e923c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
abad2efba849d1c590581767c704deb412c748cd 15-Feb-2012 Marc Blank <mblank@google.com> Oops! Handle subfolders query.

Change-Id: I62628fb8bdb25b96f023788271508d65fd8b4cdd
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1e138516eb980352af8ce70338bee4823b2adbc7 15-Feb-2012 Marc Blank <mblank@google.com> Handle query for subfolders from UIProvider

Change-Id: Ic448324a5a87b6679978426ec639fe4c3d8d77d7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c0272961e1afff760191f8f6e0ebbed132d9cb0a 15-Feb-2012 Marc Blank <mblank@google.com> Return only top-level email folders for uiFolders query

Change-Id: I9480f8263ded7d1eb3eaecc92564130b498a558d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
69d952c3debabf44fce642d95c04a3248480e33a 13-Feb-2012 Marc Blank <mblank@google.com> Add folder list to conversation list fields in query

Change-Id: Ieea84693196796175a1bdea8ecd3dbdf4a229c66
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1e162747761e644cc2368c7c0f2108902bcb0f11 04-Feb-2012 Marc Blank <mblank@google.com> Set the CAN_ACCEPT_MOVED_MESSAGES capability as appropriate

Change-Id: Ifa6e098352afb5feaa277ed0614628eb1765992f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
83dae570ed7decef4e0be46a0f88cfee142b993f 04-Feb-2012 Marc Blank <mblank@google.com> Handle undo for "move to folder"

Change-Id: Ie3847fe4919fc49411b8465e2600f85efb174d0a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e2488c3f02b95c3b7857a9260b6a86911969fede 03-Feb-2012 Marc Blank <mblank@google.com> Handle move-to-folder from UI

Change-Id: I2165b9f83459c0b8f8817108dc294c7882730df8
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
63d60d9eb182d583d08e6d4b6dc11b392dede6f1 03-Feb-2012 Marc Blank <mblank@google.com> Split EmailProvider into two classes (and about time)

Change-Id: Ia72e8c83ea16718077ffe8b8d284d18b6f9f0786
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
87d7a604172d0e15454e8b615b163377e67050c1 02-Feb-2012 Marc Blank <mblank@google.com> Handle update of draft

Change-Id: I15c2b2b85afeff19e4ae7520c36a6119ab1e5cca
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3a8291b3e02de754da4886ba40fdd0cd0fe54ad2 02-Feb-2012 Marc Blank <mblank@google.com> Oops; generating bad URI for save message!

Change-Id: Iaf10108dee202c23abc6a18b9e5e8673c4813d0f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
12142f430ebbc81f29ac17da5944786c4c1eee4c 02-Feb-2012 Marc Blank <mblank@google.com> Support save/update draft and change of convo URI usage

* For now, update not working (it's complicated)

Change-Id: I9df440338ac167f03ce4f2f4b36ad286adad318e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5adc6c0be9193632673dc66c8d220776972adfa4 01-Feb-2012 Marc Blank <mblank@google.com> Support undo for message deletes

Change-Id: I55d8950ca782babc00b28ced7c4d23042882b05e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5520221f60e6ef2739a1898e24e0ef9d26a2c94f 24-Jan-2012 Marc Blank <mblank@google.com> Handle insert instead of update for "send mail"

* Return proper Uri from insert

Change-Id: I5439fff9872a14c63504a17a2bfef34ff19f99c6
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5e392205dcbb4e45529fba93dfde7e4103871474 19-Jan-2012 Marc Blank <mblank@google.com> Handle convo read/starred/deleted

* Send UIProvider notification when changes are made by sync engine

Change-Id: I3076c739b13b40e931277f1b5ac08447c814ff6f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c8afa2f5cbdcc9b3c59d93e9a8ab1bc1e75dd91f 18-Jan-2012 Marc Blank <mblank@google.com> Send attachments w/ UnifiedEmail outgoing mail

Change-Id: I471816dcaac1ab53aea1465dd69ae4453a1a0268
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1d3f98c5229d0cb9f270a1601b71b8d887cf5416 17-Jan-2012 Marc Blank <mblank@google.com> Merge "Store UI-friendly addresses in EmailProvider database"
36ed276f7a97529d5ffdd42d4e9a89ce14d8a2f9 17-Jan-2012 Marc Blank <mblank@google.com> Store UI-friendly addresses in EmailProvider database

* Currently, we store a generally incompatible packed string format
for to, from, bcc, cc, and reply-to columns
* Change this to UI-compatible, comma-separated RFC822 strings
* Upgrade database to use new format

Change-Id: I42c01d72b49531c4324d3956edf5ff362d5c9120
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ce1791abf3326c50da41ab3631738ff28e9a1a54 13-Jan-2012 Mindy Pereira <mindyp@google.com> Update to new message column names.

Change-Id: Ie24fc8e0529ff363dc8bf7a5f6522b601560b91a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6605115ec4bd02f9adf190e0b390ceed783bde5b 14-Jan-2012 Marc Blank <mblank@google.com> Set notify uri for queries; trigger notify on message inserts

Change-Id: I9fdf2f83670ec72937deebe352e962632f37b519
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
788d52d831cbc5ec0288655bee2cfe2d0616a1b1 12-Jan-2012 Marc Blank <mblank@google.com> Send new columns for message header; real data for msg counts

Change-Id: I88f560beafdf8cf9194664a63cf74436be281056
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bb760d73f08041f2f2e813054a02698b3ea17960 13-Jan-2012 Marc Blank <mblank@google.com> Sort message (conversation) list properly

Change-Id: Id208890abf4c646fe8eba01bbfe22de35c610e3c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bdf32afa644f566e8be90048ed631e0e70332ac5 13-Jan-2012 Marc Blank <mblank@google.com> Hook up primitive email sending to UIProvider

Change-Id: I5fe949c3cdf3d04514976d029d966caa912ec5be
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
96d0323cfa841361f5a53ef96a66fad9155a5c8b 13-Jan-2012 Andy Huang <ath@google.com> remove CLIENT_CREATED usage

Change-Id: Icb102ef554e9e945bdf4866d0038892556fcf739
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ca6f713e71ce3734bc688b9821fc6838b5d70de1 12-Jan-2012 Marc Blank <mblank@google.com> Oops; fix order of TABLE_NAMES

Change-Id: I994b31c05c640f61444ae3d66c5b94e1d147e698
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e9e865345eb5f586e3f972db8c3c714fb6bb5aad 12-Jan-2012 Mindy Pereira <mindyp@google.com> Set c to the result of the query.

Change-Id: I5b8c935aedcdd86d756ee7de70088f2c8db179d5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0c550c343fecaec3e04fba274d1ac08bd722d311 12-Jan-2012 Marc Blank <mblank@google.com> Return "0" for unknown columns in UIProvider queries

* For now, let's avoid exceptions

Change-Id: I5758f3aefb458c00fd3fc1865e63df92e9ba1650
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3594ac81469c55c1ee6ee4594c2ca52942a7c354 12-Jan-2012 Marc Blank <mblank@google.com> Implement initial UIProvider operations (UnifiedEmail)

* Add support for folder list, conversation list, and message view
queries
* Open up EmailProvider (temporarily) to allow access from
UnifiedEmail (signatures don't currently match)
* Modify make file so that we can reference definitions in
UIProvider

Change-Id: If73c59aa9edfdac5619ff2c6b9cedfdfe4e93d6f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
75987dbe0ca7609bf4f11f2d7edfe4bcd70a4fe5 10-Jan-2012 Paul Westbrook <pwestbro@google.com> am 17d522b5: am 07676012: Fix widget updates

* commit '17d522b51c9aa564e1989095e0264264642c2432':
Fix widget updates
07676012f7e4060faa0d23dc6068e9dcdd4a4106 09-Jan-2012 Paul Westbrook <pwestbro@google.com> Fix widget updates

Fix widgets that stop updating. If the Launcher got killed, the Email
widget service gets unbound. When this happens the cursor loader for the
widget is stopped. Since widget is relying on the loader to update the data,
when the loader is stopped, the widget would never update.

Now when email recognizes a change, it will send a broadcast intent, which
will cause the widget service to be started, if it isn't.

Bug: 5811810
Change-Id: Ia840e58f10e780b94440119662c2e48e7785c507
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c31736c0d772b1fc4d6624a75139d99f91146563 11-Nov-2011 Marc Blank <mblank@google.com> am af637589: Fix typo in CL; sigh

* commit 'af6375894fe4b405f205a22a7ee9118a36fef428':
Fix typo in CL; sigh
af6375894fe4b405f205a22a7ee9118a36fef428 11-Nov-2011 Marc Blank <mblank@google.com> Fix typo in CL; sigh

* Facepalm

Bug: 5582884
Change-Id: I060518a4bbb2c08e1abef934c81d72ec4fbcb565
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
406641ce0978a3d9f7ae5e47d0528118e85a5075 09-Nov-2011 Marc Blank <mblank@google.com> am 00099da1: Merge "Make EAS Email syncable after GB/HC -> ICS upgrade" into ics-mr1

* commit '00099da1b3b9d91574187e70182e5384debb3731':
Make EAS Email syncable after GB/HC -> ICS upgrade
8ff1842ab123721b66f2ed1e14e92244a51b0b99 08-Nov-2011 Marc Blank <mblank@google.com> Make EAS Email syncable after GB/HC -> ICS upgrade

* In the same upgrade step in which we add AccountManager accounts
to IMAP/POP accounts, we now make Email syncable for EAS accounts
* This step is hit by all users upgrading from GB/HC -> ICS

Bug: 5582884

Change-Id: I11a06e2ad72ffed20c31f5d8be81705642f552a5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2736c1a11ce3ecdcd9d19aa9c324fb9ce0910c7b 20-Oct-2011 Marc Blank <mblank@google.com> Rewrite of security policy handling and service code

* Remove PolicyService APIs policiesRequired, policiesUpdated,
isSupported, clearUnsupportedPolicies, and isActiveAdmin
* Add PolicyService API setAccountPolicy, which is the sole
method by which security policies are promulgated
* Add protocolPoliciesEnabled and protocolPoliciesUnsupported
to the Policy class; these are packed, localized strings
indicating policies that the protocol itself have enabled
and/or cannot support (i.e. these are policies that are
unknown to the DPM, e.g. don't load attachments)
* Differentiate in security notifications between three kinds
of policy changes - changes that don't require user
intervention (e.g. reducing requirements), changes that
require user intervention (the legacy notification), and
changes that make the account unsyncable (e.g. the server
adding an unsupportable policy). Handle all possible policy
changes cleanly.
* Make security notifications per account (with multiple
accounts, notifications would get arbitrarily munged)
* Expose ALL enforced policies via the account settings
screen in two categories: policies enforced (including
both policies enforced by the DPM and policies enforced
by the protocol) and policies unsupported (note that these
can only be seen if policies are changed after an account
is created; we do not allow the creation of an account
when any required policies are unsupported). Add a
button that forces a sync attempt, for accounts that
are locked out, but whose policies have changed on
the server (this would otherwise require a reboot).
* Updated unit tests

Bug: 5398682
Bug: 5393724
Bug: 5379682
Change-Id: I4a3df823913a809874ed959d228177f0fc799281
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2c57e7036decceb3767ccc3714e9e9e417217b49 14-Sep-2011 Ben Komalo <benkomalo@google.com> Fix upgrade code.

In HC MR2 we introduced a column for a parentKey, but AFAICT, did not
use it. It was populated with a null value. The first upgrade code in
ICS assumed it was '0' which failed to upgrade it properly.

This prevents IMAP accounts from being broken when upgrading from GB ->
ICS.

Bug: 5252620
Change-Id: I000253b7c02ac1706710bdb21a820293f09cbea5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
32bed4bb8e23d7322ab338773d135845f392d3cf 24-Aug-2011 Ben Komalo <benkomalo@google.com> Fix unit tests.

- make attachment download service injectable
- fix assertions for account manager account checks
- update message compose ID's so they're consistent on tablet/phone

Bug: 5198343
Change-Id: I9976f5b9e5590dd61fb0a62937d3f9203fefe236
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a08f654a1a44fb87b2afbef721ec931c1faed302 05-Aug-2011 Marc Blank <mblank@google.com> Merge "Catch case where provider reports returning null in error"
577e604df009df025ae3a5c5fa151c47f7877a43 05-Aug-2011 Marc Blank <mblank@google.com> Catch case where provider reports returning null in error

* Missed this one

Change-Id: I080bd3b910827336fcfde818564067db5b4ec3cc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
20b511ff6812837e7dc11db3f9ce398959307c09 02-Aug-2011 Marc Blank <mblank@google.com> Handle GB->ICS upgrade of POP3 accounts properly

* Heh.
* We were using the login from the HostAuth in creating the Account
Manager account, but it should be the email address from the
Account itself; in IMAP (and usually in POP3) these are the same
* But not for juno.com!
* Updated unit test coming in another CL (tests are broken in a
strange way, and the bug is FAST-blocker)

Bug: 5110013
Change-Id: Id11799e8b30a0420804f00c2d2f265e44e39c4c0
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
36aef9fb7434bb9fa01dc28038358a4d411a4f00 02-Aug-2011 Marc Blank <mblank@google.com> Add logging to v21->v22 upgrade; small cleanup

Change-Id: I6659998a3ad2490c923061aab5328469c3222e25
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
27a04fecfb267e3498d7e0d621443176cd6e1474 30-Jul-2011 Marc Blank <mblank@google.com> Fix EmailProvider database upgrades

* Two of the upgrades (v21->v22 and v25->v26) need to be fixed so
that they don't reference columns that might not exist.
* Oops

Bug: 4439595
Change-Id: I4a8c556be22bb85fb78807416cd1d6b81c6ef118
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0306da14e33d5ba0a169be82925e797a9f03e4db 28-Jul-2011 Marc Blank <mblank@google.com> Correct recently added EmailProvider logging

Change-Id: Ica61b7bcbe455448a1a261c83defa840ab1abf3e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7390b187767b559f693666156b8ca5c7c25bcfe4 28-Jul-2011 Marc Blank <mblank@google.com> Log return of null from query()

* This shouldn't happen, but ... log it just in case

Change-Id: I8b8df3fec84c9dd14ebb222ee665b0712f63f213
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
aca94265813e72e692eace527f43eb4c02b09c76 20-Jul-2011 Marc Blank <mblank@google.com> Remove NotificationService; use Account columns for data storage

Bug: 5023662
Change-Id: I84df3b474dd6320327851003af985144cc16348e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
b2a8c2ce4c617d59cb4876951cb952fc97e8382b 15-Jul-2011 Marc Blank <mblank@google.com> Start/stop AttachmentDownloadService as needed

Bug: 5033646
Change-Id: Ic0e75b28d0d8d5665c3f3ca864a9532fee05df8c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4de538be2d17545fb63e781412b8565f0d0d97d4 13-Jul-2011 Ben Komalo <benkomalo@google.com> Prevent account flip flopping from compose

There were two issues:
- the default account ID from the provider wasn't consistent: it was
using a snapshot from the cached data but that simply returns a Map, and
the values aren't guaranteed to be sorted (and indeed I saw that the
order was different on consecutive calls!)
- hitting app up from Compose always just kicked you out to the inbox
for the default account, but it probably should have used the account of
the compose screen, since it can be specified in the Intent

Bug: 5012008
Change-Id: Ic9a753b261e047790453bc1a9417bc0c6d2f87f9
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2bdf7ee0f0f4a2b11b5f7c0f8b193080600fefd8 01-Jul-2011 Marc Blank <mblank@google.com> Delete orphaned mailboxes/messages/policies at provider startup

Bug: 4972132

Change-Id: Icc756a9e28b77de052261903089b040d229e7b5d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c0a9fa9c68a92bb8971b3506ba390ea20f424213 28-Jun-2011 Marc Blank <mblank@google.com> Fix NPE

Bug: 4969186
Change-Id: I27fbdf7a496ee73caf36a90bf56b91c90133b3b7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5d7ff8577d7efd938390ddc5d5476717203d0a55 28-Jun-2011 Marc Blank <mblank@google.com> Synchronize access to mailbox type map

Bug: 4967543
Change-Id: I71380d0d2d5664cf92a9b698bfdad516eeb5c80f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9a01353f14f718c5447d6a3dc25b413be0f175d9 23-Jun-2011 Marc Blank <mblank@google.com> New search implementation for IMAP in MessagingController

* Add protocolSearchInfo column to Message table; this can be used
to store information related to search results. For IMAP, we
store the serverId of the mailbox that the message lives in on
the server
* Add upgrade code for this column
* Change MessagingController to use the proper serverId for remote
operations, depending on whether the Message is a search result
or not
* Fix some smaller issues with earlier code

Change-Id: I0c7f1d89a4659b95701d02646c0e8426680e2f6a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
deb345acebce19996726262f7825c39a784b9fa8 23-Jun-2011 Marc Blank <mblank@google.com> Support FLAG_SUPPORTS_SEARCH for IMAP accounts

* Update existing database to add this flag for IMAP accounts
* Set flag when creating IMAP accounts
* Change temporary UI to use the flag exclusively

Change-Id: Idefccd3a74d2222fe8a0ba47116dee981a0ae1f5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c09ca39cde44bcb18e9a4d9c7cc3c6f7ee4297eb 23-Jun-2011 Marc Blank <mblank@google.com> When looking for default account, check for empty cursors

* At present, we will cache empty cursors (i.e. where the query
result had zero rows)
* If a widget (or shortcut) references a deleted account, this will
create a cached entry for that account, and the defaultAccountId
code will try to retrieve the isDefault column from that (empty)
cursor
* To fix this, we simply skip over empty cursors when looking for
a default account
* We will also look into whether it makes sense to cache zero-
length cursors

Bug: 4883043
Change-Id: Id998506f77bd6cda6cb1f5d8ce65d689dde4d2c5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
63537746479f4b65517bd217c1a5f76d697367eb 23-Jun-2011 Marc Blank <mblank@google.com> Fix problem with getDefaultAccountId() with no explicit default

* This wasn't working with the new code and the unit test wasn't
testing this case.
* Updated code in EmailProvider and added a test case

Change-Id: I75c23423c4f43e4201d446886d92a5312fa8a084
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6e418aa41a17136be0dddb816d843428a0a1e722 19-Jun-2011 Marc Blank <mblank@google.com> Improve EmailContent caching...

* Guarantee that up to 16 Account (with HostAuths), and Policy rows
are always cached. Also, 6 commonly used Mailboxes per Account
(Inbox, Outbox, Drafts, Sent, Trash, and Search)
* Precache these rows when EmailProvider starts up
* Ensure that newly added, precachable rows are cached when created
* Clean up some inefficient/wrong caching code
* Fix a commonly called method in NotificationManager in which we
load a single Mailbox row using selection vs withAppendedId
* Confirm that we don't read from the database in typical use and
heavy message loading
* Add a special URI for finding mailbox by type (using the cache)
* Add special-case code for EmailContent.count(Account.CONTENT_URI)
which is used in a number of places (including on the UI thread)
and whose value is easily determined
* Add a special URI to get the default account id
* Confirm that all unit tests work

The goal here is to be able to load all Account, HostAuth, Policy,
and Mailbox objects (by id) without worrying about disk access.
There will still be a single disk read for uncommon Mailbox reads,
but this should be considered acceptable.

Change-Id: Ibc9aa7acc73185e360b0b6f3053b90a985e97210
TODO: Unit tests
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
369905c95d8b069205f30726edc54122e6bc388f 21-Jun-2011 Makoto Onuki <omakoto@google.com> Fix crashing tests

Some of the tests are still failing, but at least now we can go through till
the end.

- Fixed NPE in WelcomeTests (caused by the mock context not returning a proper
layout inflator.)
- Removed the rainy day test from MessageFileViewTest.
(Not setting a proper intent will result in the argument check in
MessageFileViewFragment)
- Removed unnecessary null check in EmailProvider.getDatabase()

Bug 4766072

Change-Id: I48b92cc91d0417cd9980c131fda8f63a9a6eb990
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
09a0e9b5dca78244e3cc365d99263e7c2402b25d 21-Jun-2011 Makoto Onuki <omakoto@google.com> Merge "Move restore account to EmailProvider."
9dad9ad973ccf8255228a41acc0ee78af989a651 21-Jun-2011 Makoto Onuki <omakoto@google.com> Move restore account to EmailProvider.

In order to reduce the UI initialization code, move
let EmailProvider restore accounts when it opens the DB.

Backup can be moved too, but I just leave it as a TODO.

Change-Id: Id5c1810904db6abaecbfecbaa8d2d53834ebf07b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5a3888f35b669ffb3cc785d7dfe4862879a3896c 01-Jun-2011 Jorge Lugo <jlugo@google.com> Added quick responses.

Added "Insert quick response" button to MessageCompose's action bar. Clicking
it opens dialog with available quick responses. Selecting one of the responses
will insert it into message body at the current cursor location. Also added
menu in account preferences to create, edit, and delete quick responses.

Change-Id: I85f3f6b36801cf112ec9d7c31135a917456173d7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f5418f1f93b02e7fab9f15eb201800b65510998e 14-Jun-2011 Marc Blank <mblank@google.com> Move Account into its own top-level class

Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
313586c8eb4e23ceec068b82f3dc0be1c8a7045f 07-Jun-2011 Ben Komalo <benkomalo@google.com> Introduce client cert alias for HostAuth.

Some email servers require client certificates to be presented to
establish an SSL connection. While this certificate will be maintained
by the system key store, we need to store the "alias" of the certificate
stored in that system store.

Wiring up to use the actual alias will be done in future CL's. It is
currently unused.

Change-Id: I8d1290151342daea9ceb0df8a4088405b44faa81
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2e112b2d12c85d47e85fc821e3cee74c295c6c52 04-Jun-2011 Todd Kennedy <toddke@google.com> Add new column to table creation method

Change-Id: I2c6fe80d06e54dbd10eba41f0a0aa758baffb1b0
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9dcb72e1ecca83178c3af07f105c2ec12526a52c 03-Jun-2011 Todd Kennedy <toddke@google.com> Add "lastTouchedTime" column to the mailbox table

The last touched time will track the last time a message within that mailbox
was read. This will be used for the recent list.

Change-Id: I97a5fda52fd09b416fc3278a11a87b807da05c9c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f3ff0ba91076ef1fb087fc30fe65d9504011c2b3 19-May-2011 Marc Blank <mblank@google.com> Create AccountManager acct for pop/imap on upgrade from GB

* Also, unit test for upgrade path

Bug: 4439595
Change-Id: I508a3d8ea70c1a894a412528314e42a39f3ae0e7
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
12b82d9374947c9268217f45befe8a74bd9b60d7 20-May-2011 Ben Komalo <benkomalo@google.com> Move HostAuth to top level class.

No other changes made.

Change-Id: I1c6497c98abc0f99443ea42d8aed6295b263c123
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
53ea83ebf91f820692e8fa8e781f5cc982dd94db 14-May-2011 Ben Komalo <benkomalo@google.com> Move Mailbox to top level class.

No other changes made.

Change-Id: I3d8f3c521dc0d902be313b25252b4b6a4a96e7ee
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bfac9f2e8a13f6c719608a6948203bbef921c99f 13-May-2011 Makoto Onuki <omakoto@google.com> Move some of the log constants from Email to Logging

Change-Id: If9f4e4e3adcdef897a0d6a4e153bb446a8b24fdd
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e7fb4ac9e3b098ece98d004403a89652f88bbe7a 12-May-2011 Todd Kennedy <toddke@google.com> Add account observer to NotificationController

The notification controller now observes changes to the account database and
adds or removes message observers as appropriate.

Change-Id: I1670fcfd6ce744030199b86708a6ada55b239a84
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0993190cafebc107bd27a26996b5d63d4a4ede10 06-May-2011 Marc Blank <mblank@google.com> Complete rewrite of account backup/restore code

* Use EmailProvider to backup/restore into a backup database
* Remove all of the old AccountBackupRestore code
* Get rid of the legacy Account class and all of the Preferences
crap that referenced it
* Remove corresponding tests

Change-Id: I2de75aafdacc87246174303961e58547303f641e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a9ac20b96f8d2e2e97fb2878afb9df4795024450 06-May-2011 Todd Kennedy <toddke@google.com> Add lastSeenMessageKey column to the mailbox table

The last seen message key is the id of the last message that we've "seen" for
that mailbox

Change-Id: I197f8a191654225ada1ce553cc959db775809c88
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bf30f94c2e47a2f3340362060365809bf9258260 06-May-2011 Todd Kennedy <toddke@google.com> Add operation and id to notification URI

In order to provide a bit more granularity for content observers, we add the
operation (e.g. "insert", "remove" or "update") as well as the id of the row
that has changed (if it's known).

Change-Id: I214d3c030872f888cde1a2db9b6b46f1bb121b7a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c4cdb11d24c19428dd39f986b00c1a29e75e1505 03-May-2011 Todd Kennedy <toddke@google.com> Remove notification if messages seen off device

If we receive new messages, we may display a notification to the user. If
those same messages are read elsewhere (i.e. via a web client), we will
remove the notification.

Change-Id: Iba09afe01942e0deaac8210fd6f9b315b1c8c93f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f91a03f5203bb64ae0726596d65ac90c35088666 05-May-2011 Marc Blank <mblank@google.com> Add new policies to Policy and associated data structures

* Update Policy unit test

Change-Id: I24a980537a73e40fca9fceb1b6ad6b2feaa9c342
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
647007c31b080d992ebdcb2409e3bc14b0c2646f 04-May-2011 Marc Blank <mblank@google.com> Remove scalpel left in patient

Change-Id: Iea55718a815cf3eafdd2b506637c96aeac8e7cb2
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
aeee10e57ef4d931e7708fde218d590453a82aea 28-Apr-2011 Marc Blank <mblank@google.com> Rework of security policy storage

* Replace crazy (and soon to be "full") bit fields stored in an account's
securityFlags with a row in a newly created Policy table (thus, fully
expandable)
* Update code from database version 17 to 18; adds Policy table, a
policyKey row in Account, and a revised trigger that deletes Policy
information for deleted Accounts
* Update old PolicySet unit tests to work against the new Policy class
* Add test for the conversion of securityFlags to Policy
* Tested in a variety of scenarios; appears to be functionally equivalent

Change-Id: I1505ee75230d6a0d3c2b62a46326f39c2c7f9eb5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
22208771b7b39c5d131372ba6bc45ab23cc22232 23-Apr-2011 Todd Kennedy <toddke@google.com> Add hierarchical folders to IMAP

We now create folder hierarcies for IMAP. This also includes a nifty SQL
statement that will get your existing database into shape.

Change-Id: If07a0632e9b250cf0c33c3e16bfba5816beab94c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3a58509b2ad7b6f946eb0a4a7b0f75ece6d6a46f 01-Mar-2011 Andy Stadler <stadler@google.com> Add parent key to Mailbox schema

Bug: 2028418
Change-Id: I79d48befe7754692a3cab6c8851105bb399431f5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3a5c1fb274a9ce72d708d88509bf2607cb018ddd 13-Feb-2011 Marc Blank <mblank@google.com> Email split, part neuf: Setup, logging, attachment glue

* Make "Exchange" option in account setup depend upon availability of the
Exchange EmailService
* Make presence of Exchange logging depend upon availability of the
Exchange EmailService
* Make AttachmentDownloadService use service rather than ExchangeService
class
* Move SSLUtils to emailcommon/utility
* Move account manager type defs to emailcommon/AccountManagerTypes
* Update proguard.flags
* This is the penultimate CL for the Email package itself; the next CL
creates a clean, SDK-compatible Email application

Bug: 3442973
Change-Id: I9162cf5fa6b5a043ded0fdd1e25fd3ce5948ad8f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
31d9acbf0623872f9d4a2b3210b5970854b654c7 12-Feb-2011 Marc Blank <mblank@google.com> Email split, part huit: Refactor constants, clean emailcommon

* There are three pieces to this CL (sorry):
1) Move and/or rename some constants into emailcommon
2) Move Utility to emailcommon, moving the few UI
related utilities back into Email (FolderProperties
and UiUtilities)
3) Remove all references to resources from emailcommon
* The three pieces relate in that, between them, they allow
the emailcommon static library to compile cleanly

Bug: 3442973

Change-Id: Ic5e3abaa2a1b36999e0b6653c6c2134ea1bd544f
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a7bc0319a75184ad706bb35c049af107ac3688e6 10-Feb-2011 Marc Blank <mblank@google.com> Email split, part six: EmailContent

* Moved EmailContent to emailcommon

Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d306ba34387f3a7e77a4b8d98c6ac45cc14b95ad 30-Dec-2010 Marc Blank <mblank@google.com> Handle query with an id of -1 more gracefully

* In query of an otherwise valid URI with -1 as an id, simply return
an empty cursor
* Add unit test to verify proper handling of invalid uri's

Bug: 3183245
Bug: 3292080

Change-Id: Ia0c35cbd0f5dd0dc4a8fc794226399644cf1fe13
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1c1bd6a3eb2b7d99e30713648616c807ae20cbb5 30-Dec-2010 Marc Blank <mblank@google.com> Fix typo in debug code

Change-Id: Iffb3effa3fd659be3df3208bb587fea83bc9116e
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e6a22dff397e6453e1f56518d840c0bdd11f673b 16-Dec-2010 Marc Blank <mblank@google.com> Throw exception on illegal URI's in EmailProvider operations

Change-Id: I6354c03e7cead81df3764b7d0bd1be0e90271664
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
75a873be8420e50f0aeb5a77716358ee0ca66b01 09-Dec-2010 Marc Blank <mblank@google.com> Implement prefetch of IMAP/EAS attachments

* Load attachments in the background for IMAP/EAS messages
* Download an attachment from account X if:
1) 25% of total storage free
2) Attachments for X use < 1/N of 25% of total storage, where N is
the number of AccountManager accounts
* Add accountKey to Attachment table for performance

Change-Id: I913aa710f34f48fcc4210ddf77393ab38323fe59
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9d5aaeacd6b222877f25924818317c9153708261 03-Dec-2010 Makoto Onuki <omakoto@google.com> Follow-up to Id18fb940. Tests, fix transaction.

Change-Id: If425db7d729e260102a9db82b98e14ff6f6be143
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
edb8af826ca8fd1bb0fa42dacac4af90a65ed554 03-Dec-2010 Makoto Onuki <omakoto@google.com> Update/invalidate cache properly in update()

This prevented EAS accounts from showing the new message notification,
because Account.newMessageCount in the cache didn't get updated
properly.

Bug 3249319

Change-Id: Id18fb94083e2f441c293414f790a26f82869e3da
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
1b9337ea4f41c12cb108cbe67e0077169b1f0b8c 23-Sep-2010 Marc Blank <mblank@google.com> Wireframe email widget

* Formatting and assets are preliminary
* Functionality correct
* Needs cleanup, etc.

Change-Id: I75051df93d233ef529a616c7a9efae403d320bd2
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fab77f147f85766d2f75d8aece0aaa4ffb3838e8 28-Oct-2010 Marc Blank <mblank@google.com> EmailProvider content caching

* In this CL, we cache individual rows, based on the CONTENT_PROJECTION
defined for the most common queries (Account, HostAuth, Mailbox, and
Message)
* Queries on individual rows (most often Class.restoreClassById()) will
look to the cache first, rather than querying the database
* Queries on smaller projections will build MatrixCursor's from cached
data
* Write-through caching updates the cache with changed columns
* Experiments with live data indicate that > 95% of queries that are
cacheable (single row, no selection) can be retrieved from the cache,
thereby saving a great deal of disk access.
* Timing experiments show that cache hits are > 40x faster than cache
misses
* Unit tests for the various classes exist, with more coming

TODO
----
* More unit tests

Change-Id: I386a948a2f4cc02b6548d07d9b2fefd1e018a262
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c81bef672089654e6da3babbeb0172bd636564b2 14-Oct-2010 Marc Blank <mblank@google.com> Drag & Drop "move to folder"

* Drag & Drop "move to folder" preliminary implementation
* Use "drag handle" button to initiate drag
* Use the message list item itself as the drag thumbnail for
one item; "Move N messages" for multiple (not implemented)
* Disable MailboxList update during drag
* Use ListView itself as drag/drop target

Bug: 3138004
Change-Id: I9243e4f583cf91caa1b9dd04fd64d52e8b28fa30
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
07597e547bc02cd2247caa866d25b94745dcd448 29-Sep-2010 Marc Blank <mblank@google.com> Use LIMIT parameter in getFirstRowX calls

* Also, rename the LIMIT parameter to be consistent with naming
conventions

Bug: 3046494

Change-Id: Iafc7f7d76f45bc7988e5d63783359082756b7ffa
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0efe738e05a31e0c1ebfba645bd2364a373a3f33 28-Sep-2010 Marc Blank <mblank@google.com> Add Uri for Message queries that include a LIMIT

* Use a query parameter (e.g. ?limit=2); LIMIT works with any
query

Change-Id: Idd106ab4b61aec237ac9676a201e797c4f65f15b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
261d6c3f0c97a12256519a2c3b131a56e57ab45f 15-Sep-2010 Makoto Onuki <omakoto@google.com> Notify only account cursors when resetting new msg count

- Resetting the new message count is now correctly done on a BG thread.
- Added special content provider URI to reset the count.
(/resetNewMessageCount)
- This URI only supports update, which will notify only account
cursors.
- Fixed a problem that an insert with MAILBOX_ID/MESSAGE_ID/ACCOUNT_ID
triggers two notifications.

- This CL changes how we use notification URIs, but unfortunately
no tests for this part. It turned out MockContentResolver doesn't
support the notification mechanism, which made it very hard
to write tests.

Bug 2911646

Change-Id: I35b30a7e6bf2d57510486c7ed19b9f263d8c9b58
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
7bcf1882bcb33b690f0b104f7605c9a6da39f344 11-Sep-2010 Makoto Onuki <omakoto@google.com> EmailProvider related clean up

- Removed unused URI definitions.
- Added SuppressWarnings to CONTENT_URI's in EmailContent

Change-Id: Id1e746ef5ab86dd76dc1b7dd38a5a00d052bddab
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5b0c2c7f344e72915ac63ff45cf3d65885373a39 10-Sep-2010 Makoto Onuki <omakoto@google.com> Fix tests broken by I2bf5de4e (Clean-ups for EmailProvider)

My previous CL broke some tests.
- make sure to set 0 to unreadCount when adding a new row
- when updating messageCount in the tests, directly manipulate
the DB. (the provider no longer allows this)

Change-Id: Ib569349707007badf4f23600fbca37110c78fa6d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f678a8e67ace74ea285dcec9727d0117e23a5c73 10-Sep-2010 Makoto Onuki <omakoto@google.com> Clean-ups for EmailProvider

- Don't allow manual modification of unreadCount/messageCount
(We used to check only unreadCount in update().)
- Do the integrity check at the very first in update().
I think the old place was really problematic because we opened
the database in a few lines above and kept it in a local variable.

Change-Id: I2bf5de4e4e45b40c11b951dd2255f8193c26f1aa
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
d36d911fac517f7a82f5a341290f67e2dd04979d 09-Sep-2010 Makoto Onuki <omakoto@google.com> Add a flag to check the current thread on db accesses

Added Email.DEBUG_THREAD_CHECK. If true, EmailProvider warns if certain
methods are called on the UI thread.

Change-Id: I6db9e45f2e449a31850c223fc9eec0fb9a575cb1
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ddc8dea2bdfb85838f70dc1c2f173e42b86c7554 07-Sep-2010 Makoto Onuki <omakoto@google.com> Fix upgrade problem in I84a2cbe1

I84a2cbe1 didn't upgrade the deleted/updated tables.

Bug 2980891

Change-Id: Ifb0800bab58978352f2239f99186d0503e0dd899
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e7b9e4ab94093127002f4cddd3ffcc3deb1c0b41 02-Sep-2010 Marc Blank <mblank@google.com> Add snippets to messages

* Add 'snippet' column in Message table and handle upgrades to the
new schema
* Generate a snippet from either HTML or plain-text message body,
removing tags, extraneous whitespace, and other superfluous text
along the way. Store the snippet in the Message table
* Clean up MessagesAdapter to use the pre-existing list projection
and constants
* Write unit tests for snippet creation
* The UI in this CL is always single-line, ellipsized

TODO: Handle two-line subject if portrait and XL

Change-Id: I84a2cbe10957975942edad6eb1255a726924a78a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6c36b4c613499655316d8c910e3c6bfb08a0d896 20-Aug-2010 Makoto Onuki <omakoto@google.com> Add shutdown() to providers.

They're needed for unit tests.
I was hoping this would solve some of the unit test issues, but it didn't look
like so. But still they're nice to have.

Change-Id: Ibf6ae78055560d27aac5934d567a17084de99d84
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
09fd4d0a181db511a07950f52ad56cc6e686356b 10-Aug-2010 Marc Blank <mblank@google.com> New asynchronous attachment loading code

* Create AttachmentDownloadService to manage all attachment downloads
1) User requested
2) Required for email forwarding
3) Opportunistic downloads to enhance offline use
* New attachment related UI (pending UX approval, of course)
1) MessageView (attachment actions, progress bar, etc.)
2) MessageCompose (attachments for forwarded messages)
3) Associated toasts, notifications, etc.

TODO:
* Unit tests
* Cache Management (separate CL)

Change-Id: I7864a5fb1c3f4f2be68d98341a971edc6cbacfe1
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
574854b528163f3bf1a7cb974aa80082d1768edf 30-Jul-2010 Makoto Onuki <omakoto@google.com> Add the messageCount column to the mailbox table.

- Use trrigers to keep them up-to-date.
- Batch-update them upon upgrade.

- Motivation:
On the mailbox list, we show the number of messages in trash/drafts.
We currently do this with count(*) on the fly, which is okay
because MailboxList is really shown right now.
However, on the 2 pane, it's always shown and constantly refreshed,
so the use of count(*) can be a huge penalty.

It also make the code significantly simpler.

Change-Id: I26efa238d5183df43420a65925876248ef6c6cb6
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
20225d57609d6a5e482c088fdad60c29212d31a0 12-Mar-2010 Makoto Onuki <omakoto@google.com> Explicitly send ICS files in UTF-8.

- In memory attachments are now stored as byte[], not String.
We can store any type of contents now.
- Added blob content_bytes to the Attachment table.
The content field is now deprecated and not used.
- Explicitly convert ICS files to UTF-8.

- Added Utility.to/fromUtf8().

Bug 2509287
Change-Id: I3785a365a9a34039ec12ba82bd857dcdbc4de92d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
3aaba9eb87db34ea0861d70d5c08f84d7ca97ab0 22-Feb-2010 Andrew Stadler <stadler@android.com> First part of Exchange meeting request/reply implementation

* Added two columns to Attachment in EmailProvider
content: content that is written directly as an attachment
suppressDisposition: to suppress the content-disposition header
All meeting invitation emails use these two columns; the first
for ics attachment data (which is quite small, rarely over 1k),
and the second to indicate NOT sending the content-disposition
header; without this, Exchange will consider the ics as an
attachment rather than an iMIP style message (rfc2447)
* Modified tests to include these columns; added upgrade code for
new database version
* New columns and code are designed to be usable outside Exchange,
although there are no other clients of the code at this point.
* Modified Rfc822Output to use the content field, if present, in
lieu of retrieving attachment data via URL; added support for
suppressing the Content-Disposition header
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4006e5fc224d097450fd66a321901b6636f7d9c4 16-Feb-2010 Marc Blank <mblank@google.com> Add meetingInfo column to Message; use for meeting invites

* Added a meetingInfo column to the Message database
* When a meeting invite is received, the start time is stored here
in ms from start of epoch. Note that this field is defined to be
a String, for extensibility
* Update ProviderTests

Change-Id: If44892d27ccc5ebdc1f8667befafb8b8a27a2cf4
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
91237e9dcb0a948f17488b464edabcea0f259d31 03-Feb-2010 Makoto Onuki <omakoto@google.com> Adding script for building Email app without exchange.

remove-exchange-support.sh makes it possible to build the email app without
exchange support.

This script:
- removes all packages under com.android.exchange.
- removes all lines surrounded by EXCHANGE-REMOVE-SECTION-START and
EXCHANGE-REMOVE-SECTION-END

And the resulting source should still build and run fine.

Bug: 2369784
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
faed6178b1858f0e6df388a409d14fb3f94afefa 02-Feb-2010 Makoto Onuki <omakoto@google.com> Move Eas.ACCOUNT_MANAGER_TYPE out of the package.

Moved Eas.ACCOUNT_MANAGER_TYPE to Email.EXCHANGE_ACCOUNT_MANAGER_TYPE.

This constant is not related to the exchange protocol, and referred in
a lot of different places. Moving it out of the package will make it a lot
simpler when removing exchange dependency.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
345fb8b737c1632fb2a7e69ac44b8612be6237ed 27-Jan-2010 Andrew Stadler <stadler@android.com> Add utilities for processing account security policies

* Add security sync key & signature columns
* Add utilities for easy read/write of security columns
* Write aggregator for multiple accounts
* Simple API's for exchange security (very preliminary)
* Unit tests of above

Bug: 2387961
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fc8d943a828cd79ff71c703ced37001bd5482173 21-Jan-2010 Andrew Stadler <stadler@android.com> Add security column to Account

* Upgrade accounts table to add security column
* Read/Write new column
* Backup/Restore new column
* Unit tests for all of the above
* First cut at defining bitfields (non-binding, just putting down ideas)

Bug: 2387961
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0e1595c177e40428b267a8696dfc05d015ce6a2f 19-Nov-2009 Marc Blank <mblank@google.com> Handle unexpected deletion of EmailProvider database

* Addresses #2226426
* If the user deletes Email data, or if data corruption causes
EmailProvider.db to be deleted, we will be in an inconsistent
state with any existing Exchange accounts, since the AccountManager
will still know about them, contacts (and eventually calendar) items will
continue to exist, etc.
* Run an integrity check when the provider is created, deleting any
orphaned EmailProvider.db or EmailProviderBody.db
* Catch SQLiteException's in the Provider and do an integrity check
if any is caught

Change-Id: I47d523b90a6b8f71ba8e13fba4b04846b3da1b1d
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
b720ed318324c69ddbcb15c4a1b9e132f3266775 04-Dec-2009 Vasu Nori <vnori@google.com> revert previously submitted CL 34143.

turns out the change I submitted before is not required at all. I mistakenly
assumed sqlite wouldn't be able to handle it. but tested it with the latest
version of sqlite 3.6.20. the old style triggers work fine.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8e09bde56833c1d7e55b1553d20b0537794d02b9 26-Nov-2009 Vasu Nori <vnori@google.com> change BEFORE triggers to AFTER triggers - to make them work with sqlite 3.6.20 and beyond
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
367963639d4291511b7e175a208e2b553aac26c2 20-Oct-2009 Marc Blank <mblank@google.com> Fix SQL for upgrade from ver 6 to ver 7 of Email database

Fixes #2196917

Change-Id: Ia403e50e9ec4ea553d38ded656bba769a4a4dd18
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ef83299b99288c00b9d661260d19715e73e6889c 14-Oct-2009 Marc Blank <mblank@google.com> Clear out orphaned messages in updates/deletes tables

Case #1:
* Fixes #2184702
* Messages can be in the base Messages table, but also in
Message_Deletes and Message_Updates; the latter two were not
being purged of deleted messages.
* This CL deletes from all three tables when a Mailbox is deleted
* Also run a check for orphaned deletes/updates when the email
provider's db is first opened
* Unit test updated to check for proper deletion
* Unit test for the provider check for orphans

Case #2:
* Fixes #2184708
* Messages in Outbox/Drafts can get modified or deleted, but the
rows added to the updates/delete tables never get removed because
the boxes don't sync
* Added code to SyncManager.ping (which gets notifications of these
changes) to delete these rows

Change-Id: Ib53e441136b0da1e88bc220150d631999058a8f0
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5fc57eccefeba517fe5e6f093786f37c6c4d50e6 23-Sep-2009 Marc Blank <mblank@google.com> Fix reply/forward for both SMTP and EAS; fixes #2138725

* Add new introText column in the Body database
* Reply/Forward put the appropriate String into this new column
* Rfc822Output uses this when required when streaming the message

Change-Id: I34602fdb3f91692c46fc8bc31ba0e6f680d445a0
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
0d00889f83fc8c1d69039a2c849b630fb4dd28dd 23-Sep-2009 Andrew Stadler <stadler@android.com> Cleanup Provider Message in preparation for upload

* Remove mServerIntId and its special logic
* Add mServerTimeStamp
* Add column dynamically so we don't lose accounts

Bug # 2097471
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
8587aa61211d288d05b5fb2ddf02d69cabe6a9e2 19-Sep-2009 Marc Blank <mblank@google.com> Make EmailProvider more threadsafe w/r/t transactions

* Since transactions can be nested, get rid of pointless/dangerous
flag for indicating we're in a transaction.
* Fixes #2131847

Change-Id: I2955e8a7659533e8ee9e71b949a042570466df45
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
657de3bfd6024811c6d6ef6fb2fb2c2750d9f54a 19-Sep-2009 Marc Blank <mblank@google.com> Revert change to AccountManager naming; use email address again

* Forces wipe of existing accounts

Change-Id: I65d08e07a2d74f94f9142e85791d9bf49c100241
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e7e1ca432e1aace5b7f11a3f1684a4abc503e6b2 16-Sep-2009 Marc Blank <mblank@google.com> Change AccountManager username for Exchange to the user's login credential

* This is not a backward-compatible change (sorry)
* Existing AccountManager EAS accounts and contacts are deleted
* Existing EmailProvider data is deleted
* Change works with new code (stadler) to avoid account duplication

Change-Id: Ife09c51fa714d91054d017b497bce603add5375a
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6c21942ec45f561d711b3d74ecca8e62afb735c4 10-Sep-2009 Andrew Stadler <stadler@android.com> Implement move-to-trash for IMAP and POP3.

* Define new message-loaded state "FLAG_LOADED_DELETED" (used only for
POP3, which needs to write sentinel messages that are not displayed.)
* Also renamed the other flags to make the naming more consistent.
* Tweak MessageList query generation to inhibit display of deleted
message sentinels, and MessagingController won't try to resync them.
* Clean up implementation of Controller.deleteMessage()
* Add support for move to trash to MessagingController. This operates
in three primary modes:
* POP3 local delete (no server-side interaction)
* POP3 server delete
* IMAP server delete (and copy to IMAP trash mailbox)
* Add missing implementation in provider to delete all of the attachments
for a given message
* Fix progress reporting in activities (the test for error vs. progress
was inverted, which caused progress indicators to keep spinning
after errors.)
* Fix broken account settings UI (POP3 delete policy was not persisting)

Addresses bug 2097409

TODO delete from trash / empty trash

Change-Id: I00188e6dc2093823106e009f35b68c760227c9e6
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e25698319325d5e9619bc45ae85d861b0f1c5954 08-Sep-2009 Marc Blank <mblank@google.com> Add sourceKey to Body table; add flags for reply/forward in Message

* Set reply/forward flag and sourceKey as appropriate in MessageCompose
* Update provider tests accordingly

Change-Id: I7f49d80a735314a1a38f09fbf1f234257c41af8c
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9be10e62ed4c809c56e2bcc357d5bb7d5dd543c1 04-Sep-2009 Marc Blank <mblank@google.com> Remove the "unique" requirement for serverId; it should never have been there

* People using multiple accounts without this change could end up with missing folders
* Fixes 2099514
* Database version incremented; this change will cause a database wipe

Change-Id: I08d23fa54d8194758e1f7c2ffb528a14bc184f08
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
936babc145e2e6eb2e222f2ce5e3da8f9e4fb9f2 02-Sep-2009 Andrew Stadler <stadler@android.com> Bulk change of columns, LAST TIME.

* Add reply columns to Body
* Remove a bunch of unused columns from Message
* Update SQL tables, content read/write, etc.
* Small tweaks to app code that was not-really-using the old columns.
* Update existing unit tests for new/changed columns
* Disable TagsTests to solve a tests failure (prexisting, not caused by
this CL)

Change-Id: Ief493796dfe219669755170d76786f91570cbb9b
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
77398c42899a383680005b92955a29ab3d872c5c 24-Aug-2009 Andrew Stadler <stadler@android.com> Reenable Load More Messages for IMAP/POP

* Properly reset all mailbox limit values
* When load more messages is clicked, increment limit and resync
* Also fixed a race condition in provider

Resolves bug 2065626

Change-Id: If50f25a5cb3b549b3acc48406c78533ad86ed4d5
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c0c9c33322deecace00a32766e0a1b355aad4b31 20-Aug-2009 Marc Blank <mblank@google.com> Add URI's that atomically add a value to a particular field (Account or Mailbox)

* Message, etc. could be added, if this had a use case
* Unit test added for both Account and Mailbox cases
* Eclipse changed some parens around; it won't happen again
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a867ebba6233becf2061c80e1c53d7d395a6cffc 18-Aug-2009 Marc Blank <mblank@google.com> Have body database attach just once, and never detach

* Much cleaner implementation
* Prevent errors when various threads collide for attach
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4a8c70c09be3914ded18031b4cca5a6d867de0d3 18-Aug-2009 Andrew Stadler <stadler@android.com> Add "num new messages" field to Account

* Reset DB version to "1"
* Added field and support code (save, restore, & parcel)
* Added forgotten mProtocolVersion to parcelable code
* Added unit test for parceling

Also, fixed race condition in SyncManager that was underlocking the
wake locks during tests.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9627d014e16235eadf981b9165807dc72a14a383 12-Aug-2009 Mihai Preda <preda@google.com> MessageCompose: update body on save.

- plus unit tests.
- and some attachment refactoring.
- move PROJECTION_ID up to EmailContent.
- add index on messageKey to Attachments and Body tables.
- add missing Columns.ID field in EmailContent.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fb7974f5bfb6275fb856b0f7ff386ef10680c83a 03-Aug-2009 Mihai Preda <preda@google.com> Fix SQL for DELETE_ORPHAN_BODIES and DELETE_BODY.

and add unit tests.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9b598924ec1dd53f865a6aa552d40161aeb5dd0b 05-Aug-2009 Marc Blank <mblank@google.com> Try to work around the "ping loop" problem in some Exchange 2003 servers

* First try reloading the folder list; this can sometimes work
* Otherwise, change push to 5 minute sync
* Send notification if we switch to 5 minute sync so there are no surprises
* Added syncStatus column to EmailProvider (can be used for any purpose)
* Use syncStatus to keep track of sync type, result type, and change count;
detect ping loop as consecutive ping's with no changes
* Remove InteractiveSyncService (no longer needed)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
cba3a48f97ae2e6d875ac4284a4066da94c922d5 06-Aug-2009 Marc Blank <mblank@google.com> Fix EmailProvider so that deletions can occur during batch operations

* Fixes bug #2034170
* Attach the body database during all batch operations
* Change insert, delete, update, and query to use the main database for
all operations during a batch operation; trying to use the body database
while it is attached will result in a SQLiteException (database locked)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f00dccd32125c727cc18d837b59c15c95f5d78bc 31-Jul-2009 Marc Blank <mblank@google.com> Massive reworking of EAS serialization; much smaller and faster now

* Remove all use of Strings in favor of the parser's static final int's
* Strings remain in Tags for debugging output only
* Renamed lots of classes to be more consistent
* Centralized logging behavior in Eas class
* Found and fixed some bugs in the process:
- Account deletion wasn't removing HostAuth's correctly in the trigger
- Adding a second EAS account was trashing the first one
- Fixed looping sync behavior caused by Exchange 2003 bug
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
758a532fce2f672673d38b2daa5f67eb757b118b 30-Jul-2009 Marc Blank <mblank@google.com> Use providers to update the unreadCount of Mailboxes

* Triggers added for insert/delete/update of Message
* update of Mailbox will never set unreadCount
* Removed old test for unread counts and replaced with on
that tests trigger operation.
* Remove Account.updateUnreadCount (deprecated)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9e2c6bd5f21f2d19eef7ebfe30e6fdf94ede0857 23-Jul-2009 Andrew Stadler <stadler@android.com> Remove saveOrUpdate from EmailContent to prevent stale writes

* Numerous classes modified to deal with this change
* Fixes bugs 1993292 and 1994671
* Renamed various setter and getter methods to reflect the underlying
field names
* Renamed syncFrequency to syncInterval in Account and Mailbox
* Convenience method added to AccountSettings to save only user settings
* Calls to content.update(context, content.toContentValues()), which save
all fields, should be double-checked for correctness, making sure that
content has current data and will not conflict with other threads that
might modify that data
* Ran all unit tests to confirm proper function

NOTE: The logic to enforce single default account no longer works,
because that logic is in Account.save() and does not run via
Account.update(). I have patched out a small section of the relevant unit
test and will file a bug to come back for this fix.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
eda017627e7234fb8c7d0fa4cc41557bb2bf796a 21-Jul-2009 Marc Blank <mblank@google.com> Prevent EAS startup race condition while debugging

* Make sure that mAccount and mMailbox are up-to-date at all sync starts
* Prevent duplication of mailboxes in schema, since it's always wrong
* Add a service call to enable/disable logging in EAS
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5790d1458fc9f4c3e32a985827f3b3e942a356c9 20-Jul-2009 Marc Blank <mblank@google.com> Work on EmailService calls, attachment loading, etc.

* Stubbed in attachment loading in MessageView for EAS messages
* Modified MessageView.Listener to implement IEmailServiceCallback
for testing callback functionality
* Rewrote EmailServiceProxy entirely
* Simplified loadAttachment service call
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
53093871c492d03947c494f17e2463b27345e083 18-Jul-2009 Marc Blank <mblank@google.com> Changes to EAS: attachments, HTML text, and sending mail (without atts)

* Added HTML support for Exchange 2007 and later
* Modified MessageView to show HTML parts of body (if present)
* Replace some unused convenience methods in Body to be ones that are more
useful (i.e. retrive body for a given message id)
* Made EAS sending operational
* Updated SyncManager to recognize the creation of new messages and check
for work to be done (i.e. starting Outbox sync)
* Modified MessageView to remove EmailContent.X references
* Also changed the pattern EmailContent.getContent(cursor, class) to the better
new ClassName().restore(cursor)
* Add a test of the utility to determine mime type from file name (since
EAS doesn't provide this with attachment header information)
* Fixed bug in ProviderTestUtils in which the base (EmailContent) fields weren't
being checked for equality in the various subclass equality testers. Fixed a
bug in saving emails that was caught by fixing this bug.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
4119218e2fd64341ac946fb8f2cbdb796a444cb8 17-Jul-2009 Andrew Stadler <stadler@android.com> Add support for get-attachments-by-message-id

* clean up provider URI's in this area
* minor bugfix in EmailContent, and add auto-writeback of messageId into
saved attachments
* clean up existing attachment unit tests
* add new tests
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f33986d5cc248d2eeed0707143d81e94866f8e3a 16-Jul-2009 Mihai Preda <preda@google.com> Eliminate Config.LOGV (deprecated, always false).
Add Email.LOGD as a development log guard.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
c6893ddf0fc1a647ca13a2b3aac2c68ca345de37 09-Jul-2009 Mihai Preda <preda@google.com> First steps towards using the new EmailContent.Message in MessageCompose.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
6b158f715b2ab6b2f35e894857446023f1d8be88 14-Jul-2009 Marc Blank <mblank@google.com> Handle UI delete in EAS where the message is moved to trash

* Check for the folder of updated messages, and delete those now in trash
* Created convenience method for finding a mailbox of a particular type in
an account (helpful for finding, say, an Inbox or Trash for a given account
* Fix deleted/updated message table so that the _id column is defined to be
unique (to prevent duplicate change records from being written)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
b6493a07ef625c0e290890c2e60256b47a066e5e 05-Jul-2009 Marc Blank <mblank@google.com> Major refactor and cleanup of EAS code

* Rewrote push logic to encompass multiple folders (i.e. calendar/contacts)
* Change inbox from push frequency to ping frequency after initial sync
* Implement upsync logic for email (i.e. sending changes to the server)
* Did cleanup of some files (there's still some to do) re: format, style
* Initial one-way sync of Contacts data - add and delete are implemented
* Created adapter package for all parts of the EAS adapter
* Created utility package for utility code that will eventually be merged
with code in the Email application (Base64, QuotedPrintable, etc.)
* SyncManager/AbstractSyncService can be used in the future for other
protocols, especially IMAP push
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ddc871d9eddd088c0200a30dbfeb24812a81cf80 30-Jun-2009 Andrew Stadler <stadler@android.com> Fixed a few EmailProvider omissions; added tests

* EmailProvider query wasn't handling queries for deleted messages
* EmailProvider wasn't catching exceptions on some 'drop table' ops
* Added tests of synced messages (delete and update)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f374304e92cc6c27ce1a59242d4b9ff02a9cbb14 27-Jun-2009 Marc Blank <mblank@google.com> Add support for sync related provider operations

There is now a deleted table as well as an updated table for Messages,
and some new URIs that are well documented in EmailProvider
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
5f4dbd64389cd6540a93cde1daed304bf9392a01 24-Jun-2009 Andrew Stadler <stadler@android.com> Attempt to download small messages, and POP messages.

POP doesn't supply headers in the ENVELOPE phase, so we have to
explicitly ask for, download, copy, and save small message bodies.

Fix bug in EmailProvider (it was not always detaching the body db),
leaving the DB locked in some situations.

Problems outstanding:
* POP messages are committed before they have headers, which leads
to blank entries in the UI. It might be worth tagging them and
selecting them out until they're ready to display.
* Inefficient because we're reloading the message from the provider on
each pass, instead of hanging onto it and updating it.
* Not marking "complete" yet because we aren't handling attachments
or inline images yet. So we keep on reloadin'.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2c67f1f8b869454ed24c0ac3c813aca26d2f3978 16-Jun-2009 Marc Blank <mblank@google.com> Initial submission for EAS support (email)

* There is some temporary code ensuring that SyncManager runs (this will be removed when Exchange
is entirely independent)
* The service interface (aidl) is in place for most user-facing actions (load more, start sync, etc.)
* EAS account validation is done via aidl
* Folder and message sync appear to be functional in this early submission
* Provider now does cascading deletes (Account -> HostAuth and Mailbox, Mailbox -> Message,
Message -> Attachment and Body)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
33e176f4919569a9444d641e94034785c10c5562 21-Jun-2009 Marc Blank <mblank@google.com> Remove the bodyId column in the message base for consistency

Foreign keys belong in the child, not the parent, as is done with other
EmailContent classes. Therefore, Body has a messageKey, and Message has
no bodyKey.

Updated MessageView to use the proper query for retrieving a message body.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
e34525d0f026a7467cee1cb5fddcf25ba6f35207 17-Jun-2009 Marc Blank <mblank@google.com> Add URI's for updated messages, and Provider support for them

Messages that have been updated in the database live in a different table
and therefore can't be accessed in the provider without the added support.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
a290f503f14432163f74548a5e5d1dc5003ad049 15-Jun-2009 Marc Blank <mblank@google.com> Refactored EmailStore, EmailContent, EmailProvider

EmailStore goes away, replaced by EmailContent
All database activity is moved to EmailProvider
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
9019315b2642d58691cf09d32c07c0cf902f0a41 04-Jun-2009 Andrew Stadler <stadler@android.com> Conversion to provider-based Account. What works:
* Editing existing accounts
* Two placeholder accounts are written

What breaks (in approx order of planned fixes)
* Some details of account editing
* New account creation,
* Viewing mailboxes & messages
* Mail sync using accounts
* Import of existing accounts
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
84969fb580f569c0e3625a3c59a71d2909ae198d 01-Jun-2009 Fred Quintana <fredq@google.com> update to adhere to applyBatch changes
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
626f3e48a4f14c38a973dd2bea2e2debea7637a5 01-Jun-2009 Andrew Stadler <stadler@android.com> Updates to EmailStore and EmailProvider:
1. Call notifyChange() after all API calls.
2. Make Account & HostAuth parcelable
3. Temporary APIs to create "store URI" strings for the existing mail code
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
fae4727a911a13cd0bfaaf2f1167d780bafb592b 29-May-2009 Marc Blank <mblank@google.com> Squashed commit of the following:

commit 19beb6f0cc6c0f3f0cbcdcd66cec9f141b470d70
Author: Marc Blank <mblank@google.com>
Date: Fri May 29 14:23:01 2009 -0700

Changes to EmailProvider

commit 84cced7b94bde4688ad986a45a6bf876cde3bdbe
Author: Marc Blank <mblank@google.com>
Date: Fri May 29 14:02:20 2009 -0700

Fix additional formatting issues.

commit 1faeb1763ba8a967fbf79ddbc48822af08c65a15
Author: Marc Blank <mblank@google.com>
Date: Thu May 28 19:26:03 2009 -0700

Changes in EmailStore.Account
- Add isDefault column
- Add status methods setDefaultAccount/getDefaultAccount

Resubmit previous with formatting issues addressed.
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
ea6b71e0f4b515df378426a703bf3261db2f1306 28-May-2009 Andrew Stadler <stadler@android.com> Per android code style guide, all member variables start with "m"
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
bd649fc1fd0f8018b2c2036ed7a1465af6fdfd8a 28-May-2009 Andrew Stadler <stadler@android.com> General changes to generalize account & hostauth classes:
- Remove references to SMTP and use generic "send" and "recv" notation
- Move protocol indication into hostauth
- Add TLS (along with SSL)
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
2e758791d000ec1648bd2199dd1209d36488b69c 28-May-2009 Andrew Stadler <stadler@android.com> Rename Email to EmailStore to avoid collision with existing Email.java
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java
f3d5b202360031979714c3e366c386bcc7e6a40e 27-May-2009 Andrew Stadler <stadler@android.com> Import first versions of Provider from Marc
/packages/apps/Email/src/com/android/email/provider/EmailProvider.java