------------------------------------------------------------
revno: 1207
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.2
timestamp: Fri 2012-02-17 18:19:56 -0800
message:
  Subscription disabled warnings are now sent without a Precedence:
  header.  Bug #808821.
modified:
  Mailman/Bouncer.py
  Mailman/Message.py
  NEWS


--
lp:mailman/2.2
https://code.launchpad.net/~mailman-coders/mailman/2.2

Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Bouncer.py'
--- Mailman/Bouncer.py	2010-07-11 18:21:41 +0000
+++ Mailman/Bouncer.py	2012-02-18 02:19:56 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2010 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -307,7 +307,8 @@
         # set the Subject this way.
         del msg['subject']
         msg['Subject'] = 'confirm ' + info.cookie
-        msg.send(self)
+        # Send without Precedence: bulk.  Bug #808821.
+        msg.send(self, noprecedence=True)
         info.noticesleft -= 1
         info.lastnotice = time.localtime()[:3]
         # In case the MemberAdaptor stores bounce info externally to

=== modified file 'Mailman/Message.py'
--- Mailman/Message.py	2011-01-14 00:57:05 +0000
+++ Mailman/Message.py	2012-02-18 02:19:56 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2011 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2012 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -268,7 +268,7 @@
             self['To'] = recip
             self.recips = [recip]
 
-    def send(self, mlist, **_kws):
+    def send(self, mlist, noprecedence=False, **_kws):
         """Sends the message by enqueuing it to the `virgin' queue.
 
         This is used for all internally crafted messages.
@@ -284,7 +284,7 @@
         # UserNotifications are typically for admin messages, and for messages
         # other than list explosions.  Send these out as Precedence: bulk, but
         # don't override an existing Precedence: header.
-        if not self.has_key('precedence'):
+        if not (self.has_key('precedence') or noprecedence):
             self['Precedence'] = 'bulk'
         self._enqueue(mlist, **_kws)
 

=== modified file 'NEWS'
--- NEWS	2012-02-05 21:42:25 +0000
+++ NEWS	2012-02-18 02:19:56 +0000
@@ -134,6 +134,9 @@
 
   Bug Fixes and other patches
 
+    - Subscription disabled warnings are now sent without a Precedence:
+      header.  Bug #808821.
+
     - Backported 2.2 branch fix for a problem in SpamDetect.py that could
       cause header_filter_rules to fail to match RFC 2047 encoded headers.
 

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to