summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e8acb2)
raw | patch | inline | side by side (parent: 1e8acb2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 03:06:27 +0000 (03:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Sep 2006 03:06:27 +0000 (03:06 +0000) |
Transports were not parsed correctly
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4617 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4617 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_goMailServer.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc
index a1cbbd24804dd8dc7012fbc26aca49abb4b66540..f72af1d2b7eb3a1e485bcf93cc07e631ce12daae 100644 (file)
if(isset($this->attrs['postfixTransportTable'])){
$tmp = array();
unset($this->attrs['postfixTransportTable']['count']);
- foreach($this->attrs['postfixTransportTable'] as $entry){
- $nr = preg_replace("/:.*$/","",$entry);
- $rest= trim(preg_replace("/^[^:]+:/","",$entry));
- $src = preg_replace("/ .*$/","",$rest);
- $rest= preg_replace("/^[^ ]+ /","",$rest);
- $dst = preg_replace("/^.*:/","",$rest);
- $prt = preg_replace("/:.*$/","",$rest);
-
- $tmp[$nr]['src'] = $src;
- $tmp[$nr]['dst'] = $dst;
- $tmp[$nr]['prt'] = $prt;
-
+ foreach($this->attrs['postfixTransportTable'] as $entry){
+
+ //0: offshore.vip.ms-europa.lhsystems.com smtp:172.28.0.2
+
+ $Number = preg_replace('/^([^:]+):.*$/', '\\1', $entry);
+ $Rest = trim(preg_replace("/^[0-9]*:/","",$entry));
+
+ $Protocol_Destination = preg_replace("/^.*\ /","",$Rest);
+ $Source = preg_replace("/\ .*$/","",$Rest);
+
+ $Protocol = preg_replace ('/^([^:]+):.*$/', '\\1' ,trim($Protocol_Destination));
+ $Destination = preg_replace ('/^[^:]+:(.*)$/', '\\1' ,trim($Protocol_Destination));
+
+ $Destination = preg_replace ("/[\[\]]/","",$Destination);
+
+ $tmp[$Number]['src'] = $Source;
+ $tmp[$Number]['dst'] = $Destination;
+ $tmp[$Number]['prt'] = $Protocol;
}
ksort($tmp);
foreach($tmp as $entry){