Commit Graph

570 Commits

Author SHA1 Message Date
Marc Blank
d366346a64 Implement sendMessageStatus callback in EAS
* Change API for callback to include message subject (when msg is isn't valid)
* Update users of callback to add the new argument
* Use API in EasOutboxService to send status messages back to the UI

Still TODO:  Add relevant error codes for sending problems that are not related
to connection or login issues
2009-08-20 09:08:12 -07:00
Android (Google) Code Review
4399ead9f4 Merge change 22048 into eclair
* changes:
  Add checks to avoid NPE's while stopping services
2009-08-20 09:05:31 -07:00
Mihai Preda
44144d0301 MessageCompose: initial save attachments and load them back.
- load attachments for EditDraft.
- save attachments when save message.
- unit test for restoreAccountsWithMessageId()
2009-08-20 15:52:50 +02:00
Marc Blank
d696c6f2df Add checks to avoid NPE's while stopping services 2009-08-19 20:31:18 -07:00
Marc Blank
03be523b16 Don't run SyncManager unless there are EAS accounts
* Check that there is at least one EAS account before starting SyncManager thread
* Have EasAuthenticatorService ensure that SyncManager has started
2009-08-19 20:16:01 -07:00
Andrew Stadler
e346193f06 Add status item to bottom of message list.
* Add code to (optionally) add footer, update text & progress dynamically
* Add hook to dispatch various actions (refresh, load more, etc.)
* Some cleanup of the launch helpers for MessageList

TODO:
* controller handler for the "send messages" case (subsequent CL)
* controller handler for the "more messages" case (subsequent CL)
* reporting of send results etc. into the status line
2009-08-19 20:05:10 -07:00
Marc Blank
50d9356670 SyncManager now clears error state on Outbox messages before startSync 2009-08-19 16:09:35 -07:00
Marc Blank
f4d7ddb0c2 Fix message sending from EAS (the service wasn't properly set up)
* Cleanup of EasSyncService
2009-08-19 16:09:26 -07:00
Andrew Stadler
0d10783635 Finish loading large IMAP/POP messages
* Handle messages >25k
* When structure is available (e.g. IMAP) pull in the entire body
    and the list of attachments
* When structure is not available (e.g. POP) pull in a large chunk of
    the body to try and capture the message body at least.
* Implement loadAttachment for IMAP/POP to demand download large items
* Tested with IMAP & POP messages

INCOMPLETE (file bugs):
* implement logic for the old loadMessageForView calls that comes from
    MessageView (when you open a message that's partially-loaded)
* Resolve handling of mimetype when attachment info is read (currently
    we're assuming base64 in a couple of places)
* delete account => delete attachments
* delete attachment => delete file
* create account => clear existing attachments for acct id
2009-08-19 16:09:13 -07:00
Marc Blank
6b2d23ad80 Recognize EAS 12.0 attachments; fixes bug #2065022 2009-08-19 13:15:19 -07:00
Android (Google) Code Review
fc92a6c9d8 Merge change 21777 into eclair
* changes:
  Make sure Parser always reads UTF-8 strings
2009-08-19 12:02:01 -07:00
Jeff Hamilton
fb67ec958c Handle null cursors when looking up owner info. 2009-08-19 12:26:44 -05:00
Andrew Stadler
cbe513d430 Integrate EAS push notifications with the main notifications.
* Use the new account-based field for number of new messages
* Add support for async notifications in MailService
* Change EAS to call MailService to notify user
2009-08-18 19:50:18 -07:00
Marc Blank
87439307ea Make sure Parser always reads UTF-8 strings 2009-08-18 14:19:49 -07:00
Android (Google) Code Review
2cf87e6c3c Merge change 21751 into eclair
* changes:
  Make sure we log exceptions in FileLogger
2009-08-18 14:07:15 -07:00
Marc Blank
a867ebba62 Have body database attach just once, and never detach
* Much cleaner implementation
* Prevent errors when various threads collide for attach
2009-08-18 14:05:40 -07:00
Marc Blank
f2113c1dcf Make sure we log exceptions in FileLogger 2009-08-18 13:53:38 -07:00
Android (Google) Code Review
5ecdc1b635 Merge change 21756 into eclair
* changes:
  Add "num new messages" field to Account
2009-08-18 13:44:53 -07:00
Andrew Stadler
4a8c70c09b 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.
2009-08-18 12:14:15 -07:00
Fred Quintana
4c19543c8c make syncadapter set whether the account is syncable 2009-08-18 11:06:59 -07:00
Eric Fischer
2bd6302554 am 80e7c986: (-s ours) Import revised translations. DO NOT MERGE
Merge commit '80e7c986a2aae8666b96a8d2642608f8ea428732' into eclair

* commit '80e7c986a2aae8666b96a8d2642608f8ea428732':
  Import revised translations.  DO NOT MERGE
2009-08-18 11:00:40 -07:00
Andrew Stadler
46d7d7f1b6 Rework service to use provider accounts and controller.
* Rewrite service logic to select and update one account at a time
* Add checkmail API to Controller, and much rework/cleanup of existing
   callback API's
* Rewrite notification posting code
* Rewire connection to MessageList to be opened by notifications, to
   cancel notifications, and to reset the "new message" count whenever
   an account is viewed.
* Boilerplate cleanup to a lot of activities because they share the
   callbacks that have had minor changes.
* Remove old push controls from Store API

In progress:
* To provide notification mechanism for EAS pushed mail
2009-08-18 00:54:34 -07:00
Android (Google) Code Review
d1fd72a44e Merge change 21583 into eclair
* changes:
  Add support for syncing the favorite flag to server (EAS 12.0 and up)
2009-08-17 22:50:22 -07:00
Marc Blank
cc8d74bd03 Add support for syncing the favorite flag to server (EAS 12.0 and up)
* Add test for date formatting
2009-08-17 22:48:12 -07:00
satok
f827277419 Fix to show icon trash. 2009-08-18 11:20:59 +09:00
Android (Google) Code Review
3479356779 Merge change 21597 into eclair
* changes:
  Remove tabs; fix formatting
2009-08-17 17:45:36 -07:00
Marc Blank
b486677f91 Have all mailboxes fall back reversibly on ping loop errors 2009-08-17 17:39:05 -07:00
Marc Blank
08e69d7023 Remove tabs; fix formatting
* Responding to stadler's comments for CL20566
2009-08-17 14:57:11 -07:00
Eric Fischer
80e7c986a2 Import revised translations. DO NOT MERGE 2009-08-17 13:14:53 -07:00
Android (Google) Code Review
576fff2a45 Merge change 21528 into eclair
* changes:
  Remove unnecessary @Override from static method
2009-08-17 11:19:45 -07:00
Andrew Stadler
d8cc57c83d Remove unnecessary @Override from static method
You can't really @Override a static method, since there is no object
dispatch.  The build system allows it, but Eclipse complains.
2009-08-17 11:18:36 -07:00
Marc Blank
8d971dbc9c Remove inappropriate references to INSTANCE in SyncManager 2009-08-17 11:09:25 -07:00
Android (Google) Code Review
30c4927d27 Merge change 21505 into eclair
* changes:
  Remove unintentional catch of Exception in SyncManager
2009-08-17 09:49:11 -07:00
Marc Blank
0b89d8f5af Remove unintentional catch of Exception in SyncManager 2009-08-17 09:35:12 -07:00
Mihai Preda
a4bbb7d923 email.mail.Sender: fix order of (context, uri) arguments in reflection invocation of SmtpSender.newInstance().
Account creation was not possible because of this.
2009-08-17 15:39:55 +02:00
Mihai Preda
9627d014e1 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.
2009-08-17 13:43:56 +02:00
Android (Google) Code Review
a39992fd7d Merge change 21479 into eclair
* changes:
  Use custom icons for special mailboxes
2009-08-17 03:58:23 -07:00
satok
55c390fe93 Use custom icons for special mailboxes
BUG: 2051100

TODO: Add trash icons
2009-08-17 19:56:25 +09:00
satok
e829daa29c Set unread count of summery indox and delete unread and draft summery inboxes
Bug: 2037400
* Delete unread summery inbox
2009-08-17 19:39:25 +09:00
Android (Google) Code Review
724ec1b7da Merge change 21469 into eclair
* changes:
  do not merge: Merged CL 21093 from goog/master to goog/eclair
2009-08-16 23:10:07 -07:00
satok
73fa3562f2 do not merge: Merged CL 21093 from goog/master to goog/eclair 2009-08-17 15:08:38 +09:00
Marc Blank
c8c68fa764 Use more appropriate connectivity wait to SyncManager 2009-08-16 18:45:38 -07:00
Fred Quintana
d0254da4e0 do not merge: cherrypicked 7bb05334b3 from master branch 2009-08-16 17:15:43 -07:00
Android (Google) Code Review
10e8ecef2f Merge change 21281 into eclair
* changes:
  Implement adaptive ping timeout; release wake lock waiting for connectivity
2009-08-16 16:41:26 -07:00
Marc Blank
6b52af214c Implement adaptive ping timeout; release wake lock waiting for connectivity
* Remove unused/duplicated classes (e.g. Base64, WbxmlSerializer, etc.)
* Code cleanup in AbstractSyncService, EasSyncService
* Remove last references to HttpURLConnection (using HttpClient now)
2009-08-16 16:40:42 -07:00
Jim Miller
cfa8731e51 Update icon assets for Email 2009-08-14 15:58:53 -07:00
Android (Google) Code Review
b35defc76c Merge change 21216 into eclair
* changes:
  Fix EAS debug switches and clean up debug prefs code.
2009-08-13 17:47:33 -07:00
Andrew Stadler
76a211e0d9 Fix EAS debug switches and clean up debug prefs code. 2009-08-13 17:43:25 -07:00
Marc Blank
1ba0fd37a1 Cleanup; delete unused files, change log statements
* Two files were unused and therefore deleted
* userLog was changed to avoid using string concatentation until the logging
  decision is made
2009-08-13 11:30:39 -07:00
Android (Google) Code Review
b3df387094 Merge change 20621
* changes:
  Delete rows that are unused when changes are synced down
2009-08-13 09:42:27 -07:00