I forgot to copy/paste some code :p

see #245
This commit is contained in:
Antoine Nguyen
2012-06-27 10:24:50 +02:00
parent c757d276af
commit 53a6faebd1
2 changed files with 7 additions and 1 deletions
@@ -14,7 +14,7 @@ from modoboa.extensions.postfix_autoreply.models import ARmessage, ARhistoric
def send_autoreply(sender, mailbox, armessage):
if armessage.untildate is not None \
and armessage.untildate < datetime.datetime.now():
and armessage.untildate < datetime.date.today():
armessage.enabled = False
armessage.save()
return
@@ -30,6 +30,12 @@ from modoboa.admin.models import Domain
from modoboa.extensions.stats import Stats
import modoboa.extensions.stats.grapher as grapher
rrdstep = 60
xpoints = 540
points_per_sample = 3
variables = ["sent", "recv", "bounced", "reject", "spam", "virus",
"size_sent", "size_recv"]
class LogParser(object):
def __init__(self, options, workdir, year=None):
self.logfile = options["logfile"]