From: Michael M Slusarz Date: Wed, 4 Mar 2009 18:16:53 +0000 (-0700) Subject: view.php: index -> uid X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6a25a988e714d3d2c4404b024c3b43945baa1a69;p=horde.git view.php: index -> uid --- diff --git a/imp/js/src/DimpCore.js b/imp/js/src/DimpCore.js index 744933d69..c965e5774 100644 --- a/imp/js/src/DimpCore.js +++ b/imp/js/src/DimpCore.js @@ -475,7 +475,7 @@ DimpCore = { return; case 'msg_view_source': - this.popupWindow(this.addURLParam(DIMP.conf.URI_VIEW, { index: DIMP.conf.msg_index, mailbox: DIMP.conf.msg_folder, actionID: 'view_source', id: 0 }, true), DIMP.conf.msg_index + '|' + DIMP.conf.msg_folder); + this.popupWindow(this.addURLParam(DIMP.conf.URI_VIEW, { uid: DIMP.conf.msg_index, mailbox: DIMP.conf.msg_folder, actionID: 'view_source', id: 0 }, true), DIMP.conf.msg_index + '|' + DIMP.conf.msg_folder); break; case 'alertsloglink': diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index a55adc75b..000fcf6c8 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -646,7 +646,7 @@ class IMP_Contents )); if (!is_null($this->_mailbox)) { - $params['index'] = $this->_index; + $params['uid'] = $this->_index; $params['mailbox'] = $this->_mailbox; } diff --git a/imp/view.php b/imp/view.php index cfaf9fddd..27f8bea78 100644 --- a/imp/view.php +++ b/imp/view.php @@ -14,10 +14,10 @@ * 'ctype' - (string) The content-type to use instead of the content-type * found in the original Horde_Mime_Part object. * 'id' - (string) The MIME part ID to display. - * 'index - (integer) The index of the message. * 'mailbox' - (string) The mailbox of the message. * 'mode' - (integer) The view mode to use. * DEFAULT: IMP_Contents::RENDER_FULL + * 'uid - (string) The UID of the message. * 'zip' - (boolean) Download in .zip format? * * @@ -64,14 +64,14 @@ if ($actionID == 'compose_attach_preview') { $actionID = 'view_attach'; $id = $mime->getMimeId(); } else { - $index = Util::getFormData('index'); + $uid = Util::getFormData('uid'); $mailbox = Util::getFormData('mailbox'); - if (!$index || !$mailbox) { + if (!$uid || !$mailbox) { exit; } try { - $contents = &IMP_Contents::singleton($index . IMP::IDX_SEP . $mailbox); + $contents = &IMP_Contents::singleton($uid . IMP::IDX_SEP . $mailbox); } catch (Horde_Exception $e) { Horde::fatal($e, __FILE__, __LINE__); }