Commit Graph

2789 Commits

Author SHA1 Message Date
Marc Blank
3408ad1113 Use proper column in loadAttachmentCallback
Bug: 6138389

Change-Id: Icd9b3454670d29e1fbd1dfc309700eb1643cc9ee
2012-03-08 21:18:04 -08:00
Marc Blank
97e4651c45 Repair brain damage
Change-Id: I1f2367476f78c5cd78d8a59e099debabceb95e3a
2012-03-08 19:48:11 -08:00
Marc Blank
c3643cf2b5 Fix search to work with IMAP
Change-Id: Ic3d9dfec0e30323e258e59630c2ca42bb1c7e98c
2012-03-08 17:23:49 -08:00
Marc Blank
26195ef64d Handle searchUri (first pass)
Change-Id: I75f7a757322e1d4f9b4eac92b9ecbb6a0cc6580b
2012-03-08 15:14:48 -08:00
Marc Blank
06a382f26f 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
2012-03-08 14:36:26 -08:00
Marc Blank
92f9de3c5c Merge "Return searchUri with accounts; return empty cursor for now" 2012-03-08 08:21:54 -08:00
Marc Blank
ef94d9285e Return searchUri with accounts; return empty cursor for now
Change-Id: I160676a492ef359007676c3aa9f56f9015b64c64
2012-03-08 08:17:52 -08:00
Brian Muramatsu
6b4cdee94f am 938ec79a: am d163332b: am d5fdf404: Merge "Fix STARTTLS handshake error in Email\'s SmtpSender class"
* commit '938ec79ac92ef9119ad75b49691b2121886d867b':
  Fix STARTTLS handshake error in Email's SmtpSender class
2012-03-07 17:22:07 -08:00
Marc Blank
420e97f0f8 Support attachment commands from UIProvider
Change-Id: Ib457808bdb424275c0abe6e1d86e3b9d33406780
2012-03-07 14:57:19 -08:00
Marc Blank
70bbe5ec3c Add columns to Attachment for UIProvider use
Change-Id: I7f85431f409dbd6a5bd6d111b18d1fc89c00b9b2
2012-03-07 13:10:23 -08:00
Andy Huang
b4a4ca99a9 Attachment SYNCED column is going away
Change-Id: I19476bc5a9a9e557e61a7347689129ce552b3ff9
2012-03-07 10:29:23 -08:00
Marc Blank
af8f8a48ee Reconcile accounts in deleteAccountPIMData
Change-Id: Ifd17ef76e13ddcfa07c84429dca7bf19e6cbcfab
2012-03-07 08:43:08 -08:00
Brian Muramatsu
d163332bc5 am d5fdf404: Merge "Fix STARTTLS handshake error in Email\'s SmtpSender class"
* commit 'd5fdf40490033bbafbd946e92094b18e931c1a76':
  Fix STARTTLS handshake error in Email's SmtpSender class
2012-03-07 02:09:18 -08:00
Mindy Pereira
71b57354c1 Listen for application/email-ls so we can distinguish between email2/gmail2.
Change-Id: I1b30738b0d8a3f6830dfc6d67b6db385771bba15
2012-03-06 08:47:52 -08:00
Mindy Pereira
6ae4b080d4 Set compose to email2 until we get rid of the email app.
Email2 supports the compose intent.

Change-Id: I739ccb95b63806ed46dfa74b721b5a43665aa1c4
2012-03-06 08:24:22 -08:00
Paul Westbrook
27282ed34a Change the authority for Email2's account cache provider
Allow the account cache cursor to have the notification uri set

Change-Id: I8b01ada0b787fe7a709ad7feacacb91acc3da826
2012-03-05 16:21:14 -08:00
Marc Blank
bc7f451442 Fix IMAP/POP notifications
* Make sure the default Inbox is always notified
* Use correct "new" count for mailbox

Change-Id: Id66c76e415589f6eb6fdad0649ae039fd45c1205
2012-03-05 10:23:38 -08:00
Marc Blank
258ab6ee84 Prevent NPE in AccountCheckSettings
Bug: 5911793
Change-Id: I2834ab6d139e734baed6790098f0405e6a4e957a
2012-03-02 12:41:01 -08:00
Marc Blank
e1a6088ee4 Don't try to refresh combined inbox
Bug: 6022440
Change-Id: I182c0da80debff5579b850c20015253864a0cf9f
2012-03-02 10:31:11 -08:00
Marc Blank
eccf7ee9a4 Hook up attachment queries; use more specific notifications
Change-Id: I01198b9ddf63e1edd9a35a81c15e0cf791702184
2012-03-02 09:16:26 -08:00
Marc Blank
ceedaa3c54 Fix settingsQueryUri
Change-Id: I519f9e52ebe6a2eeeed78913e0f2b0c01539161e
2012-03-01 13:24:58 -08:00
Marc Blank
d5187106d1 Handle account settings query in EmailProvider
Change-Id: Iae33b00c3fa17fe381c0c66d9e159a2717e0f201
2012-03-01 11:36:15 -08:00
Marc Blank
c7a10613b3 Clean up updated messages in non-syncing mailboxes
* We'll just delete the updates for that mailbox

Change-Id: I6eec384334c9b1ea42ec064a49f938c772c44489
2012-02-29 16:50:14 -08:00
Misha Nasledov
c31e2555bf Fix STARTTLS handshake error in Email's SmtpSender class
The Email.apk checks for "-STARTTLS" in the SMTP server's EHLO response
but SMTP servers may respond with STARTTLS on the last line as such:

250 STARTTLS

Or even as part of a line as such:

250-XSECURITY=NONE,STARTTLS

Checking for "-STARTTLS" in this case will break. The fix is to simply check
for "STARTTLS" instead.

See http://code.google.com/p/android/issues/detail?id=19109
And http://code.google.com/p/android/issues/detail?id=2309

Change-Id: I3a590a4398cb664f46875650550986a67f320f76
2012-02-29 03:15:10 -08:00
Paul Westbrook
108f7b639a Support the always_show_images column
Change-Id: I4817ca936cc2775cd22b878d17045e0ede0af04d
2012-02-28 16:19:37 -08:00
Marc Blank
27be3474a2 Actually put composeUri into the cursor; d'oh!
Change-Id: I1295bb7501c3481f0d5e21e7cc76c1b19ab3047d
2012-02-28 13:25:10 -08:00
Marc Blank
d9201da55b Setup composeUri for accounts in EmailProvider
* Add intent filter in manifest

Change-Id: Ifbacfcb6109d76d48dabb87eb45ea28ec4278ad8
2012-02-28 10:16:43 -08:00
Marc Blank
8c4b6e40cf Hook up settingsIntentUri in EmailProvider
Change-Id: Icc47a7dd29f6707443f5b56bdc6df86818295662
2012-02-28 09:15:53 -08:00
Marc Blank
fd077592ee Use EmailProvider to create account list
Change-Id: Iedd99ecb95066c3b7e089e3b987a0caed44b97e5
2012-02-27 13:22:45 -08:00
Marc Blank
9a5e2a798e Fix clearing of mailbox notifications
Change-Id: Ieb98a8908ec067229dd449790da55085585ef17b
2012-02-26 12:52:57 -08:00
Marc Blank
bf5caf97c5 Notify by mailbox, rather than account
* Update EmailProvider, removing two no-longer-used columns in Account and
  Mailbox

Change-Id: Ie0f10eb0ca315d73e82be968f7760a51a239ba3f
2012-02-24 14:51:59 -08:00
Marc Blank
98412cadfb Use account id instead of name for queries
Change-Id: I49f870491d2b090df345b956280dbb477436be60
2012-02-24 10:27:29 -08:00
Mindy Pereira
99dfd1edfd Merge "Remove folder sync_frequency column. UI doesn't need it." 2012-02-23 13:57:25 -08:00
Mindy Pereira
b61bd298bd Remove folder sync_frequency column. UI doesn't need it.
Change-Id: I2a696115aed048f854174a8c4dc7666165b6ae1f
2012-02-23 13:52:11 -08:00
Marc Blank
87c84a6d96 Send sync status updates from POP3/IMAP
Change-Id: Ia1bb5d1a302d6dde8b8979e03a762d6d45ee8cd3
2012-02-22 16:27:26 -08:00
Marc Blank
6b9d94bf39 Make mailbox change notifier less noisy
Change-Id: I6eb7ac4f60acf6d92f4c094a373038fef222d97a
2012-02-22 12:59:49 -08:00
Marc Blank
1dc7772d43 Support syncStatus and lastSyncResult in EmailProvider
* Also, trigger a sync on refreshUri

Change-Id: Ia8dee593decfc2101873071ad64fcc3fd1fd5f23
2012-02-22 11:50:18 -08:00
Marc Blank
7db23e6acb Fix build break; support folder query
Change-Id: Ic2a62e2d00e0fe46a1a488d665818c47243c9d8d
2012-02-21 17:30:34 -08:00
Marc Blank
9227dbbf0f Add back attachment loading callbacks for IMAP
* Remove newly unused code

Change-Id: Ifea2193deaf35734a031500c807ce9e3abd88fb1
2012-02-19 15:21:25 -08:00
Marc Blank
59e10b6b3d Support folderUri and statusUri in EmailProvider
* Implementation of status to be completed later

Change-Id: I9dc2b1144b8186341f1c032906145f3d899b2a0b
2012-02-17 16:31:23 -08:00
Marc Blank
078daa692e Hook up "load more messages" to service implementation
Change-Id: I15b102bacb4a68c3c006d1b3c1feffb7f14a8697
2012-02-17 14:23:10 -08:00
Marc Blank
7ac38af790 Re-attach mailbox sync callbacks and refresh status
Change-Id: I45de04f59f83757186f30d6ff53395a639a1d740
2012-02-17 14:05:27 -08:00
Marc Blank
0e5b4d35dd Fix build break
Change-Id: Ib9725587f32b8d8a6e64e9ee083d0b4e980b7e05
2012-02-16 13:08:11 -08:00
Marc Blank
4f813fb129 Convert POP3 to service
* Remove MessagingController and (almost all of) MailService

Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
2012-02-16 10:27:00 -08:00
Marc Blank
d57e096b2c This time for sure!
Change-Id: I98a0a8dcc37f52ac29d87379a886c9ca966e923c
2012-02-15 13:32:41 -08:00
Marc Blank
abad2efba8 Oops! Handle subfolders query.
Change-Id: I62628fb8bdb25b96f023788271508d65fd8b4cdd
2012-02-15 13:26:12 -08:00
Marc Blank
1e138516eb Handle query for subfolders from UIProvider
Change-Id: Ic448324a5a87b6679978426ec639fe4c3d8d77d7
2012-02-15 11:27:26 -08:00
Marc Blank
c0272961e1 Return only top-level email folders for uiFolders query
Change-Id: I9480f8263ded7d1eb3eaecc92564130b498a558d
2012-02-14 19:36:07 -08:00
Marc Blank
c84467afe1 Start of IMAP conversion to Service architecture
* Handle startSync and loadMore
* Use SyncManager rather than MailService for periodic sync
  and upload sync
* First of many CL's to disentangle sync from UI
* Note that the large majority of this CL is a refactoring
  of IMAP specific code out of MessagingController and into
  ImapService; MessagingController will eventually be
  removed entirely from the app, as will much of Controller

Change-Id: I13546d0694479b33cf93c25920dedc1d38227f6c
2012-02-13 11:04:56 -08:00
Marc Blank
69d952c3de Add folder list to conversation list fields in query
Change-Id: Ieea84693196796175a1bdea8ecd3dbdf4a229c66
2012-02-13 10:46:24 -08:00