Index: rules/modules/comment.rules.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/modules/Attic/comment.rules.inc,v
retrieving revision 1.1.2.8
diff -u -p -r1.1.2.8 comment.rules.inc
--- rules/modules/comment.rules.inc	19 Aug 2009 14:58:41 -0000	1.1.2.8
+++ rules/modules/comment.rules.inc	13 Oct 2010 08:50:28 -0000
@@ -129,6 +129,15 @@ function comment_rules_action_info() {
       ),
       'module' => 'Comment',
     ),
+    'rules_action_add_comment' => array(
+      'label' => t('Add comment to a node'),
+      'arguments' => array(
+        'node' => array('type' => 'node', 'label' => t('Content')),
+        'author' => array('type' => 'user', 'label' => t('User, who is set as author')),
+      ),
+      'eval input' => array('format', 'subject', 'message'),
+      'module' => 'Comment',
+    ),
   );
 }
 
@@ -140,6 +149,23 @@ function rules_action_load_comment($cid)
 }
 
 /**
+ * Action: Add comment to node.
+ */
+function rules_action_add_comment($node, $user, $settings) {
+  $comment = array();
+  $comment['pid'] = 0;
+  $comment['nid'] = $node->nid;
+  $comment['uid'] = $user->uid;
+  $comment['name'] = $user->name;
+
+  $comment['format'] = $settings['format'];
+  $comment['subject'] = $settings['subject'];
+  $comment['comment'] = $settings['comment'];
+
+  comment_save($comment);
+}
+
+/**
  * Implementation of hook_rules_data_type_info()
  */
 function comment_rules_data_type_info() {
Index: rules/modules/comment.rules_forms.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/modules/Attic/comment.rules_forms.inc,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 comment.rules_forms.inc
--- rules/modules/comment.rules_forms.inc	15 May 2009 13:03:12 -0000	1.1.2.3
+++ rules/modules/comment.rules_forms.inc	13 Oct 2010 08:50:28 -0000
@@ -18,5 +18,36 @@ function rules_action_load_comment_varia
 }
 
 /**
+ * Action "Add comment to node" form.
+ */
+function rules_action_add_comment_form($settings = array(), &$form, $form_state) {
+  $settings += array('format' => '', 'subject' => '', 'comment' => '');
+  $format_options = array();
+  foreach (filter_formats() as $id => $format) {
+    $format_options[$id] = $format->name;
+  }
+
+  $form['settings']['subject'] = array(
+    '#type' => 'textfield',
+    '#size' => 30,
+    '#title' => t('Subject'),
+    '#default_value' => $settings['subject'],
+  );
+  $form['settings']['comment'] = array(
+    '#type' => 'textarea',
+    '#size' => 30,
+    '#title' => t('Comment'),
+    '#default_value' => $settings['comment'],
+    '#required' => TRUE,
+  );
+  $form['settings']['format'] = array(
+    '#type' => 'select',
+    '#options' => $format_options,
+    '#title' => t('Input format'),
+    '#default_value' => $settings['format'] ? $settings['format'] : variable_get('filter_default_format', 1),
+  );
+}
+
+/**
  * @}
  */
\ No newline at end of file
