Commit Graph

6974 Commits

Author SHA1 Message Date
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
Andrew Stadler
c640cbbaf3 Update SMTP to send from provider messages, and attachments
* Change Sender definition (remove old Message from API) and update
    any existing calls through that API
* Rewrite SMTPSender to use provider messages
* Add attachments to RFC822Output
* Minor bugfixes in RFC822Output
* Unit tests
2009-08-13 09:31:57 -07:00
Marc Blank
b37b1b4bfe Stream rfc822 messages to a temporary file, and send using an InputStreamEntity
* Removes the need to store the entire outgoing message in memory
2009-08-12 15:35:44 -07:00
Marc Blank
8db0babf72 Separate syncInterval constants for Account and Mailbox to remove confusion 2009-08-12 09:24:12 -07:00
Android (Google) Code Review
02dd41b319 Merge change 20819
* changes:
  Use new Rfc822Output class for sending mail; fix bug in Rfc822Output
2009-08-12 09:16:45 -07:00
Android (Google) Code Review
20583edef6 Merge change 20888
* changes:
  Fixes re: CL20440, per stadler's comments
2009-08-12 09:15:52 -07:00
Mihai Preda
fb7974f5bf Fix SQL for DELETE_ORPHAN_BODIES and DELETE_BODY.
and add unit tests.
2009-08-12 12:57:09 +02:00
Android (Google) Code Review
5c3f1f8cb7 Merge change 20718
* changes:
  Renew Unread Counts and accounts on Resume See bug 2041204
2009-08-12 01:05:45 -07:00
Android (Google) Code Review
96a0b9a9a3 Merge change 20698
* changes:
  Show folder icon left of mailbox list See bug 2028384
2009-08-12 00:12:36 -07:00
satok
2374fcb1a0 Renew Unread Counts and accounts on Resume See bug 2041204 2009-08-12 16:06:19 +09:00
satok
5669d4542d Show the title of MessageList See bug 2029282 2009-08-12 14:55:48 +09:00
Marc Blank
33bc0bd4a5 Fixes re: CL20440, per stadler's comments 2009-08-11 20:19:28 -07:00
Marc Blank
4f195e716c Use new Rfc822Output class for sending mail; fix bug in Rfc822Output
* Change EasOutboxService to use the new Rfc822Output class for sending
* Fix small bug in Rfc822Output (was writing both in Base64 and plain text)
* Fix bug in SyncManager related to auto-starting EAS outbox
2009-08-11 20:07:42 -07:00
Marc Blank
466054d066 Minor changes to ping variables &c 2009-08-11 15:19:50 -07:00
Android (Google) Code Review
22cd410605 Merge change 20784
* changes:
  Use 5 minute ping time when connected via mobile (prevent NAT timeout)
2009-08-11 15:12:27 -07:00
Andrew Stadler
3f1ac4da94 Add code to handle IMAP/POP attachments.
IMAP messages up to about 25k will be downloaded properly.

* Move Store->Provider message rewrite code to a separate utility.
* Add code to descend a Store message and write provider attachments.
* Unit test basic IMAP attachment handler

TODO:
* handle large IMAP messages.
* unit test for POP
* unit test for large IMAP messages
2009-08-11 15:08:14 -07:00
Android (Google) Code Review
a5abab243b Merge change 20793
* changes:
  An RFC822 streamer for sending provider messages.
2009-08-11 15:05:38 -07:00
Andrew Stadler
a9a0e57436 An RFC822 streamer for sending provider messages.
* Message headers with proper encoding
* Should handle all non-US encodings properly
* Sends body text only (no HTML planned)

This is implemented but not fully tested - I'm submitting now so Marc
can evaluate & test in EAS environment.

TODO: Unit tests
TODO: Attachments
2009-08-11 14:27:36 -07:00
Marc Blank
8d8f6918c7 Use 5 minute ping time when connected via mobile (prevent NAT timeout) 2009-08-11 13:44:35 -07:00
Marc Blank
84cb2bcd59 Change PIM fallback sync to 30 mins; try ping again if changes are found 2009-08-11 09:52:27 -07:00
Marc Blank
72c62e4d33 Make verbose logging less verbose; add exception message to logging 2009-08-11 09:15:12 -07:00
satok
5c6d8ed70d Show folder icon left of mailbox list See bug 2028384 2009-08-11 13:08:48 +09:00
Marc Blank
bd4d30f522 Push fallback per mailbox, rather than for entire account
* Also cleanup code, add comments, remove unused methods
2009-08-10 17:05:31 -07:00
Marc Blank
9d3f4abd97 Delete rows that are unused when changes are synced down 2009-08-10 11:11:21 -07:00
Marc Blank
cc402e42ab Clear error states on network reconnect; add temporary notifications; see details
* When we get a network connect broadcast, clear error states so sync can
  restart for any boxes in an error state
* Add temporary notification code for the testers
* Add file-based debug logger
* Add Exchange logging to debug screen (adds additional exchange debugging)
* Add Exchange sd card logging to debug screen (logs to sd card)
* Change setLogging service API to send an int rather than a boolean
* Make sure push mailboxes are set up again when account changes to push
* Make sure push mailboxes are set up again when account mailbox starts
* (Fixed contacts sync bug found during debugging these changes)
2009-08-09 21:20:47 -07:00
Marc Blank
71132ff6b7 Make small changes as recommended by stadler (for CL9459) 2009-08-08 21:23:28 -07:00
Marc Blank
1795efacc5 Use wake locks in running syncs; clean up associated code 2009-08-08 18:59:33 -07:00
Marc Blank
1e7829fb65 Switch from HttpURLConnection to HttpClient 2009-08-08 13:33:41 -07:00
Marc Blank
fc579d4477 Refactor, cleanup, and fix sync bugs
* Found/fixed major sync bug re: first-time sync (emulator only)
* Moved deviceId code to SyncManager
* Added code to handle some edge cases related to sync errors
2009-08-07 22:29:15 -07:00
Marc Blank
b9d6ba11c7 Fix various problems related to synchronization, reload folder list, etc.
* The reloadFolderList service call mustn't reset the account mailbox if the foler
  list has never synced
* Be careful to not commit anything after a mailbox has been stopped
* Be careful to synchronize before checking the stopped state of a mailbox
2009-08-07 12:17:23 -07:00
Marc Blank
9b598924ec 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)
2009-08-06 20:51:54 -07:00
Android (Google) Code Review
17d86bb529 Merge change 20277
* changes:
  Initial support for Exchange account creation via AccountManager
2009-08-06 12:51:30 -07:00
Marc Blank
06275c4207 Initial support for Exchange account creation via AccountManager
* Export AccountSetupBasics so that it can be launched by AccountManager
* Update EasAuthenticatorService to return an Intent for AccountSetupBasics
* UI needs to be updated to skip account type screen, change welcome, etc.
2009-08-06 12:50:34 -07:00
Mihai Preda
a5af05f1a9 MessageCompose: load body.
- load body for edit-draft, replay, forward.
- fix debug secret code for no-keyboard devices.
- fix CR-LF BUG 1911254.
- fix menu invoke compose from folder with mailboxId < 0.
2009-08-06 11:40:42 +02:00
Android (Google) Code Review
47f1b7a32b Merge change 20084
* changes:
  Change context menu by mailbox type See bug 1399964 for details.
2009-08-05 23:24:57 -07:00
satok
375f968aa5 Change context menu by mailbox type See bug 1399964 for details. 2009-08-06 13:52:23 +09:00
Android (Google) Code Review
6d130d6d6d Merge change 20078
* changes:
  Separate out name and address from EAS contact email fields
2009-08-05 19:57:27 -07:00
Android (Google) Code Review
d65901784a Merge change 20206
* changes:
  Fix EmailProvider so that deletions can occur during batch operations
2009-08-05 19:54:41 -07:00
Marc Blank
cba3a48f97 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)
2009-08-05 19:53:20 -07:00
Android (Google) Code Review
b3ceddb1b1 Merge change 20088
* changes:
  Don't show mailboxes with flagVisible=0 See bug 1938449 for details.
2009-08-05 19:22:17 -07:00
satok
bbcb150dee Don't show mailboxes with flagVisible=0 See bug 1938449 for details. 2009-08-06 11:21:26 +09:00
Marc Blank
25c46808c6 Check existence of mWakeLock before releasing it
* Also, unregister connectivity receiver in onDestroy method
2009-08-05 13:03:06 -07:00
Marc Blank
228d422951 Separate out name and address from EAS contact email fields
* Use newly created sync adapter column for name portion
* Fix typo in note upload
2009-08-04 22:51:07 -07:00
Marc Blank
5f25162475 Fix AndroidManifest.xml to have use the renamed EmailSyncAlarmReceiver class 2009-08-04 22:33:32 -07:00
Android (Google) Code Review
86445dfbc9 Merge change 9630
* changes:
  Add support for note and category upload for Contacts
2009-08-04 13:40:11 -07:00
Marc Blank
b4d87dfdd0 Add support for note and category upload for Contacts
* Also fixed a few random bugs found while debugging
2009-08-04 11:06:58 -07:00
Jean-Baptiste Queru
d82ceb192b merge from open-source master 2009-08-04 09:00:28 -07:00