From 0e1c2be3e6110ccece3cbd0ebc5bfd0eb76c3aad Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 30 Mar 2008 19:38:18 -0400 Subject: More fixes to get end-to-end delivery basically working. - Add a VirginPipeline for the virgin queue, which is mostly the same as the BuiltInPipeline, so refactor the commonality into a BasePipeline. - Simplify and update bin/dumpdb. - Rename inject() to inject_text() and add inject_message(). Both interfaces will be useful. - When enqueuing and not using _plaintext, use the highest pickle protocol supported. - Fix the archive runner's calculation of whether to clobber the message's Date: header. - Fix the outgoing queue's deliver_after calculation. - Update the virgin queue runner. It doesn't need to inherit from IncomingRunner any more; it can just execute the 'virgin' pipeline. --- mailman/Message.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mailman/Message.py') diff --git a/mailman/Message.py b/mailman/Message.py index 5d20fb897..e822dd0ff 100644 --- a/mailman/Message.py +++ b/mailman/Message.py @@ -248,11 +248,10 @@ class UserNotification(Message): This is used for all internally crafted messages. """ # Since we're crafting the message from whole cloth, let's make sure - # this message has a Message-ID. Yes, the MTA would give us one, but - # this is useful for logging to logs/smtp. + # this message has a Message-ID. if 'message-id' not in self: self['Message-ID'] = email.utils.make_msgid() - # Ditto for Date: which is required by RFC 2822 + # Ditto for Date: as required by RFC 2822. if 'date' not in self: self['Date'] = email.utils.formatdate(localtime=True) # UserNotifications are typically for admin messages, and for messages @@ -271,6 +270,7 @@ class UserNotification(Message): recips=self.recips, nodecorate=True, reduced_list_headers=True, + pipeline='virgin', ) if mlist is not None: enqueue_kws['listname'] = mlist.fqdn_listname @@ -307,4 +307,5 @@ class OwnerNotification(UserNotification): nodecorate=True, reduced_list_headers=True, envsender=self._sender, + pipeline='virgin', **_kws) -- cgit v1.2.3-70-g09d2