From 505c983ef6bf05bccf66b34d9f6bc8973fc651ee Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 20 Nov 2001 17:10:23 +0000 Subject: _dispose(): Support for regular non-personalized VERP delivery. Consults VERP_DELIVERY_INTERVAL to decide whether to set the `verp' metadata key. --- Mailman/Queue/OutgoingRunner.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Mailman/Queue/OutgoingRunner.py b/Mailman/Queue/OutgoingRunner.py index bbf0eca37..ed0808a35 100644 --- a/Mailman/Queue/OutgoingRunner.py +++ b/Mailman/Queue/OutgoingRunner.py @@ -44,6 +44,13 @@ class OutgoingRunner(Runner): self._permfail_counter = 0 def _dispose(self, mlist, msg, msgdata): + # See if we should VERP this message. + if mm_cfg.VERP_DELIVERY_INTERVAL > 0: + if mm_cfg.VERP_DELIVERY_INTERVAL == 1: + # VERP every time + msgdata['verp'] = 1 + elif not int(mlist.post_id) % mm_cfg.VERP_DELIVERY_INTERVAL: + msgdata['verp'] = 1 # Fortunately, we do not need the list lock to do deliveries. handler = mm_cfg.DELIVERY_MODULE modname = 'Mailman.Handlers.' + handler -- cgit v1.3.1