summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8fc24f9)
raw | patch | inline | side by side (parent: 8fc24f9)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Oct 2010 08:44:03 +0000 (08:44 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Oct 2010 08:44:03 +0000 (08:44 +0000) |
When checking for messages to be delivered, honor delivery_time field
and skip the message if the delivery time has not been reached yet.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19883 594d385d-05f5-0310-b6e9-bd551577e9d8
and skip the message if the delivery time has not been reached yet.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19883 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-si/gosa-si-server | patch | blob | history |
index a2a49db1e6e4ded0161e8c8f9f0ea4a60ac3c7ac..c95660b5ce4aea1257b43745b0b4c0a6a40cace4 100755 (executable)
my ($kernel, $heap) = @_[KERNEL, HEAP];
# select outgoing messages
- my $sql_statement = "SELECT * FROM $messaging_tn WHERE ( flag='p' AND direction='out' )";
+ my $timestamp= &get_time();
+ my $sql_statement = "SELECT * FROM $messaging_tn WHERE ( flag='p' AND direction='out' AND delivery_time<$timestamp)";
#&daemon_log("0 DEBUG: $sql", 7);
my $res = $messaging_db->exec_statement( $sql_statement );