Index: C:\www\project_testing\drupal\sites\all\modules\project_issue\mail.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/mail.inc,v
retrieving revision 1.101
diff -u -p -r1.101 mail.inc
--- mail.inc	23 Jan 2008 19:15:53 -0000	1.101
+++ mail.inc	4 Mar 2008 02:40:24 -0000
@@ -358,17 +358,23 @@ function project_mail_generate_followup_
   project_mail_output($content, 1, $entry->format);
   $body = "$content\n$entry->name\n";
 
-  $hr = str_repeat('-', 72);
-
-  if (count($history)) {
-
-    $body .= "\n\n";
-    $body .= t('Original issue:') ."\n";
-    $body .= project_mail_format_entry(array_shift($history), $display_files, TRUE);
+  // Since in many cases sending the entire history of an issue
+  // in the message is a waste of resources, only send out the
+  // entire history if the administrator has not disabled
+  // sending of the entire history of an issue.
+  if (variable_get(project_issue_email_entire_history, TRUE)) {
+    $hr = str_repeat('-', 72);
+  
     if (count($history)) {
-      $body .= "\n". t('Previous comments (!count):', array('!count' => count($history))) ."\n";
-      foreach ($history as $entry) {
-        $body .= project_mail_format_entry($entry, $display_files);
+  
+      $body .= "\n\n";
+      $body .= t('Original issue:') ."\n";
+      $body .= project_mail_format_entry(array_shift($history), $display_files, TRUE);
+      if (count($history)) {
+        $body .= "\n". t('Previous comments (!count):', array('!count' => count($history))) ."\n";
+        foreach ($history as $entry) {
+          $body .= project_mail_format_entry($entry, $display_files);
+        }
       }
     }
   }
Index: C:\www\project_testing\drupal\sites\all\modules\project_issue\project_issue.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.install,v
retrieving revision 1.43
diff -u -p -r1.43 project_issue.install
--- project_issue.install	4 Mar 2008 02:34:35 -0000	1.43
+++ project_issue.install	4 Mar 2008 02:49:41 -0000
@@ -193,6 +193,7 @@ function project_issue_uninstall() {
     'project_comments',
     'project_subscriptions',
     'project_issue_state',
+    'project_issue_email_entire_history',
   );
   foreach ($tables as $table) {
     if (db_table_exists($table)) {
Index: C:\www\project_testing\drupal\sites\all\modules\project_issue\project_issue.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.module,v
retrieving revision 1.83
diff -u -p -r1.83 project_issue.module
--- project_issue.module	8 Feb 2008 17:49:26 -0000	1.83
+++ project_issue.module	4 Mar 2008 02:48:48 -0000
@@ -235,6 +235,13 @@ function project_issue_settings_form() {
     '#rows' => 5,
     '#description' => t('Optionally enter site-wide help text that will be displayed whenever a user tries to create a new issue. Please note that there is no automatic formatting on this text, but you can use regular HTML tags as necessary (for example %p, %ul, and so on).', array('%p' => '<p>', '%ul' => '<ul>')),
   );
+  
+  $form['project_issue_email_entire_history'] = array(
+    '#title' => t('Include entire history in issue e-mail messages'),
+    '#type' => 'checkbox',
+    '#default_value' => variable_get('project_issue_email_entire_history', 'TRUE'),
+    '#description' => t('If selected, issue e-mail notifications will include the entire history of the issue, including all comments, with each message.'),
+  );
 
   return system_settings_form($form);
 }
