From d1e3430bfa1338268315e7425d0fbab995f5e107 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 16 Mar 2012 16:23:53 -0400
Subject: [PATCH] Pass message UID to 'message_part_get' hook

---
 program/steps/mail/get.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index e8e2c1c..924433d 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -85,7 +85,7 @@
 
     // 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;

--
Gitblit v1.9.1