From aef6ed4702ce50e7eb67b73a380e0b91c1f3376c Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 21 Nov 2013 08:53:17 +0100 Subject: Add hook to notify plugins about message sending errors --- program/lib/Roundcube/rcube.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'program/lib/Roundcube/rcube.php') diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 399f84fd8..e0fa22c3c 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1537,6 +1537,10 @@ class rcube !empty($response) ? join('; ', $response) : '')); } } + else { + // allow plugins to catch sending errors with the same parameters as in 'message_before_send' + $this->plugins->exec_hook('message_send_error', $plugin + array('error' => $error)); + } if (is_resource($msg_body)) { fclose($msg_body); -- cgit v1.2.3