summaryrefslogtreecommitdiff
path: root/src/mailman/mta/bulk.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-11-03 22:29:18 -0500
committerBarry Warsaw2009-11-03 22:29:18 -0500
commitd93c9f447482e14e0385854b661200553db661a1 (patch)
treece84655ee4fe3d39af99f4e37b0ae7228d0bf5f6 /src/mailman/mta/bulk.py
parent83773bbce02e9083f3f427537b9e5bf135f52cd9 (diff)
downloadmailman-d93c9f447482e14e0385854b661200553db661a1.tar.gz
mailman-d93c9f447482e14e0385854b661200553db661a1.tar.zst
mailman-d93c9f447482e14e0385854b661200553db661a1.zip
Diffstat (limited to 'src/mailman/mta/bulk.py')
-rw-r--r--src/mailman/mta/bulk.py19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/mailman/mta/bulk.py b/src/mailman/mta/bulk.py
index 3247331d3..046f5cc2d 100644
--- a/src/mailman/mta/bulk.py
+++ b/src/mailman/mta/bulk.py
@@ -102,25 +102,10 @@ class BulkDelivery(BaseDelivery):
def deliver(self, mlist, msg, msgdata):
"""See `IMailTransportAgentDelivery`."""
- recipients = msgdata.get('recipients')
- if not recipients:
- # Could be None, could be an empty sequence.
- return
- # Blow away any existing Sender and Errors-To headers and substitute
- # our own. Our interpretation of RFC 5322 $3.6.2 is that Mailman is
- # the "agent responsible for actual transmission of the message"
- # because what we send to list members is different than what the
- # original author sent. RFC 2076 says Errors-To is "non-standard,
- # discouraged" but we include it for historical purposes.
- sender = self._get_sender(mlist, msg, msgdata)
- del msg['sender']
- del msg['errors-to']
- msg['Sender'] = sender
- msg['Errors-To'] = sender
refused = {}
- for recipients in self.chunkify(msgdata['recipients']):
+ for recipients in self.chunkify(msgdata.get('recipients', set())):
chunk_refused = self._deliver_to_recipients(
- mlist, msg, msgdata, sender, recipients)
+ mlist, msg, msgdata, recipients)
refused.update(chunk_refused)
return refused