summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-07-09 19:26:36 +0000
committerbwarsaw2002-07-09 19:26:36 +0000
commit39703cb2f146020f906c5ffed110b886ba9efed8 (patch)
treebf03a09e6cb36af75fe6ae1b56817e44eb896bc9
parent7ac490d9d7e3e4964d494b121efaa7af101f490f (diff)
downloadmailman-39703cb2f146020f906c5ffed110b886ba9efed8.tar.gz
mailman-39703cb2f146020f906c5ffed110b886ba9efed8.tar.zst
mailman-39703cb2f146020f906c5ffed110b886ba9efed8.zip
autorespondToSender(): Implement MAX_AUTORESPONSES_PER_DAY = 0 means
no limit.
-rw-r--r--Mailman/MailList.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index d09ec81db..8d0e11c51 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1268,6 +1268,9 @@ bad regexp in bounce_matching_header line: %s
for posting hold notifications, and serves only as a safety value for
mail loops with email 'bots.
"""
+ # No limit
+ if mm_cfg.MAX_AUTORESPONSES_PER_DAY == 0:
+ return 1
today = time.localtime()[:3]
info = self.hold_and_cmd_autoresponses.get(sender)
if info is None or info[0] <> today: