? 151976_dot_non_release_projects_4.patch
? 320150_dot_cache_tids.patch
? do_testing_non_cvs_projects.patch.txt
Index: /Applications/MAMP/htdocs/dot/drupal/profiles/drupalorg_testing/drupalorg_testing.profile
===================================================================
RCS file: /cvs/drupal-contrib/contributions/profiles/drupalorg_testing/drupalorg_testing.profile,v
retrieving revision 1.45
diff -u -p -r1.45 drupalorg_testing.profile
--- drupalorg_testing.profile	12 Oct 2008 15:45:23 -0000	1.45
+++ drupalorg_testing.profile	12 Oct 2008 17:03:43 -0000
@@ -96,6 +96,7 @@ function drupalorg_testing_profile_final
   _drupalorg_testing_create_node_types();
   _drupalorg_testing_configure_site();
   _drupalorg_testing_configure_theme();
+  _drupalorg_testing_configure_contact();
   _drupalorg_testing_configure_comment();
   _drupalorg_testing_configure_devel_module();
   _drupalorg_testing_configure_cvs_module();
@@ -154,6 +155,60 @@ function _drupalorg_testing_configure_th
   variable_set('theme_settings', $theme_settings);
 }
 
+/**
+ * Configure settings for contact form.
+ */
+function _drupalorg_testing_configure_contact() {
+  $values = array();
+  $values[] = array (
+    'category' => 'Problems with this website',
+    'recipients' => 'webmasters@localhost',
+    'reply' => 'Thank you for contacting us!
+ 
+  To discuss Drupal.org related issues, use the "Drupal.org infrastructure forum" at <a href="http://drupal.org/forum/12" title="http://drupal.org/forum/12" rel="nofollow">http://drupal.org/forum/12</a>. 
+ 
+  If you encountered a problem on or with drupal.org that needs the attention of the website maintainers, please submit an issue to the "Drupal.org maintenance project" at <a href="http://drupal.org/project/issues/3202.
+" title="http://drupal.org/project/issues/3202.
+" rel="nofollow">http://drupal.org/project/issues/3202.
+</a> 
+  Thanks,
+ 
+  --
+  Drupal.org maintenance team',
+    'weight' => '-1',
+    'selected' => '0',
+    'cid' => 0,
+  );
+
+  $values[] = array (
+    'category' => 'General inquiry (other)',
+    'recipients' => 'info@localhost',
+    'reply' => 'Thanks for contacting us. 
+ 
+  Note that Drupal is not a commercial product and that drupal.org is run by volunteers.  As such, we do NOT provide support by e-mail.  All support or information requests should go through the official support channels found at <a href="http://drupal.org/support/" title="http://drupal.org/support/" rel="nofollow">http://drupal.org/support/</a>.  If your question is a support question, please ask your question in the forums at drupal.org, the support channel on IRC or the support mailing list.  Consult the services page at <a href="http://drupal.org/services/" title="http://drupal.org/services/" rel="nofollow">http://drupal.org/services/</a> if you are looking for commercial support.  Thanks.',
+    'weight' => '0',
+    'selected' => '0',
+    'cid' => 0,
+  );
+  foreach($values as $value) {
+    drupal_execute('contact_admin_edit', $value);
+
+    // PAINFUL HACK:  When the contact form is submitted (via drupal_execute()
+    // above), comtact_admin_edit_submit() is called.  This function only
+    // actually adds the contact if arg(3) == 'add'.  But since this won't be
+    // the case when this form is executed via drupal_execute(), we have to
+    // manually add this contact to the database here.
+    // There's not even a strong need to pass this form through drupal_execute()
+    // at all, except for the fact that this causes contact_admin_edit_validate()
+    // to be called.
+    //
+    // @TODO Drupal 6:  This shouldn't be necessary since contact_admin_edit_submit()
+    // no longer uses arg() in the D6 version.
+    db_query("INSERT INTO {contact} (category, recipients, reply, weight, selected) VALUES ('%s', '%s', '%s', %d, %d)", $value['category'], $value['recipients'], $value['reply'], $value['weight'], $value['selected']);
+    drupal_set_message(t('Category %category has been added.', array('%category' => $value['category'])));
+  }
+}
+
 function _drupalorg_testing_configure_comment() {
   variable_set('comment_preview', 0);
   variable_set('comment_form_location', 1);
