Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1:/tmp/cvs-serv8590/Mailman

Modified Files:
      Tag: Release_2_1-maint
        Errors.py 
Log Message:
RejectMessage.__init__(): Since the notice message is put into the body of the
rejection message, make sure it ends with at least two newlines.


Index: Errors.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Errors.py,v
retrieving revision 2.10.2.1
retrieving revision 2.10.2.2
diff -u -d -r2.10.2.1 -r2.10.2.2
--- Errors.py   31 Mar 2003 21:49:35 -0000      2.10.2.1
+++ Errors.py   1 Dec 2003 00:35:32 -0000       2.10.2.2
@@ -141,6 +141,12 @@
     def __init__(self, notice=None):
         if notice is None:
             notice = _('Your message was rejected')
+        if notice.endswith('\n\n'):
+            pass
+        elif notice.endswith('\n'):
+            notice += '\n'
+        else:
+            notice += '\n\n'
         self.__notice = notice
 
     def notice(self):



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

Reply via email to