Changeset 70ee70a in github


Ignore:
Timestamp:
Dec 4, 2009 9:22:48 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
724cc1f
Parents:
efe5a55
Message:
  • Fix counters of all folders are checked in 'getunread' action with check_all_folders disabled (#1486128)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r19d6a89 r70ee70a  
    22=========================== 
    33 
     4- Fix counters of all folders are checked in 'getunread' action  with check_all_folders disabled (#1486128) 
    45- Fix displaying alternative parts in messages of type message/rfc822 (#1486246) 
    56- Fix possible messages exposure when using Roundcube behind a proxy (#1486281) 
  • program/steps/mail/getunread.inc

    r915e3d1 r70ee70a  
    66 |                                                                       | 
    77 | This file is part of the RoundCube Webmail client                     | 
    8  | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 | 
     8 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 | 
    99 | Licensed under the GNU GPL                                            | 
    1010 |                                                                       | 
     
    2424if (!empty($a_folders)) 
    2525{ 
    26   $inbox = ($IMAP->get_mailbox_name() == 'INBOX'); 
     26  $current = $IMAP->get_mailbox_name(); 
     27  $inbox = ($current == 'INBOX'); 
     28  $check_all = (bool)$RCMAIL->config->get('check_all_folders'); 
     29 
    2730  foreach ($a_folders as $mbox_row) { 
    28     $unseen = $IMAP->messagecount($mbox_row, 'UNSEEN', !isset($_SESSION['unseen_count'][$mbox_row])); 
     31    if (!$check_all && isset($_SESSION['unseen_count'][$mbox_row]) && $mbox_row != $current) 
     32      $unseen = isset($_SESSION['unseen_count'][$mbox_row]); 
     33    else 
     34      $unseen = $IMAP->messagecount($mbox_row, 'UNSEEN', !isset($_SESSION['unseen_count'][$mbox_row])); 
    2935 
    3036    if ($unseen || !isset($_SESSION['unseen_count'][$mbox_row])) { 
Note: See TracChangeset for help on using the changeset viewer.