From 100be1aa67d90be1bb58f5a51fb5273bc364984f Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sun, 19 Aug 2007 01:02:55 -0400
Subject: [PATCH] Minor tweaks to login
---
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