Thomas Bruederli
2013-11-21 aef6ed4702ce50e7eb67b73a380e0b91c1f3376c
Add hook to notify plugins about message sending errors
1 files modified
4 ■■■■ changed files
program/lib/Roundcube/rcube.php 4 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube.php
@@ -1537,6 +1537,10 @@
                    !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);