? 304926_notify_anons.patch Index: comment_notify.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/comment_notify/comment_notify.module,v retrieving revision 1.8.2.6 diff -u -p -r1.8.2.6 comment_notify.module --- comment_notify.module 22 Aug 2008 01:41:15 -0000 1.8.2.6 +++ comment_notify.module 7 Sep 2008 20:28:08 -0000 @@ -303,9 +303,9 @@ function _comment_notify_mailalert($comm } $from = variable_get('site_mail', ini_get('sendmail_from')); - $result = db_query('SELECT DISTINCT c.cid, u.init, c.uid, c.name, c.nid, c.mail cmail, u.mail umail, u.init uinit, c.uid, c.name, cn.notify_hash mymd5 + $result = db_query("SELECT DISTINCT c.cid, u.init, c.uid, c.name, c.nid, c.mail cmail, u.mail umail, u.init uinit, c.uid, c.name, cn.notify_hash mymd5 FROM {comments} c INNER JOIN {comment_notify} cn on c.cid = cn.cid LEFT OUTER JOIN {users} u ON c.uid = u.uid - WHERE nid = %d AND cn.notify = 1 AND c.status = 0 AND u.status = 1', $nid + WHERE nid = %d AND cn.notify = 1 AND c.status = 0 AND (u.status = 1 OR u.status = '')", $nid ); // TODO? the original big query had stuff making sure the mail was populated and contained .+@.+ Perhaps check for that here and set notify = 0 if that is the case for this cid