diff options
| author | Barry Warsaw | 2009-11-27 18:29:16 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-27 18:29:16 -0500 |
| commit | 0828303112c2de667520e85cbc87de72fa5266fc (patch) | |
| tree | 7a286505526c84b4b2c82dd5aa25abee783b73f2 /src/mailman/mta/deliver.py | |
| parent | e3b5948cae9d2a6ecf87574c8d42b24b544419af (diff) | |
| download | mailman-0828303112c2de667520e85cbc87de72fa5266fc.tar.gz mailman-0828303112c2de667520e85cbc87de72fa5266fc.tar.zst mailman-0828303112c2de667520e85cbc87de72fa5266fc.zip | |
Diffstat (limited to 'src/mailman/mta/deliver.py')
| -rw-r--r-- | src/mailman/mta/deliver.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mailman/mta/deliver.py b/src/mailman/mta/deliver.py index 85bb09991..a3a32a0ff 100644 --- a/src/mailman/mta/deliver.py +++ b/src/mailman/mta/deliver.py @@ -75,9 +75,6 @@ def deliver(mlist, msg, msgdata): if not recipients: # Could be None, could be an empty sequence. return - # Calculate whether we should VERP this message or not. The results of - # this set the 'verp' key in the message metadata. - _calculate_verp(mlist, msg, msgdata) # Which delivery agent should we use? Several situations can cause us to # use individual delivery. If not specified, use bulk delivery. See the # to-outgoing handler for when the 'verp' key is set in the metadata. @@ -158,33 +155,3 @@ def deliver(mlist, msg, msgdata): # Return the results if temporary_failures or permanent_failures: raise SomeRecipientsFailed(temporary_failures, permanent_failures) - - - -def _calculate_verp(mlist, msg, msgdata): - """Calculate whether this message should be VERP'd or not. - - This function works by side-effect. If the message should be VERP'd, then - the 'verp' key in msgdata is set to True, otherwise it is set to False. - """ - if 'verp' in msgdata: - # Honor existing settings. - return - # If personalization is enabled for this list and we've configured Mailman - # to always VERP personalized deliveries, then yes we VERP it. Also, if - # personalization is /not/ enabled, but verp_delivery_interval is set (and - # we've hit this interval), then again, this message should be - # VERP'd. Otherwise, no. - interval = int(config.mta.verp_delivery_interval) - if mlist.personalize <> Personalization.none: - if as_boolean(config.mta.verp_personalized_deliveries): - msgdata['verp'] = True - elif interval == 0: - # Never VERP. - msgdata['verp'] = False - elif interval == 1: - # VERP every time. - msgdata['verp'] = True - else: - # VERP every 'interval' number of times. - msgdata['verp'] = (int(mlist.post_id) % interval == 0) |
