From 9994de85fcf14a98dcc54cc7399b87e34d9b3c29 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 17 Mar 2009 09:23:07 -0400
Subject: [PATCH] Updated all language files.
---
server/plugins-available/mail_plugin.inc.php | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/server/plugins-available/mail_plugin.inc.php b/server/plugins-available/mail_plugin.inc.php
index 20d10e1..baa8edb 100644
--- a/server/plugins-available/mail_plugin.inc.php
+++ b/server/plugins-available/mail_plugin.inc.php
@@ -68,6 +68,11 @@
//$app->plugins->registerEvent('mail_domain_update',$this->plugin_name,'domain_update');
$app->plugins->registerEvent('mail_domain_delete',$this->plugin_name,'domain_delete');
+ //* Mail transports
+ $app->plugins->registerEvent('mail_transport_insert',$this->plugin_name,'transport_update');
+ $app->plugins->registerEvent('mail_transport_update',$this->plugin_name,'transport_update');
+ $app->plugins->registerEvent('mail_transport_delete',$this->plugin_name,'transport_update');
+
}
@@ -98,7 +103,11 @@
//* This is to fix the maildrop quota not being rebuilt after the quota is changed.
exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name']); // Avoid maildirmake quota bug, see debian bug #214911
$app->log('Created Maildir: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($maildomain_path)."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
- }
+ }
+
+ //* Set the maildir quota
+ exec("su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name']);
+ $app->log('Set Maildir quota: '."su -c 'maildirmake -q ".$data['new']['quota']."S ".escapeshellcmd($data['new']['maildir'])."' ".$mail_config['mailuser_name'],LOGLEVEL_DEBUG);
}
function user_update($event_name,$data) {
@@ -160,6 +169,14 @@
}
}
+ function transport_update($event_name,$data) {
+ global $app, $conf;
+
+ exec('/etc/init.d/postfix reload &> /dev/null');
+ $app->log('Postfix config reloaded ',LOGLEVEL_DEBUG);
+
+ }
+
--
Gitblit v1.9.1