Skip to content

Commit f626d97

Browse files
committed
update
1 parent fc7c09c commit f626d97

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Mailman/OldStyleMemberships.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from Mailman import Utils
3131
from Mailman import Errors
3232
from Mailman import MemberAdaptor
33+
from Mailman import Autoresponder
3334

3435
ISREGULAR = 1
3536
ISDIGEST = 2
@@ -41,7 +42,7 @@
4142
# Actually, fix /all/ errors
4243

4344

44-
class OldStyleMemberships(MemberAdaptor.MemberAdaptor):
45+
class OldStyleMemberships(MemberAdaptor.MemberAdaptor, Autoresponder.Autoresponder):
4546
def __init__(self, mlist):
4647
self.__mlist = mlist
4748
self.archive = mm_cfg.DEFAULT_ARCHIVE # Initialize archive attribute
@@ -52,10 +53,8 @@ def __init__(self, mlist):
5253
self.digest_is_default = mm_cfg.DEFAULT_DIGEST_IS_DEFAULT # Initialize digest_is_default attribute
5354
self.mime_is_default_digest = mm_cfg.DEFAULT_MIME_IS_DEFAULT_DIGEST # Initialize mime_is_default_digest attribute
5455
self._pending = {} # Initialize _pending dictionary for pending operations
55-
self.autoresponse_graceperiod = 90 # days, default from Autoresponder class
56-
self.autorespond_admin = mm_cfg.DEFAULT_AUTORESPOND_ADMIN # Initialize autorespond_admin attribute
57-
self.autorespond_requests = mm_cfg.DEFAULT_AUTORESPOND_REQUESTS # Initialize autorespond_requests attribute
58-
self.autorespond_postings = mm_cfg.DEFAULT_AUTORESPOND_POSTINGS # Initialize autorespond_postings attribute
56+
# Initialize Autoresponder attributes
57+
self.InitVars()
5958

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

0 commit comments

Comments
 (0)