alecpl
2008-09-29 bf2f39ea6d2b49c7495a43cca19ab18f27f8292e
program/steps/mail/show.inc
@@ -67,14 +67,7 @@
  
  // mark message as read
  if (!$MESSAGE->headers->seen)
  {
    $marked = $IMAP->set_flag($MESSAGE->uid, 'SEEN');
    if($RCMAIL->action == 'preview' && $marked != -1)
    {
      $OUTPUT->command('parent.set_unread_count', $mbox_name, $IMAP->messagecount($mbox_name, 'UNSEEN'), ($mbox_name == 'INBOX'));
      $OUTPUT->command('parent.set_message', $MESSAGE->uid, 'unread', false);
    }
  }
    $IMAP->set_flag($MESSAGE->uid, 'SEEN');
  // give message uid to the client
  $OUTPUT->set_env('uid', $MESSAGE->uid);