diff options
author | bwarsaw <> | 2004-02-29 03:55:27 +0000 |
---|---|---|
committer | bwarsaw <> | 2004-02-29 03:55:27 +0000 |
commit | d4f91193d3575433412facf75628388a3e82c177 (patch) | |
tree | 5c0b969d6b69d940b2a0104b628a5082e9a271e8 /Mailman | |
parent | 8a01c503b91069541513d2cd90318a9967939924 (diff) | |
download | mailman2-d4f91193d3575433412facf75628388a3e82c177.tar.gz mailman2-d4f91193d3575433412facf75628388a3e82c177.tar.xz mailman2-d4f91193d3575433412facf75628388a3e82c177.zip |
__handlepost(): sender or subject could be Header instances, so str-ify them
before trying to call replace on them for the rejection notice substitution.
Diffstat (limited to '')
-rw-r--r-- | Mailman/ListAdmin.py | 4 |
1 files 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('%', '%%') |