From: Michael M Slusarz Date: Thu, 28 May 2009 11:28:28 +0000 (-0600) Subject: Don't lose newly set flag in message view X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6422ba469723d083942019b6f0cfe919a45591d6;p=horde.git Don't lose newly set flag in message view --- diff --git a/imp/message.php b/imp/message.php index 2d9623535..f2a68efa0 100644 --- a/imp/message.php +++ b/imp/message.php @@ -65,7 +65,7 @@ if ($actionID && ($actionID != 'print_message')) { } /* Determine if mailbox is readonly. */ -$readonly = $imp_imap->isReadOnly($imp_mbox['mailbox']); +$peek = $readonly = $imp_imap->isReadOnly($imp_mbox['mailbox']); if ($readonly && in_array($actionID, array('delete_message', 'undelete_message', 'move_message', 'flag_message', 'strip_attachment', 'strip_all'))) { $actionID = null; @@ -147,7 +147,7 @@ case 'notspam_report': case 'flag_message': $flag = Util::getFormData('flag'); if ($flag && !empty($indices_array)) { - $set = true; + $peek = $set = true; if ($flag[0] == '0') { $flag = substr($flag, 1); $set = false; @@ -207,7 +207,7 @@ try { ), array('ids' => array($index))); $fetch_ret = $imp_imap->ob->fetch($mailbox_name, array( Horde_Imap_Client::FETCH_ENVELOPE => true, - Horde_Imap_Client::FETCH_HEADERTEXT => array(array('parse' => true, 'peek' => $readonly)) + Horde_Imap_Client::FETCH_HEADERTEXT => array(array('parse' => true, 'peek' => $peek)) ), array('ids' => array($index))); } catch (Horde_Imap_Client_Exception $e) { require IMP_BASE . '/mailbox.php';