From 3c1d951d8466f354e58fa00b6e9d2bd37b6c4c9f Mon Sep 17 00:00:00 2001 From: Joe Bordes Date: Mon, 6 Feb 2017 23:26:51 +0100 Subject: [PATCH] feat(Hook) full message object on message_sent event --- program/lib/Roundcube/rcube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index ef81c5c25..3694c5c4b 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1661,7 +1661,7 @@ class rcube $this->plugins->exec_hook('message_send_error', $plugin + array('error' => $error)); } else { - $this->plugins->exec_hook('message_sent', array('headers' => $headers, 'body' => $msg_body)); + $this->plugins->exec_hook('message_sent', array('headers' => $headers, 'body' => $msg_body, 'message' => $message)); // remove MDN headers after sending unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']);