diff options
| author | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
| commit | 37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6 (patch) | |
| tree | f2225cf1049360298cdaca89b6ca4458b6af3bcc /mailman/pipeline/to_outgoing.py | |
| parent | f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (diff) | |
| download | mailman-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.py | 10 |
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 |
