Skip to content

Commit

Permalink
feat(Hook) full message object on message_sent event
Browse files Browse the repository at this point in the history
  • Loading branch information
joebordes committed Feb 6, 2017
1 parent 81f67a4 commit 3c1d951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube.php
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ public function deliver_message(&$message, $from, $mailto, &$error,
$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']);
Expand Down

0 comments on commit 3c1d951

Please sign in to comment.