From d4f91193d3575433412facf75628388a3e82c177 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sun, 29 Feb 2004 03:55:27 +0000 Subject: __handlepost(): sender or subject could be Header instances, so str-ify them before trying to call replace on them for the rejection notice substitution. --- Mailman/ListAdmin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py index 829ce29b..7548f4a9 100644 --- a/Mailman/ListAdmin.py +++ b/Mailman/ListAdmin.py @@ -337,8 +337,8 @@ class ListAdmin: \tSubject: %(subject)s''' % { 'listname' : self.internal_name(), 'rejection': rejection, - 'sender' : sender.replace('%', '%%'), - 'subject' : subject.replace('%', '%%'), + 'sender' : str(sender).replace('%', '%%'), + 'subject' : str(subject).replace('%', '%%'), } if comment: note += '\n\tReason: ' + comment.replace('%', '%%') -- cgit v1.2.3