From f9c7f3f99c5468f6c55ebc707e9e8987e5e88e01 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 28 Jun 2011 10:07:42 -0400
Subject: [PATCH] - Added function to create random passwords in auth library. - Fixed {RECORDID} placeholder in SQL datasource strings.

---
 server/plugins-available/maildeliver_plugin.inc.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/server/plugins-available/maildeliver_plugin.inc.php b/server/plugins-available/maildeliver_plugin.inc.php
index b2a1146..4d0b465 100644
--- a/server/plugins-available/maildeliver_plugin.inc.php
+++ b/server/plugins-available/maildeliver_plugin.inc.php
@@ -60,6 +60,7 @@
 		Register for the events
 		*/
 		
+		$app->plugins->registerEvent('mail_user_insert','maildeliver_plugin','update');
 		$app->plugins->registerEvent('mail_user_update','maildeliver_plugin','update');
 		$app->plugins->registerEvent('mail_user_delete','maildeliver_plugin','delete');
 		
@@ -102,6 +103,9 @@
 		
 			$tpl = new tpl();
 			$tpl->newTemplate("sieve_filter.master");
+			
+			// cc Field
+			$tpl->setVar('cc',$data["new"]["cc"]);
 				
 			// Custom filters
 			$tpl->setVar('custom_mailfilter',$data["new"]["custom_mailfilter"]);

--
Gitblit v1.9.1