From b3be11b21739897cc2c75e72bf6f58a020358722 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Fri, 9 May 2008 10:10:22 +0000 Subject: [PATCH] all incoming msgs which are processed with event forwarding and with target address eq to server address are automatically forwarded to GOsa git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10862 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/SIPackages.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index b14f87ab6..39c26cf44 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -439,8 +439,11 @@ sub process_incoming_msg { # client is registered for this event, deliver this message to client $header =~ s/^answer_//; if ($client_events =~ /,$header,/) { - $msg =~ s/
answer_/
/; - $msg =~ s/\S+<\/target>/GOSA<\/target>/; + # answer message finally arrived destination server, so forward messages to GOsa + if ($target eq $main::server_address) { + $msg =~ s/
answer_/
/; + $msg =~ s/\S+<\/target>/GOSA<\/target>/; + } @out_msg_l = ( $msg ); # client is not registered for this event, set error -- 2.30.2