From 54fb5932b92ab1dcd914340edd61f36bc01c0845 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 11 Aug 2007 12:53:40 -0400
Subject: [PATCH] Added postfix header- and body check filters.
---
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