Code

bugfix: correct set of delivered messages
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 09:49:41 +0000 (09:49 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 May 2008 09:49:41 +0000 (09:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10814 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index fab6e0f686c8868c3295c7337e4838533da01927..8a897ebee5c4dc0bca6d0188df1c97468201e70a 100755 (executable)
@@ -1471,7 +1471,7 @@ sub watch_for_delivery_messages {
                                my %data = ('subject' => $subject, 'message' => $message, 'usr' => $receiver);
                                my $out_msg = &build_msg("usr_msg", $server_address, $receiver_host, \%data ); 
                                my $error = &send_msg_to_target($out_msg, $receiver_host, $receiver_key, "usr_msg", 0); 
-                               if ($error != 0 ) {
+                               if ($error == 0 ) {
                                        $send_succeed++ ;
                                }
                }