Index: mollom.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.module,v
retrieving revision 1.2.2.62
diff -u -p -r1.2.2.62 mollom.module
--- mollom.module	25 May 2009 12:57:54 -0000	1.2.2.62
+++ mollom.module	9 Jun 2009 22:30:36 -0000
@@ -272,7 +272,8 @@ function mollom_report_node_submit($form
  * by the contact module.
  */
 function mollom_mail_alter(&$message) {
-  if (isset($GLOBALS['mollom_response']) && isset($GLOBALS['mollom_response']['session_id'])) {
+  $allowed_mail_ids = array('page_mail', 'user_mail');
+  if (in_array($message['id'], $allowed_mail_ids) && isset($GLOBALS['mollom_response']) && isset($GLOBALS['mollom_response']['session_id'])) {
     $report_link = t('Report as inappropriate: @link', array('@link' => url('mollom/contact/'. $GLOBALS['mollom_response']['session_id'], array('absolute' => TRUE))));
     // The _mail_alter hook seems to accept both arrays as strings so we 
     // need to handle both. TODO: it seems like something we want to clean 
