From ba8b044b21c08e5fb57d0a6935b8be1d817df9bd Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 30 Nov 1999 23:09:45 +0000 Subject: Get DELIVERY_MODULE from mm_cfg.py. Makes for easier customization. --- Mailman/Handlers/HandlerAPI.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Mailman/Handlers/HandlerAPI.py') diff --git a/Mailman/Handlers/HandlerAPI.py b/Mailman/Handlers/HandlerAPI.py index f51e2e1f6..02b6fee41 100644 --- a/Mailman/Handlers/HandlerAPI.py +++ b/Mailman/Handlers/HandlerAPI.py @@ -16,6 +16,8 @@ """Contains all the common functionality for the msg handler API.""" +from Mailman import mm_cfg + class HandlerError(Exception): """Base class for all handler errors""" pass @@ -26,13 +28,6 @@ class MessageHeld(HandlerError): pass -# Choose either Sendmail or SMTPDirect as your message delivery module, or -# edit the pipeline variables if you want to use a different one for delivery -# to the lists and delivery to a single recipient. -DELIVERY_MODULE = 'Sendmail' -#DELIVERY_MODULE = 'SMTPDirect' - - # for messages that arrive from the outside, to be delivered to all mailing # list subscribers @@ -47,7 +42,7 @@ def DeliverToList(mlist, msg): 'ToUsenet', 'CalcRecips', 'Decorate', - DELIVERY_MODULE, + mm_cfg.DELIVERY_MODULE, 'Acknowledge', 'AfterDelivery', ] @@ -66,7 +61,7 @@ def DeliverToList(mlist, msg): # None? def DeliverToUser(mlist, msg): pipeline = ['CookHeaders', - DELIVERY_MODULE, + mm_cfg.DELIVERY_MODULE, ] msg.fastrack = 1 for modname in pipeline: -- cgit v1.2.3-70-g09d2