mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
Documentation update + little bugfix
This commit is contained in:
@@ -7,14 +7,14 @@ from django.conf import settings
|
||||
if __name__ == "__main__":
|
||||
conn = db.getconnection("amavis_quarantine")
|
||||
try:
|
||||
max_msg_days = getattr(settings, "MAX_MESSAGES_AGE")
|
||||
max_messages_age = getattr(settings, "MAX_MESSAGES_AGE")
|
||||
except AttributeError:
|
||||
max_messages_age = 14
|
||||
|
||||
print "Deleting messages older than %d days..." % max_msg_days
|
||||
print "Deleting messages older than %d days..." % max_messages_age
|
||||
db.execute(conn, """
|
||||
DELETE FROM msgs WHERE time_num < UNIX_TIMESTAMP()-%d*24*3600;
|
||||
""" % max_msg_days)
|
||||
""" % max_messages_age)
|
||||
|
||||
print "Deleting unreferenced e-mail addresses..."
|
||||
db.execute(conn, """
|
||||
|
||||
Reference in New Issue
Block a user