From: rettenbe Date: Fri, 9 May 2008 10:10:22 +0000 (+0000) Subject: all incoming msgs which are processed with event forwarding and with target address... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b3be11b21739897cc2c75e72bf6f58a020358722;p=gosa.git 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 --- 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