From 36ed9d7ec69a0e774c13ed4c583b8674eee4fb98 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 27 Oct 2010 02:53:11 -0400 Subject: [PATCH] - Improve performance of rcube_imap_generic::countMessages() using STATUS instead of SELECT --- program/steps/settings/manage_folders.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc index 1dd459a..adcb5ee 100644 --- a/program/steps/settings/manage_folders.inc +++ b/program/steps/settings/manage_folders.inc @@ -299,7 +299,7 @@ $table->add_row(array('id' => 'rcmrow'.$idx, 'class' => join(' ', $classes))); $table->add('name', Q($display_folder)); - $table->add('msgcount', ($folder['virtual'] ? '' : $IMAP->messagecount($folder['id'], 'ALL', false, false))); + $table->add('msgcount', (($folder['virtual'] || $noselect) ? '' : $IMAP->messagecount($folder['id'], 'ALL', false, false))); $table->add('subscribed', $checkbox_subscribe->show(($subscribed ? $folder_utf8 : ''), array('value' => $folder_utf8, 'disabled' => ($protected || $noselect) ? 'disabled' : ''))); if ($threading_supported) { -- Gitblit v1.9.1