alecpl
2010-10-27 36ed9d7ec69a0e774c13ed4c583b8674eee4fb98
program/include/rcube_imap_generic.php
@@ -944,11 +944,16 @@
          $this->selected = '';
       }
       $this->select($mailbox);
       if ($this->selected == $mailbox) {
          return $this->data['EXISTS'];
       }
        // Try STATUS, should be faster
        $counts = $this->status($mailbox, array('MESSAGES'));
        if (is_array($counts)) {
            return (int) $counts['MESSAGES'];
        }
        return false;
    }