mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# coding: utf-8
|
||||
|
||||
import sys
|
||||
import smtplib
|
||||
@@ -8,7 +8,7 @@ import datetime
|
||||
from modoboa.lib import parameters
|
||||
from modoboa.lib.emailutils import split_mailbox
|
||||
from modoboa.admin.models import Mailbox
|
||||
from modoboa.extensions.postfix_autoreply import main
|
||||
from modoboa.extensions import postfix_autoreply
|
||||
from modoboa.extensions.postfix_autoreply.models import ARmessage, ARhistoric
|
||||
|
||||
def send_autoreply(sender, mailbox, armessage):
|
||||
@@ -20,7 +20,7 @@ def send_autoreply(sender, mailbox, armessage):
|
||||
|
||||
try:
|
||||
lastar = ARhistoric.objects.get(armessage=armessage.id, sender=sender)
|
||||
main.load()
|
||||
postfix_autoreply.load()
|
||||
timeout = parameters.get_admin("AUTOREPLIES_TIMEOUT",
|
||||
app="postfix_autoreply")
|
||||
delta = datetime.timedelta(seconds=int(timeout))
|
||||
|
||||
Reference in New Issue
Block a user