diff options
Diffstat (limited to 'Mailman/Handlers/HandlerAPI.py')
| -rw-r--r-- | Mailman/Handlers/HandlerAPI.py | 13 |
1 files changed, 4 insertions, 9 deletions
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: |
