From: janw Date: Wed, 7 Apr 2010 14:58:07 +0000 (+0000) Subject: Remove xml braces from mailqueue output. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a7df5f7069852ce25624d1a4500875d3a6d02a3;p=gosa.git Remove xml braces from mailqueue output. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17527 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/mailqueue.pm b/gosa-si/client/events/mailqueue.pm index 9e0d05e26..5845a047f 100644 --- a/gosa-si/client/events/mailqueue.pm +++ b/gosa-si/client/events/mailqueue.pm @@ -135,7 +135,8 @@ sub mailqueue_query { my $out_msg; &main::daemon_log("DEBUG: run /usr/bin/mailq\n", 7); - my $result = qx("/usr/bin/mailq"); + # my $result = qx("/usr/bin/mailq"); + my $result = qx("cat /tmp/test-mailq"); my @result_l = split(/([0-9A-Z]{10,12})/, $result); if (length($result) == 0) { @@ -235,9 +236,13 @@ sub mailqueue_query { &main::daemon_log("$session_id WARNING: $error_string", 3); } - # If query was successful, add resutls to answer + # If query was successful, add results to answer if ($query_positiv) { - $j++; + $j++; + foreach my $key (keys %{ $act_result }) { + $act_result->{$key} =~ s/\{$key} =~ s/\>/\>\;/g; + } $result_collection->{$j} = $act_result; } }