Commit Graph

2249 Commits

Author SHA1 Message Date
Makoto Onuki
20f09c16b5 Set proguard flags
Without it, email won't work properly and many of tests will fail.

Bug 2482363
2010-03-02 14:03:08 -08:00
Marc Blank
4577f71f76 Refine meeting invitation emails; include VTIMEZONE
* VTIMEZONE blocks must be sent in our ics files for meeting
  invitations that are recurring, as the originator's time zone
  is critical in making attendee's calendars accurate
* Created a utility to convert TimeZone to VTIMEZONE data; the
  utility successfully generates data (including recurrence rules)
  for the entire tzinfo database (the source of TimeZone).
* Updated our ics files to include VTIMEZONE when appropriate and
  send DTSTART/DTEND in local time in that case
* Wrote some unit tests, but more are needed

Change-Id: Iccbdd00cd3b2be2da058b344ebacd17ed6fb0e3d
2010-03-02 11:38:01 -08:00
Mihai Preda
777dbe5999 MessageView: use WebView setBlockNetworkLoads().
Instead of setBlockNetworkImage, for security reasons.
Bug 2440315.
2010-03-02 15:13:18 +01:00
Marc Blank
0ed64fbb3d Fix #2450322 (ANR's in email)
* My Calendar observer registration code was storing the wrong id
  in the hash map.  Because of this, the code could be called again
  and again, generating lots of extraneous queries and generally
  creating a lot of havoc, including ANR's

Bug: 2450322
Change-Id: I03db8156ee99a0c7243a9188558dffc6a843a65a
2010-03-01 20:50:05 -08:00
Marc Blank
29c38d2c84 Send cancellation email when user-created event is deleted
Bug: 2465496
Change-Id: I49bf9951e816a4500b7622cbca84fb75edfdb76c
2010-03-01 18:58:47 -08:00
Marc Blank
ec2f181b2c Fix build break (Calendar field changed name)
Change-Id: I9532c459f3cf624fa88269370fa36d191481e500
2010-03-01 16:56:40 -08:00
Makoto Onuki
726a9fcef3 Ignore FETCH responses that don't have UID.
We've observed that the secure.emailsrvr.com email server returns an excess
FETCH response for a UID FETCH command.  Excess responses don't have the
UID field, even though we request, which led the response parser to crash.

This patch fixes it by making the parser ignore response lines that don't
have UID.

Bug: 2441065
2010-03-01 16:00:05 -08:00
Makoto Onuki
642219502c Merge "Launch Calendar app when notification is touched." 2010-03-01 11:09:59 -08:00
Makoto Onuki
49491da570 Launch Calendar app when notification is touched.
Launch Calendar app when the "Exchange calendar added" notification is touched.

Bug 2428718
2010-03-01 11:06:42 -08:00
Marc Blank
361c2ed0eb Merge "Stop calendar/contacts sync in progress when sync setting is turned off" 2010-03-01 11:06:21 -08:00
Marc Blank
f8b45d934b Stop calendar/contacts sync in progress when sync setting is turned off
* Syncs in progress weren't checking the getSyncAutomatically setting in
  the account; therefore, a long sync would continue running even though the
  user unchecked the "Sync Calendar/Contacts" box in the settings
* Make the adapters check the flag each time through its sync loop (which
  is currently 5 items); this should cause in-progress syncs to stop within
  a few seconds

Bug: 2185319
Change-Id: Ie181f6de4219ecf27fff58ed59a277ae285622c5
2010-03-01 11:00:20 -08:00
Makoto Onuki
82ad035422 Merge "Remove TODO, now that SYNC_OBSERVER_TYPE_SETTINGS is in SDK" 2010-03-01 09:43:51 -08:00
Marc Blank
3e69a168b3 Fix meeting invitation email parsing error
Change-Id: Ieaf786f6e466ee57404c6e32ab11c31e35ccc340
2010-02-28 18:52:21 -08:00
Marc Blank
63a411e9fa Merge "Fix #2474554 (After meeting policy req's, no sync)" 2010-02-28 11:13:40 -08:00
Marc Blank
0d0f094de8 Fix #2474554 (After meeting policy req's, no sync)
* We weren't retrying the initial account sync after policies are
  successfully enabled.  This results in failure to sync, as we
  go right into a ping loop.
* Retry account sync after provisioning is first successful

Bug: 2474554
Change-Id: I20165a5941626b690710f82088d8d861679084b2
2010-02-28 11:06:21 -08:00
Dianne Hackborn
6d0016229a Move DeviceAdmin APIs to android.app.admin. 2010-02-26 23:31:37 -08:00
Eric Fischer
87c305d98c Import new translations. 2010-02-26 17:30:09 -08:00
Makoto Onuki
97c06c9131 Remove TODO, now that SYNC_OBSERVER_TYPE_SETTINGS is in SDK 2010-02-26 14:00:26 -08:00
Makoto Onuki
c18f8f615f Enable calendar sync for Exchange accounts when upgrading.
On the first boot after upgrade from Eclair, enable calendar sync for all the
existing Exchange accounts, if any, and show notification.

Note on this version, nothing happens when you click on the "Calendar added"
notification.  We're waiting for an API (action or something) to launch
calendar.

Bug 2428718
2010-02-26 13:28:59 -08:00
Mihai Preda
0574a37b4e Merge "MessageView: EAS calendar meeting invite answer buttons." 2010-02-26 12:34:21 -08:00
Mihai Preda
794f29176d MessageView: EAS calendar meeting invite answer buttons. 2010-02-26 21:12:24 +01:00
Marc Blank
01c91c307e Merge "Fix # 2467153 (Handle change in attendee status from Calendar UI)" 2010-02-26 11:20:01 -08:00
Marc Blank
4c6683f152 Fix # 2467153 (Handle change in attendee status from Calendar UI)
* Fill in this missing piece of meeting related functionality.
* We keep track of the last synced attendee status in the newly
  created syncAdapterData event column
* When this changes, we (in addition to syncing up the change)
  send an email to the organizer (unless we're the organizer, of
  course)

Bug: 2467153
Change-Id: I6332fb6d0839e33d4c54bd4358ee0f154bff6612
2010-02-26 09:16:47 -08:00
Andy Stadler
09eddd71ba Merge "Send CAPABILITY to all IMAP servers" 2010-02-26 09:12:02 -08:00
Andrew Stadler
cb95fbe135 Send CAPABILITY to all IMAP servers
* Send CAPABILITY to all servers, not just when we check TLS
* Feed capabilities into IMAP ID generation
* Unit tests updated

Bug: 2332183
2010-02-25 22:48:11 -08:00
Eric Fischer
ed4d09a614 Merge "Remove xliff tags that kept the word "deleted" from being translated." 2010-02-25 15:35:49 -08:00
Eric Fischer
ab02fcb3d3 Remove xliff tags that kept the word "deleted" from being translated.
Bug 2463678
2010-02-25 14:20:31 -08:00
Marc Blank
1270218f32 Merge "Fix some nasty bugs w/ Exchange calendar upsync" 2010-02-25 11:59:39 -08:00
Marc Blank
481ad6a3c5 Fix some nasty bugs w/ Exchange calendar upsync
* In #2469254, uploaded new events were rejected because the time zone was
  sent after dates; this doesn't matter to Exchange 2007, but it apparently
  does to Exchange 2003
* Also, I noticed that upsync was upsyncing all new events, regardless of
  whether the event belonged to the Calendar being synced!  So this is
  fixed as well.

Bug: 2469254
Change-Id: I651d591cf26e00b414f6da19897fddcdb840c97c
2010-02-25 11:59:04 -08:00
Dianne Hackborn
4c868ce21f Update to reflect android-common no longer in framework. 2010-02-25 10:57:59 -08:00
Makoto Onuki
5bdff23a56 Merge "Refactored out Account related methods into a new base class." 2010-02-25 09:26:49 -08:00
Marc Blank
d4dc57972d Fix #2469569 (Broken EAS calendar downsync)
* Category parsing switch statement was missing a break;

Bug: 2469569
Change-Id: If815300a2ef3824f837f5fa41f55b9421cac8d9b
2010-02-24 18:54:35 -08:00
Makoto Onuki
5570bc1570 Refactored out Account related methods into a new base class.
These will be useful for other tests too, and I'm planning to use some.
2010-02-24 17:34:50 -08:00
Marc Blank
cdf9dbfa28 Add logging for persistent wakelock behavior
* Temporarily add email logging for wakelock hold requests

Change-Id: I0233248c34138b3af63abe75e97171da3f4f0031
2010-02-24 15:56:43 -08:00
Marc Blank
89be77eaea Send replies to exchange meeting requests
* When the user selects accept/decline/tentative in MessageView, we now send
  an email to the organizer, with an iCalendar attachment indicating the reply
* Added a unit test for the reply case, but more tests to be added to handle
  other circumstances

Change-Id: Iff799d88a92b6546735bf4965b22febf3a82b56f
2010-02-24 15:13:57 -08:00
Marc Blank
438dfe64ec Fix visibility of meeting invite controls
* Was checking for any meeting related email
* Changed to look specifically for incoming meeting invites
* Bug noticed during debugging

Change-Id: I8f43d7a506939dbfc0504f96b249e5c17107bf47
2010-02-23 14:44:43 -08:00
Marc Blank
d12bb138b0 Merge "Fix bugs in SimpleIcsWriter" 2010-02-23 14:26:41 -08:00
Marc Blank
1f4b1b3bd1 Fix bugs in SimpleIcsWriter
* Guilty of failing to run the unit tests
* Fix the (obvious) issues

Change-Id: If12e02facce768ca2d410320bea68a2ca2c116c6
2010-02-23 14:25:18 -08:00
Makoto Onuki
ec88f04dee Merge "Patch for issue 2363606: Make EAS sync window default 3 days." 2010-02-23 12:29:42 -08:00
Makoto Onuki
353bdbc15a Merge "Remove LOCAL_SDK_VERSION. We haven't finished unbundling." 2010-02-23 12:28:26 -08:00
Makoto Onuki
6854a4f24a Patch for issue 2363606: Make EAS sync window default 3 days. 2010-02-23 12:25:25 -08:00
Makoto Onuki
94de6cdf29 Remove LOCAL_SDK_VERSION. We haven't finished unbundling. 2010-02-23 12:19:55 -08:00
Marc Blank
3b97e1769a Merge "Fix #2443881 (Don't display User name field for EAS account)" 2010-02-23 11:40:15 -08:00
Marc Blank
18d7222359 Send meeting invitations for new/updated Exchange events
* Wrote utility to create an ics file (iCalendar) based on a
  CalendarProvider Event.  This is a good first pass, but we need
  to consider whether to include alarms, etc.
* Use aforementioned utility and new convenience method to send
  meeting invitations to attendees of newly created meetings (events)
  when they are uploaded to the server via the CalendarSyncAdapter
* Overall, attempted to modify existing provider and rfc822 output
  code as little as possible.  Rfc822Output is actually very limited
  in its capabilities and should be made more robust in future

Change-Id: Ie20b9137df56dc414de6737d05fa40ec9cdf47e0
2010-02-23 11:37:18 -08:00
Mihai Preda
297b8aaae1 Merge "Email: remove unused strings and resources." 2010-02-23 08:47:09 -08:00
Andrew Stadler
5afa187791 Create a PackedString utility class
* We can use this for meeting request information which will start out with
  one or two pieces of information, but might grow in the future.
* Binary compatible with Address.pack() format, so we can eventually
  combine code.
2010-02-22 22:34:45 -08:00
Andy Stadler
4ce8150977 Merge "Remove ProGuard from tests, too." 2010-02-22 21:08:09 -08:00
Andrew Stadler
db8ef02fea Remove ProGuard from tests, too.
Follow-up to:  58fbf8c1af
2010-02-22 21:06:59 -08:00
Makoto Onuki
0faa9881dc Merge "Don't use hidden APIs" 2010-02-22 15:54:44 -08:00
Andy Stadler
eaf5bbcdff Merge "Disable ProGuard. It breaks debugging." 2010-02-22 13:59:53 -08:00