From 2b0b7fa0c87ce09d0d6722fec6ac1aacb0f647b9 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Mon, 1 Dec 2003 00:35:32 +0000 Subject: RejectMessage.__init__(): Since the notice message is put into the body of the rejection message, make sure it ends with at least two newlines. --- Mailman/Errors.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mailman/Errors.py b/Mailman/Errors.py index a2329729..366030d4 100644 --- a/Mailman/Errors.py +++ b/Mailman/Errors.py @@ -141,6 +141,12 @@ class RejectMessage(HandlerError): 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): -- cgit v1.2.3