From f73bb61c04c2ab46b7d4950f604e6cf84a42d78c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 19 Aug 2007 09:29:20 -0400 Subject: [PATCH] Fixed a strict error in tform.inc.php and tform_actions.inc.php --- server/mods-enabled/mail_module.inc.php | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/server/mods-enabled/mail_module.inc.php b/server/mods-enabled/mail_module.inc.php index e1dfe08..1697f73 100644 --- a/server/mods-enabled/mail_module.inc.php +++ b/server/mods-enabled/mail_module.inc.php @@ -49,7 +49,10 @@ 'mail_transport_delete', 'mail_get_insert', 'mail_get_update', - 'mail_get_delete'); + 'mail_get_delete', + 'mail_content_filter_insert', + 'mail_content_filter_update', + 'mail_content_filter_delete'); /* This function is called when the module is loaded @@ -81,6 +84,7 @@ $app->modules->registerTableHook('mail_transport','mail_module','process'); $app->modules->registerTableHook('mail_user','mail_module','process'); $app->modules->registerTableHook('mail_get','mail_module','process'); + $app->modules->registerTableHook('mail_content_filter','mail_module','process'); } @@ -123,6 +127,11 @@ if($action == 'u') $app->plugins->raiseEvent('mail_get_update',$data); if($action == 'd') $app->plugins->raiseEvent('mail_get_delete',$data); break; + case 'mail_content_filter': + if($action == 'i') $app->plugins->raiseEvent('mail_content_filter_insert',$data); + if($action == 'u') $app->plugins->raiseEvent('mail_content_filter_update',$data); + if($action == 'd') $app->plugins->raiseEvent('mail_content_filter_delete',$data); + break; } // end switch } // end function -- Gitblit v1.9.1