Changeset c642779 in github


Ignore:
Timestamp:
May 3, 2010 2:27:38 PM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
1f019c8
Parents:
9675784
Message:
  • fix unseen messages counter after unseen message preview
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/show.inc

    rbc49601 rc642779  
    227227 
    228228// mark message as read 
    229 if ($MESSAGE && $MESSAGE->headers && !$MESSAGE->headers->seen && ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) 
    230   $IMAP->set_flag($MESSAGE->uid, 'SEEN'); 
     229if ($MESSAGE && $MESSAGE->headers && !$MESSAGE->headers->seen && 
     230  ($RCMAIL->action == 'show' || ($RCMAIL->action == 'preview' && intval($CONFIG['preview_pane_mark_read']) == 0))) 
     231{ 
     232  if ($IMAP->set_flag($MESSAGE->uid, 'SEEN') && $_SESSION['unseen_count'][$mbox_name]) 
     233    $_SESSION['unseen_count'][$mbox_name] -= 1; 
     234} 
    231235 
    232236exit; 
Note: See TracChangeset for help on using the changeset viewer.