From bc15f242a5910584d5f5e6c4667b9a72891b9548 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 29 Nov 2011 16:48:10 -0800 Subject: A held message with a null sender caused a crash in the admindb interface. This is fixed by changing the sender to . Bug #897103. --- Mailman/ListAdmin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 Mailman/ListAdmin.py (limited to 'Mailman') diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py old mode 100644 new mode 100755 index 714b2405..4a188057 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -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 @@ -221,6 +221,8 @@ class ListAdmin: # an additional dictionary of message metadata # msgsubject = msg.get('subject', _('(no subject)')) + if not sender: + sender = _('') data = time.time(), sender, msgsubject, reason, filename, msgdata self.__db[id] = (HELDMSG, data) return id -- cgit v1.2.3