From: rettenbe Date: Tue, 9 Sep 2008 12:31:53 +0000 (+0000) Subject: bugfix: mailq ids longer than 10 digits are allowd now X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=48731487db1a42dc1c7a050f69cdbc1bb2c1267e;p=gosa.git bugfix: mailq ids longer than 10 digits are allowd now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12377 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/mailqueue.pm b/gosa-si/client/events/mailqueue.pm index 5d755f123..5268b7b56 100644 --- a/gosa-si/client/events/mailqueue.pm +++ b/gosa-si/client/events/mailqueue.pm @@ -125,7 +125,7 @@ sub mailqueue_query { &main::daemon_log("DEBUG: run /usr/bin/mailq\n", 7); my $result = qx("/usr/bin/mailq"); - my @result_l = split(/([0-9A-Z]{10})/, $result); + my @result_l = split(/([0-9A-Z]{10,12})/, $result); if (length($result) == 0) { $error = 1; diff --git a/gosa-si/modules/GosaSupportDaemon.pm b/gosa-si/modules/GosaSupportDaemon.pm index 47a077b7e..25061bb90 100644 --- a/gosa-si/modules/GosaSupportDaemon.pm +++ b/gosa-si/modules/GosaSupportDaemon.pm @@ -238,7 +238,7 @@ sub db_res2xml { if( $column_name eq "xmlmessage" ) { $xml_content = &encode_base64($column_value); } else { - $xml_content = $column_value; + $xml_content = defined $column_value ? $column_value : ""; } $xml .= $xml_content; $xml .= ""; diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index d4dc8edd8..74ffac7d5 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -194,7 +194,7 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_mailqueue_del
GOSA 00:01:6c:9d:b9:fa CEAFDBEF45
"; # Only one xml tag msg_id is allowed - #$data = "
gosa_mailqueue_header
GOSA 00:01:6c:9d:b9:fa 99E92BEF2B
"; + #$data = "
gosa_mailqueue_header
GOSA 00:01:6c:9d:b9:fa A9CBFBEF45
"; ######################## # DAK Debian Archive Kit