summaryrefslogtreecommitdiff
path: root/mailman/pipeline/to_outgoing.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-05 00:54:19 -0500
committerBarry Warsaw2009-01-05 00:54:19 -0500
commit37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6 (patch)
treef2225cf1049360298cdaca89b6ca4458b6af3bcc /mailman/pipeline/to_outgoing.py
parentf6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (diff)
downloadmailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.gz
mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.zst
mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.zip
Diffstat (limited to 'mailman/pipeline/to_outgoing.py')
-rw-r--r--mailman/pipeline/to_outgoing.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/mailman/pipeline/to_outgoing.py b/mailman/pipeline/to_outgoing.py
index 7d56686b7..9ff7ab88a 100644
--- a/mailman/pipeline/to_outgoing.py
+++ b/mailman/pipeline/to_outgoing.py
@@ -23,12 +23,14 @@ recipient should just be placed in the out queue directly.
"""
__metaclass__ = type
-__all__ = ['ToOutgoing']
+__all__ = [
+ 'ToOutgoing',
+ ]
+from lazr.config import as_boolean
from zope.interface import implements
-from mailman import Defaults
from mailman.config import config
from mailman.i18n import _
from mailman.interfaces.handler import IHandler
@@ -46,7 +48,7 @@ class ToOutgoing:
def process(self, mlist, msg, msgdata):
"""See `IHandler`."""
- interval = Defaults.VERP_DELIVERY_INTERVAL
+ interval = int(config.mta.verp_delivery_interval)
# Should we VERP this message? If personalization is enabled for this
# list and VERP_PERSONALIZED_DELIVERIES is true, then yes we VERP it.
# Also, if personalization is /not/ enabled, but
@@ -58,7 +60,7 @@ class ToOutgoing:
if 'verp' in msgdata:
pass
elif mlist.personalize <> Personalization.none:
- if Defaults.VERP_PERSONALIZED_DELIVERIES:
+ if as_boolean(config.mta.verp_personalized_deliveries):
msgdata['verp'] = True
elif interval == 0:
# Never VERP