summaryrefslogtreecommitdiff
path: root/mailman/app/replybot.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-12-29 23:28:56 -0500
committerBarry Warsaw2008-12-29 23:28:56 -0500
commit03d01d66436661ef7d1e6a80401a6ed232d02718 (patch)
treea296ada714b964b4a16b874ccaaad8c5785b7acc /mailman/app/replybot.py
parent7713f04267b9f9245b371c54857ca402a81a3c77 (diff)
downloadmailman-03d01d66436661ef7d1e6a80401a6ed232d02718.tar.gz
mailman-03d01d66436661ef7d1e6a80401a6ed232d02718.tar.zst
mailman-03d01d66436661ef7d1e6a80401a6ed232d02718.zip
Diffstat (limited to 'mailman/app/replybot.py')
-rw-r--r--mailman/app/replybot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mailman/app/replybot.py b/mailman/app/replybot.py
index 394a93aaa..252b1b15a 100644
--- a/mailman/app/replybot.py
+++ b/mailman/app/replybot.py
@@ -29,9 +29,9 @@ __all__ = [
import logging
import datetime
+from mailman import Defaults
from mailman import Utils
from mailman import i18n
-from mailman.config import config
log = logging.getLogger('mailman.vette')
@@ -48,7 +48,7 @@ def autorespond_to_sender(mlist, sender, lang=None):
"""
if lang is None:
lang = mlist.preferred_language
- if config.MAX_AUTORESPONSES_PER_DAY == 0:
+ if Defaults.MAX_AUTORESPONSES_PER_DAY == 0:
# Unlimited.
return True
today = datetime.date.today()
@@ -64,7 +64,7 @@ def autorespond_to_sender(mlist, sender, lang=None):
# them of this fact, so there's nothing more to do.
log.info('-request/hold autoresponse discarded for: %s', sender)
return False
- if count >= config.MAX_AUTORESPONSES_PER_DAY:
+ if count >= Defaults.MAX_AUTORESPONSES_PER_DAY:
log.info('-request/hold autoresponse limit hit for: %s', sender)
mlist.hold_and_cmd_autoresponses[sender] = (today, -1)
# Send this notification message instead.