Commit Graph

771 Commits

Author SHA1 Message Date
Marc Blank
03ecce7da8 Integrate further with the system SyncManager/AccountManager system
* Look for, and act on, changes to sync settings via SyncManager/AccountManager
* Look for, and act on, deletions from within AccountManager (tested)
2009-08-20 16:17:41 -07:00
Andrew Stadler
f479d0944b am bcff14ac: Create setup flow for use by Accounts manager.
Merge commit 'bcff14acf25d3a999b7448e317604e694c204f47'

* commit 'bcff14acf25d3a999b7448e317604e694c204f47':
  Create setup flow for use by Accounts manager.
2009-08-20 16:14:42 -07:00
Andrew Stadler
bcff14acf2 Create setup flow for use by Accounts manager.
* Create a new entry point for the exchange setup flow and switch
    EASAuthenticatorService to call it
* Pass "eas flow mode" down through the setup screens
* Slightly modify their behavior as we go (e.g. we skip the
    (account type" screen since we know it's EAS.)
* Add a checkbox to "sync contacts from this account" and pass that
    value into ExchangeStore when we set up the account.
* Change the flow exit to pop back to the account manager instead of
    taking the user to the new inbox.

This CL satisfies cases 1 & 2 of bug # 1974752.
2009-08-20 15:51:36 -07:00
Marc Blank
fc4e9ed3ba am a8aedb2f: Add "contacts" option to EasAuthenticator, which determines whether Contacts should be synced
Merge commit 'a8aedb2f374ef88a433857d78e71c651425bcce0'

* commit 'a8aedb2f374ef88a433857d78e71c651425bcce0':
  Add "contacts" option to EasAuthenticator, which determines whether Contacts should be synced
2009-08-20 13:57:13 -07:00
Marc Blank
a8aedb2f37 Add "contacts" option to EasAuthenticator, which determines whether Contacts should be synced
* The state of Contacts syncing can be changed from various places in the UI
* In a future CL, SyncManager will respect this setting
2009-08-20 13:39:46 -07:00
Marc Blank
fb4c972479 am 41f367ed: Re-enable Contacts sync (had been turned off)
Merge commit '41f367eddf2f1de32443e8c7eb55c0f50e2e09de'

* commit '41f367eddf2f1de32443e8c7eb55c0f50e2e09de':
  Re-enable Contacts sync (had been turned off)
2009-08-20 13:25:00 -07:00
Marc Blank
41f367eddf Re-enable Contacts sync (had been turned off) 2009-08-20 13:21:48 -07:00
Marc Blank
b3fcaab7a4 am 9d174399: Merge change 22098 into eclair
Merge commit '9d174399ef1e6192a45b2892f7d53156088501b2'

* commit '9d174399ef1e6192a45b2892f7d53156088501b2':
  Fix bugs re: sending via EAS
2009-08-20 13:21:42 -07:00
Android (Google) Code Review
9d174399ef Merge change 22098 into eclair
* changes:
  Fix bugs re: sending via EAS
2009-08-20 13:19:15 -07:00
Marc Blank
9178dcc9e9 Fix bugs re: sending via EAS
* Make sure each call to sendMessage returns a proper result code
* Exit outbox sync on irrecoverable errors
2009-08-20 12:05:57 -07:00
Andrew Stadler
479b63417a am 4b41bae2: Enable IMAP/POP sending and EAS resend
Merge commit '4b41bae270ea4c49ec8403084db43ee9b37cdda4'

* commit '4b41bae270ea4c49ec8403084db43ee9b37cdda4':
  Enable IMAP/POP sending and EAS resend
2009-08-20 11:16:54 -07:00
Andrew Stadler
4b41bae270 Enable IMAP/POP sending and EAS resend
* Finish IMAP/POP sections of Controller.sendMessage
* Rewrite MessagingController.sendPendingMessagesSynchronous
* Add deleteAllAttachmentFiles to AttachmentProvider, and unit test
* Rework sendMessage callbacks and integrate into MessageList UI
* Send pending from UI

TODO:
* Find other places from which to call deleteAllAttachmentFiles
2009-08-20 11:09:39 -07:00
Marc Blank
3019b22c1b am c0c9c333: Add URI\'s that atomically add a value to a particular field (Account or Mailbox)
Merge commit 'c0c9c33322deecace00a32766e0a1b355aad4b31'

* commit 'c0c9c33322deecace00a32766e0a1b355aad4b31':
  Add URI's that atomically add a value to a particular field (Account or Mailbox)
2009-08-20 10:32:18 -07:00
Marc Blank
c0c9c33322 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
2009-08-20 10:27:10 -07:00
Marc Blank
a9cd5bb031 am d366346a: Implement sendMessageStatus callback in EAS
Merge commit 'd366346a640c93d70b78ddadfbc3a3b74944359b'

* commit 'd366346a640c93d70b78ddadfbc3a3b74944359b':
  Implement sendMessageStatus callback in EAS
2009-08-20 09:14:53 -07:00
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
Marc Blank
868806a86b am 4399ead9: Merge change 22048 into eclair
Merge commit '4399ead9f4b240ae67ffd356e0c1c3fea9da4149'

* commit '4399ead9f4b240ae67ffd356e0c1c3fea9da4149':
  Add checks to avoid NPE's while stopping services
2009-08-20 09:07:34 -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
1958d53b74 am 44144d03: MessageCompose: initial save attachments and load them back.
Merge commit '44144d0301213536b02f2080237b63d8271b2d0b'

* commit '44144d0301213536b02f2080237b63d8271b2d0b':
  MessageCompose: initial save attachments and load them back.
2009-08-20 06:59:32 -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
a58969f01b am 03be523b: Don\'t run SyncManager unless there are EAS accounts
Merge commit '03be523b16eb4cc5698ef130ddcd057912b81ac5'

* commit '03be523b16eb4cc5698ef130ddcd057912b81ac5':
  Don't run SyncManager unless there are EAS accounts
2009-08-19 20:21:25 -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
f074c1fa0e am e346193f: Add status item to bottom of message list.
Merge commit 'e346193f06c6c3ffd8412ce151109df8b7f45999'

* commit 'e346193f06c6c3ffd8412ce151109df8b7f45999':
  Add status item to bottom of message list.
2009-08-19 20:10:05 -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
cc5ee32cea am 50d93566: SyncManager now clears error state on Outbox messages before startSync
Merge commit '50d935667041cd88278ff8999bf3904fd1efa598'

* commit '50d935667041cd88278ff8999bf3904fd1efa598':
  SyncManager now clears error state on Outbox messages before startSync
2009-08-19 16:51:23 -07:00
Marc Blank
ecf1841127 am f4d7ddb0: Fix message sending from EAS (the service wasn\'t properly set up)
Merge commit 'f4d7ddb0c2aba62d3a8c0d4ddbc5d15a4d15e3a3'

* commit 'f4d7ddb0c2aba62d3a8c0d4ddbc5d15a4d15e3a3':
  Fix message sending from EAS (the service wasn't properly set up)
2009-08-19 16:51:22 -07:00
Andrew Stadler
79cfd8d44c am 0d107836: Finish loading large IMAP/POP messages
Merge commit '0d1078363581db8caded06cf94e729e88a88761a'

* commit '0d1078363581db8caded06cf94e729e88a88761a':
  Finish loading large IMAP/POP messages
2009-08-19 16:51:15 -07:00
Marc Blank
5562226a72 am 6b2d23ad: Recognize EAS 12.0 attachments; fixes bug #2065022
Merge commit '6b2d23ad800b9d4ee18d04a822e27892b79750d0'

* commit '6b2d23ad800b9d4ee18d04a822e27892b79750d0':
  Recognize EAS 12.0 attachments; fixes bug #2065022
2009-08-19 16:51:13 -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
Marc Blank
b8630740f7 am fc92a6c9: Merge change 21777 into eclair
Merge commit 'fc92a6c9d83140df5fc08ac6f157f61e7dbcd018'

* commit 'fc92a6c9d83140df5fc08ac6f157f61e7dbcd018':
  Make sure Parser always reads UTF-8 strings
2009-08-19 12:05:09 -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
5ba6d87037 am fb67ec95: Handle null cursors when looking up owner info.
Merge commit 'fb67ec958c44fcd46b524cc85d5f8ad3aeb4d2fd'

* commit 'fb67ec958c44fcd46b524cc85d5f8ad3aeb4d2fd':
  Handle null cursors when looking up owner info.
2009-08-19 10:49:45 -07:00
Jeff Hamilton
fb67ec958c Handle null cursors when looking up owner info. 2009-08-19 12:26:44 -05:00
Andrew Stadler
efaff35a4e am cbe513d4: Integrate EAS push notifications with the main notifications.
Merge commit 'cbe513d4305893edde60aca645b290f31f7643da'

* commit 'cbe513d4305893edde60aca645b290f31f7643da':
  Integrate EAS push notifications with the main notifications.
2009-08-18 19:56:18 -07: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
Marc Blank
46a8be920d am 2cf87e6c: Merge change 21751 into eclair
Merge commit '2cf87e6c3cf64b7bb5dbaa9d656c784707a038d2'

* commit '2cf87e6c3cf64b7bb5dbaa9d656c784707a038d2':
  Make sure we log exceptions in FileLogger
2009-08-18 14:11:10 -07:00
Marc Blank
1ff4c5bc16 am a867ebba: Have body database attach just once, and never detach
Merge commit 'a867ebba6233becf2061c80e1c53d7d395a6cffc'

* commit 'a867ebba6233becf2061c80e1c53d7d395a6cffc':
  Have body database attach just once, and never detach
2009-08-18 14:11:08 -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
Andrew Stadler
af3c624f0d am 5ecdc1b6: Merge change 21756 into eclair
Merge commit '5ecdc1b635395b9506e3fca1a9d34506fa9c37f3'

* commit '5ecdc1b635395b9506e3fca1a9d34506fa9c37f3':
  Add "num new messages" field to Account
2009-08-18 13:48:22 -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
d43b8547a9 am 4c19543c: make syncadapter set whether the account is syncable
Merge commit '4c19543c8c79adbdf9532f85c1d28610e87e5c28'

* commit '4c19543c8c79adbdf9532f85c1d28610e87e5c28':
  make syncadapter set whether the account is syncable
2009-08-18 12:09:52 -07:00
Eric Fischer
082f972973 am 2bd63025: (-s ours) am 80e7c986: (-s ours) Import revised translations. DO NOT MERGE
Merge commit '2bd6302554fa4650e883df228f0a625883939b72'

* commit '2bd6302554fa4650e883df228f0a625883939b72':
  Import revised translations.  DO NOT MERGE
2009-08-18 12:07:40 -07:00