From 1a78f13faab8c107c0a368091229b4445b904fff Mon Sep 17 00:00:00 2001 From: Steffen185 Date: Sat, 23 Mar 2013 10:59:19 +0100 Subject: Add hook "message_check_safe" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This hook can be used by https://github.com/JohnDoh/Roundcube-Plugin-Global-Address-Book to mark messages as safe whose sender exists in the global address book --- program/steps/mail/func.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'program') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 274c40b5c..da01e6cbf 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -608,6 +608,8 @@ function rcmail_check_safe(&$message) $message->set_safe(true); } } + + $RCMAIL->plugins->exec_hook('message_check_safe', array('message' => $message)); break; case 2: // always -- cgit v1.2.3