From 8b5d16d30a48ea5b4afda7019dd09dbcd303194f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 30 Apr 2014 14:27:49 +0200 Subject: Support 'error' and 'body_file' return attribs in 'message_before_send' hook (#1489595) Conflicts: CHANGELOG --- program/lib/Roundcube/rcube.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'program/lib/Roundcube/rcube.php') diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index d58eb087b..87103be93 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1438,6 +1438,13 @@ class rcube )); if ($plugin['abort']) { + if (!empty($plugin['error'])) { + $error = $plugin['error']; + } + if (!empty($plugin['body_file'])) { + $body_file = $plugin['body_file']; + } + return isset($plugin['result']) ? $plugin['result'] : false; } -- cgit v1.2.3