diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-19 16:55:59 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-19 16:55:59 +0200 |
commit | ed763b2859c3d8143043b31363193d2f19c3f5dd (patch) | |
tree | 101a2571401f04a36e1f5c42ee5610be7d892283 /program/lib | |
parent | 241af0937c973fb8b541ed97ef8b194be4be7c00 (diff) |
Plugin API: Added message_saved hook (#1489752)
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_imap.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php index b3ae9608c..f2ade9545 100644 --- a/program/lib/Roundcube/rcube_imap.php +++ b/program/lib/Roundcube/rcube_imap.php @@ -2457,6 +2457,17 @@ class rcube_imap extends rcube_storage if ($saved) { // increase messagecount of the target folder $this->set_messagecount($folder, 'ALL', 1); + + rcube::get_instance()->plugins->exec_hook('message_saved', array( + 'folder' => $folder, + 'message' => $message, + 'headers' => $headers, + 'is_file' => $is_file, + 'flags' => $flags, + 'date' => $date, + 'binary' => $binary, + 'result' => $saved, + )); } return $saved; |