From 1b7c36f0c154e973a16ee950cadbdda999986e87 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 Dec 2008 14:25:55 +0000 Subject: [PATCH] Updated mail methods git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13210 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc index b22c04268..7b4abf374 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods.inc @@ -676,6 +676,24 @@ class mailMethod{ { return(TRUE); } + + + /*! \brief Returns the configured mailMethod + @return String the configured mail method or "" + */ + static public function get_current_method($config) + { + global $class_mapping; + $method= $config->get_cfg_value("mailmethod"); + $cls = get_correct_class_name("mailMethod$method"); + foreach($class_mapping as $class => $path){ + if($class == $cls){ + return($class); + } + } + return(""); + } + } -- 2.30.2