------------------------------------------------------------ revno: 1202 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Mon 2011-12-12 17:30:54 -0800 message: Fixed an erroneous seek in the Mailman.Mailbox.Mailbox.AppendMessage method that could cause a corrupt mailbox for files opened 'w+'. Bug #901957. modified: Mailman/Mailbox.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/Mailbox.py' --- Mailman/Mailbox.py 2009-08-01 23:12:35 +0000 +++ Mailman/Mailbox.py 2011-12-13 01:30:54 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2011 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 @@ -12,7 +12,8 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +# USA. """Extend mailbox.UnixMailbox. """ @@ -63,7 +64,7 @@ if self.fp.read(1) <> '\n': self.fp.write('\n') # Seek to the last char of the mailbox - self.fp.seek(1, 2) + self.fp.seek(0, 2) # Create a Generator instance to write the message to the file g = Generator(self.fp) g.flatten(msg, unixfrom=True) === modified file 'NEWS' --- NEWS 2011-11-30 00:47:02 +0000 +++ NEWS 2011-12-13 01:30:54 +0000 @@ -129,6 +129,10 @@ Bug Fixes and other patches + - Fixed an erroneous seek in the Mailman.Mailbox.Mailbox.AppendMessage + method that could cause a corrupt mailbox for files opened 'w+'. + Bug #901957. + - A held message with a null sender caused a crash in the admindb interface. This is fixed by changing the sender to <missing>. Bug #897103.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org