]> git.ipfire.org Git - ipfire.org.git/commitdiff
messages: Fix cleaning up mail queue
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 Oct 2019 19:26:24 +0000 (19:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 Oct 2019 19:26:24 +0000 (19:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/messages.py

index 67d0a8635eefc4ede33714f679da68c5618bce4d..ed2d896b5e422be1006883976809f074a1f839d9 100644 (file)
@@ -213,4 +213,4 @@ class Queue(misc.Object):
                logging.debug("Cleaning up message queue")
 
                self.db.execute("DELETE FROM messages \
-                       WHERE time_sent IS NOT NULL AND time_sent >= NOW() + '1 day'::interval")
+                       WHERE time_sent IS NOT NULL AND time_sent <= NOW() - '30 day'::interval")