Index: privatemsg.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/privatemsg/privatemsg.install,v
retrieving revision 1.5.2.4.2.11.2.10
diff -u -r1.5.2.4.2.11.2.10 privatemsg.install
--- privatemsg.install	1 Jul 2009 22:21:33 -0000	1.5.2.4.2.11.2.10
+++ privatemsg.install	7 Jul 2009 22:59:14 -0000
@@ -410,7 +410,7 @@
 function privatemsg_update_6003() {
   $ret = array();
   // Find messages that have aformentioned problem
-  $sql = "SELECT DISTINCT p1.mid, p1.uid FROM pm_index p1 INNER JOIN pm_index p2 ON p1.thread_id = p2.thread_id AND p1.mid = p2.mid INNER JOIN pm_message pm ON p1.uid = pm.author AND p2.uid = pm.author WHERE p1.is_new != p2.is_new";
+  $sql = "SELECT DISTINCT p1.mid, p1.uid FROM {pm_index} p1 INNER JOIN {pm_index} p2 ON p1.thread_id = p2.thread_id AND p1.mid = p2.mid INNER JOIN {pm_message} pm ON p1.uid = pm.author AND p2.uid = pm.author WHERE p1.is_new != p2.is_new";
   $result = db_query($sql);
   while($row = db_fetch_object($result)) {
       privatemsg_message_change_status($row->mid, PRIVATEMSG_READ, $row );
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.70.2.30.2.91.2.56
diff -u -r1.70.2.30.2.91.2.56 privatemsg.module
--- privatemsg.module	1 Jul 2009 22:21:33 -0000	1.70.2.30.2.91.2.56
+++ privatemsg.module	7 Jul 2009 23:01:48 -0000
@@ -1365,10 +1365,10 @@
     db_query($query, $mid, $message['thread_id'], $recipient->uid, 1);
   }
 
-  // When author is also the recipient, we want to set message to UNREAD. all other times his message is set to read
+  // When author is also the recipient, we want to set message to UNREAD. all other times his message is set to READ.
   $is_new = isset($message['recipients'][$message['author']->uid]) ? 1 : 0;
 
-  // Also add a record for tha author to the pm_index table - set  column "new" to 0.
+  // Also add a record for the author to the pm_index table.
   db_query($query, $mid, $message['thread_id'], $message['author']->uid, $is_new);
 
   module_invoke_all('privatemsg_message_insert', $message);

