From 1373b885792b3252a52b9acaf6fd62fe1c0fb788 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 27 Jul 2009 21:09:33 -0600 Subject: [PATCH] Another place to save on an EXAMINE IMAP call --- imp/ajax.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imp/ajax.php b/imp/ajax.php index 06063d0c1..610c61f73 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -487,6 +487,11 @@ case 'ShowPreview': 'preview' => true, ); + /* We know we are going to be exclusively dealing with this mailbox, so + * select it on the IMAP server (saves some STATUS calls). Open R/W to + * clear the RECENT flag. */ + $imp_imap->ob->openMailbox($ptr['key'], Horde_Imap_Client::OPEN_READWRITE); + $show_msg = new IMP_Views_ShowMessage(); $result = (object)$show_msg->showMessage($args); break; -- 2.11.0