summaryrefslogtreecommitdiff
path: root/Mailman/Queue/OutgoingRunner.py
diff options
context:
space:
mode:
authorbwarsaw2001-11-20 17:10:23 +0000
committerbwarsaw2001-11-20 17:10:23 +0000
commit505c983ef6bf05bccf66b34d9f6bc8973fc651ee (patch)
treef6e7a1fd974f441046a5657a8fb903f3ab05fa10 /Mailman/Queue/OutgoingRunner.py
parentba11de3bf132c0059de066b2e6b3c0c7a95dfc0b (diff)
downloadmailman-505c983ef6bf05bccf66b34d9f6bc8973fc651ee.tar.gz
mailman-505c983ef6bf05bccf66b34d9f6bc8973fc651ee.tar.zst
mailman-505c983ef6bf05bccf66b34d9f6bc8973fc651ee.zip
Diffstat (limited to 'Mailman/Queue/OutgoingRunner.py')
-rw-r--r--Mailman/Queue/OutgoingRunner.py7
1 files changed, 7 insertions, 0 deletions
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