diff options
| author | bwarsaw | 2000-02-19 03:44:08 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-02-19 03:44:08 +0000 |
| commit | f73a7872a83651a9de1b33ea80b0bbc228ed51ed (patch) | |
| tree | 85383835ed6d8434a06af4a9ee6047c9ceb995a5 /Mailman/MailList.py | |
| parent | d2629e5926401d9bf7eb5ed94752bea9204d8058 (diff) | |
| download | mailman-f73a7872a83651a9de1b33ea80b0bbc228ed51ed.tar.gz mailman-f73a7872a83651a9de1b33ea80b0bbc228ed51ed.tar.zst mailman-f73a7872a83651a9de1b33ea80b0bbc228ed51ed.zip | |
Mixin the Autoresponder class.
MailList.__init__(): Call Autoresponder.InitVars(). This only
works for new mailing lists.
MailList.GetConfigInfo(): Get the `autoreply' configuration info
from the Autoresponder class.
Diffstat (limited to 'Mailman/MailList.py')
| -rw-r--r-- | Mailman/MailList.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 9d0099653..747b96fe1 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -43,6 +43,7 @@ from Mailman.Digester import Digester from Mailman.SecurityManager import SecurityManager from Mailman.Bouncer import Bouncer from Mailman.GatewayManager import GatewayManager +from Mailman.Autoresponder import Autoresponder from Mailman.Logging.StampedLogger import StampedLogger # other useful classes @@ -59,7 +60,8 @@ from Mailman.Handlers import HandlerAPI # Use mixins here just to avoid having any one chunk be too large. class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, - Archiver, Digester, SecurityManager, Bouncer, GatewayManager): + Archiver, Digester, SecurityManager, Bouncer, GatewayManager, + Autoresponder): def __init__(self, name=None, lock=1): if name and name not in Utils.list_names(): raise Errors.MMUnknownListError, 'list not found: %s' % name @@ -354,6 +356,7 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, Bouncer.InitVars(self) GatewayManager.InitVars(self) HTMLFormatter.InitVars(self) + Autoresponder.InitVars(self) # These need to come near the bottom because they're dependent on # other settings. @@ -366,6 +369,7 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, config_info['digest'] = Digester.GetConfigInfo(self) config_info['archive'] = Archiver.GetConfigInfo(self) config_info['gateway'] = GatewayManager.GetConfigInfo(self) + config_info['autoreply'] = Autoresponder.GetConfigInfo(self) # XXX: Should this text be migrated into the templates dir? config_info['general'] = [ |
