From 48eb6abaa099205e3806c7d5e892ebb0373a710c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Nov 2008 13:16:34 +0000 Subject: [PATCH] Updated group Mail -Added local_only flag. Like described in ticket #573 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13024 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/admin/groups/mail/class_groupMail.inc | 7 +++++++ gosa-plugins/mail/admin/groups/mail/mail.tpl | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc index 3ebe161df..995703a5d 100644 --- a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc +++ b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc @@ -736,6 +736,12 @@ class mailgroup extends plugin $smarty->assign("Forward_all",$this->gosaMailForwardingAddress); $smarty->assign("Forward_some",$this->gosaMailForwardingAddress_Some); + if (preg_match("/I/", $this->gosaMailDeliveryMode)) { + $smarty->assign("only_local", "checked"); + }else{ + $smarty->assign("only_local", ""); + } + $smarty->assign("multiple_support",$this->multiple_support_active); $display.= $smarty->fetch (get_template_path('mail.tpl', TRUE, dirname(__FILE__))); return ($display); @@ -1292,6 +1298,7 @@ I: Only insider delivery */ "kolabFolderType" => _("Folder type")." ("._("Kolab").")", "gosaMailAlternateAddress" => _("Alternate addresses"), "gosaMailForwardingAddress" => _("Forwarding addresses"), + "gosaMailDeliveryModeI" => _("Only local"), "acl" => _("Permissions")) )); } diff --git a/gosa-plugins/mail/admin/groups/mail/mail.tpl b/gosa-plugins/mail/admin/groups/mail/mail.tpl index c6e5c7cc8..2345794d4 100644 --- a/gosa-plugins/mail/admin/groups/mail/mail.tpl +++ b/gosa-plugins/mail/admin/groups/mail/mail.tpl @@ -171,6 +171,21 @@ {/if} +

 

+ +

 {t}Advanced mail options{/t}

+ + + + +
+{render acl=$gosaMailDeliveryModeIACL} + +{/render} + {t}User is only allowed to send and receive local mails{/t} +
+

@@ -210,6 +225,7 @@ {render acl=$gosaMailForwardingAddressACL} {/render} + -- 2.30.2