mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user