From dcff5718f345f55f7ea81f18d1f086facde4eacf Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Mon, 20 Aug 2007 23:14:51 -0400
Subject: [PATCH] * Using new ISPC_*_PATH constants * Adding new data schema (to be moved shortly * no more $conf['classpath']

---
 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