diff options
| author | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
| commit | 1c285f110d8e98597453c6b4b69ea01163033547 (patch) | |
| tree | 00c7ec16711b2073e40f593658f652726a9d4231 /mailman/app/replybot.py | |
| parent | 12513c7d0fc1f5d2a1aabda349637309f6e8300b (diff) | |
| parent | 600ddb503a391d70230d96ee91a631888d11b35a (diff) | |
| download | mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.gz mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.zst mailman-1c285f110d8e98597453c6b4b69ea01163033547.zip | |
Diffstat (limited to 'mailman/app/replybot.py')
| -rw-r--r-- | mailman/app/replybot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mailman/app/replybot.py b/mailman/app/replybot.py index 483f3f3cf..0a8cdd5b7 100644 --- a/mailman/app/replybot.py +++ b/mailman/app/replybot.py @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2007-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -29,9 +29,9 @@ __all__ = [ import logging import datetime +from mailman import Defaults from mailman import Utils from mailman import i18n -from mailman.configuration 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. |
