Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6691

Modified Files:
      Tag: Release_2_1-maint
        ListAdmin.py 
Log Message:
__handlepost(): sender or subject could be Header instances, so str-ify them
before trying to call replace on them for the rejection notice substitution.


Index: ListAdmin.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/ListAdmin.py,v
retrieving revision 2.41.2.4
retrieving revision 2.41.2.5
diff -u -d -r2.41.2.4 -r2.41.2.5
--- ListAdmin.py        17 Feb 2004 19:00:28 -0000      2.41.2.4
+++ ListAdmin.py        29 Feb 2004 03:55:27 -0000      2.41.2.5
@@ -337,8 +337,8 @@
 \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('%', '%%')


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

Reply via email to