Skip to content

Commit 0d32a9a

Browse files
committed
update
1 parent e0f8821 commit 0d32a9a

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Mailman/OldStyleMemberships.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(self, mlist):
5252
self.digest_is_default = mm_cfg.DEFAULT_DIGEST_IS_DEFAULT # Initialize digest_is_default attribute
5353
self.mime_is_default_digest = mm_cfg.DEFAULT_MIME_IS_DEFAULT_DIGEST # Initialize mime_is_default_digest attribute
5454
self._pending = {} # Initialize _pending dictionary for pending operations
55+
self.autoresponse_graceperiod = 90 # days, default from Autoresponder class
5556

5657
def GetMailmanHeader(self):
5758
"""Return the standard Mailman header HTML for this list."""

Mailman/Queue/CommandRunner.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,11 @@ def do_command(self, cmd, args=None):
186186
return BADCMD
187187
if self.subjcmdretried < 1:
188188
self.subjcmdretried += 1
189-
if re.search(r'^.*:.+', cmd, re.IGNORECASE):
190-
cmd = re.sub(r'.*:', '', cmd).lower()
191-
return self.do_command(cmd, args)
189+
# Handle both "Re:" and "Re:" without space
190+
if re.search(r'^.*:[^\s]*', cmd, re.IGNORECASE):
191+
cmd = re.sub(r'.*:', '', cmd).strip().lower()
192+
if cmd: # Only retry if we have a command after removing prefix
193+
return self.do_command(cmd, args)
192194
if self.subjcmdretried < 2 and args:
193195
self.subjcmdretried += 1
194196
cmd = args.pop(0).lower()

0 commit comments

Comments
 (0)