From 28cd07d1a75c4e9dcaecac49efee0091f2fc62fa Mon Sep 17 00:00:00 2001
From: A. Täffner <darkalex@firesplash.de>
Date: Thu, 07 Apr 2016 05:30:49 -0400
Subject: [PATCH] Implemented a checkbox "enable DNSSEC" in DNS-Wizard. This Checkbox can be enabled or disabled by template.

---
 server/plugins-available/getmail_plugin.inc.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/server/plugins-available/getmail_plugin.inc.php b/server/plugins-available/getmail_plugin.inc.php
index 80424ad..5b1edfb 100644
--- a/server/plugins-available/getmail_plugin.inc.php
+++ b/server/plugins-available/getmail_plugin.inc.php
@@ -100,7 +100,11 @@
 
 			if($data["new"]["active"] == 'y') {
 				// Open master template
-				$tpl = file_get_contents($conf["rootpath"].'/conf/getmail.conf.master');
+				if(file_exists($conf["rootpath"].'/conf-custom/getmail.conf.master')) {
+					$tpl = file_get_contents($conf["rootpath"].'/conf-custom/getmail.conf.master');
+				} else {
+					$tpl = file_get_contents($conf["rootpath"].'/conf/getmail.conf.master');
+				}
 
 				// Shall emails be deleted after retrieval
 				if($data["new"]["source_delete"] == 'y') {

--
Gitblit v1.9.1