Code

fixes delivery probelem for single user messages
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 08:44:08 +0000 (08:44 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 08:44:08 +0000 (08:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12930 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server
gosa-si/server/events/gosaTriggered.pm

index 80c1d78cb6b714dc44ccd773bc82d2579364b131..ffd8f8591e6cf42423234874c984538686c8cb99 100755 (executable)
@@ -1895,7 +1895,7 @@ sub watch_for_new_messages {
                my %receiver_h; 
                foreach my $receiver (@message_to_l) {
                        if ($receiver =~ /^u_([\s\S]*)$/) {
-                               $receiver_h{$receiver} = 0;
+                               $receiver_h{$1} = 0;
                        } elsif ($receiver =~ /^g_([\s\S]*)$/) {
                                my $group_name = $1;
                                # fetch all group members from ldap and add them to receiver hash
index 0639c0213021022d351fafe021aaa6491f3bfbce..714a4eef44558ca3933badb350ef3ad2f1522ad5 100644 (file)
@@ -144,7 +144,7 @@ sub send_user_msg {
     if (not $res == 0) {
         &main::daemon_log("$session_id ERROR: gosaTriggered.pm: cannot add message to message_db: $res", 1);
     } else {
-        &main::daemon_log("$session_id INFO: gosaTriggered.pm: message with subject '$subject' successfully added to message_db", 5);
+        &main::daemon_log("$session_id INFO: gosaTriggered.pm: message with subject '".&decode_base64($subject)."' successfully added to message_db", 5);
     }
 
     return;