From d1e3430bfa1338268315e7425d0fbab995f5e107 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 16 Mar 2012 20:23:53 +0000 Subject: Pass message UID to 'message_part_get' hook --- program/steps/mail/get.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/mail/get.inc') diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index e8e2c1cb3..924433df3 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -85,7 +85,7 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) { // allow post-processing of the message body $plugin = $RCMAIL->plugins->exec_hook('message_part_get', - array('id' => $part->mime_id, 'mimetype' => $mimetype, 'part' => $part, 'download' => !empty($_GET['_download']))); + array('uid' => $MESSAGE->uid, 'id' => $part->mime_id, 'mimetype' => $mimetype, 'part' => $part, 'download' => !empty($_GET['_download']))); if ($plugin['abort']) exit; -- cgit v1.2.3