? 199774-19.automatic_update_emails.patch
? 199774-automatic_update_emails-rev5.patch
? 312393-node-update-index-slow.patch
? 534092-cache-returns-expired-objects-rev2.patch
? modules/search/search.module-test
Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.189
diff -u -p -r1.189 install.php
--- install.php	28 Jul 2009 19:02:38 -0000	1.189
+++ install.php	30 Jul 2009 03:50:49 -0000
@@ -1355,6 +1355,8 @@ function install_configure_form(&$form_s
       // work on install time.
       drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail'))), 'setting');
       drupal_add_js('jQuery(function () { Drupal.cleanURLsInstallCheck(); });', 'inline');
+      // Add JS to show / hide the 'Email administrator about site updates' elements
+      drupal_add_js('jQuery(function () { Drupal.hideEmailAdministratorCheckbox() });', 'inline');
       // Build menu to allow clean URL check.
       menu_rebuild();
 
@@ -1591,11 +1593,18 @@ function _install_configure_form(&$form_
     '#attributes' => array('class' => 'install'),
   );
 
-  $form['server_settings']['update_status_module'] = array(
+  $form['update_notifications'] = array(
+    '#type' => 'fieldset',
+    '#title' => st('Update Notifications'),
+    '#collapsible' => FALSE,
+  );
+
+  $form['update_notifications']['update_status_module'] = array(
     '#type' => 'checkboxes',
     '#title' => st('Update notifications'),
-    '#options' => array(1 => st('Check for updates automatically')),
-    '#default_value' => array(1),
+    '#options' => array(1 => st('Check for updates automatically'),
+                        2 => st('Recieve e-mail notifications')),
+    '#default_value' => array(1, 2),
     '#description' => st('The system will notify you when updates and important security releases are available for installed components. Anonymous information about your site is sent to <a href="@drupal">Drupal.org</a>.', array('@drupal' => 'http://drupal.org')),
     '#weight' => 15,
   );
@@ -1645,6 +1654,12 @@ function install_configure_form_submit($
   // Enable update.module if this option was selected.
   if ($form_state['values']['update_status_module'][1]) {
     drupal_install_modules(array('update'));
+ 
+    // Add the administrator's email address to the list of addresses to be
+    // notified when updates are available, if selected.
+    if ($form_state['values']['update_status_module'][2]) {
+      variable_set('update_notify_emails', array($form_state['values']['account']['mail']));
+    }
   }
 
   // Turn this off temporarily so that we can pass a password through.
Index: modules/system/system.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.js,v
retrieving revision 1.28
diff -u -p -r1.28 system.js
--- modules/system/system.js	3 Jul 2009 19:21:55 -0000	1.28
+++ modules/system/system.js	30 Jul 2009 03:50:53 -0000
@@ -2,6 +2,25 @@
 (function ($) {
 
 /**
+ * Show/hide the 'Email site administrator when updates are available' checkbox
+ * on the install page.
+ */
+Drupal.hideEmailAdministratorCheckbox = function () {
+  // Make sure the secondary box is shown / hidden as necessary on page load.
+  if ($('#edit-update-status-module-1').is(':checked')) {
+    $('.update-status-module-2-wrapper').show();
+  }
+  else {
+    $('.update-status-module-2-wrapper').hide();
+  }
+
+  // Toggle the display as necessary when the checkbox is clicked.
+  $('#edit-update-status-module-1').change( function () {
+    $('.update-status-module-2-wrapper').toggle();
+  })
+};
+
+/**
  * Internal function to check using Ajax if clean URLs can be enabled on the
  * settings page.
  *
@@ -128,4 +147,6 @@ Drupal.behaviors.poweredByPreview = {
   }
 };
 
+
 })(jQuery);
+
Index: modules/update/update.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/update/update.module,v
retrieving revision 1.38
diff -u -p -r1.38 update.module
--- modules/update/update.module	20 Jul 2009 18:51:35 -0000	1.38
+++ modules/update/update.module	30 Jul 2009 03:50:54 -0000
@@ -419,6 +419,14 @@ function update_mail($key, &$message, $p
     $message['body'][] = _update_message_text($msg_type, $msg_reason, FALSE, $language);
   }
   $message['body'][] = t('See the available updates page for more information:', array(), array('langcode' => $langcode)) . "\n" . url('admin/reports/updates', array('absolute' => TRUE, 'language' => $language));
+
+  $settings_url = url('admin/settings/updates', array('absolute' => TRUE));
+  if (variable_get('update_notification_threshold', 'all') == 'all') {
+    $message['body'][] = t('Your site is currently configured to send these emails when any updates are available. To get notified only for security updates, please visit !url.', array('!url' => $settings_url));
+  }
+  else {
+    $message['body'][] = t('Your site is currently configured to send these emails only when security updates are available. To get notified for any available updates, please visit !url.', array('!url' => $settings_url));
+  }
 }
 
 /**
