aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Errors.py
diff options
context:
space:
mode:
authorbwarsaw <>2003-12-01 00:35:32 +0000
committerbwarsaw <>2003-12-01 00:35:32 +0000
commit2b0b7fa0c87ce09d0d6722fec6ac1aacb0f647b9 (patch)
treee04bd2a960f8e897c2198b1d539133a2063c767e /Mailman/Errors.py
parentda52accf7a239987af42a49ef926d44322b65cd6 (diff)
downloadmailman2-2b0b7fa0c87ce09d0d6722fec6ac1aacb0f647b9.tar.gz
mailman2-2b0b7fa0c87ce09d0d6722fec6ac1aacb0f647b9.tar.xz
mailman2-2b0b7fa0c87ce09d0d6722fec6ac1aacb0f647b9.zip
RejectMessage.__init__(): Since the notice message is put into the body of the
rejection message, make sure it ends with at least two newlines.
Diffstat (limited to '')
-rw-r--r--Mailman/Errors.py6
1 files changed, 6 insertions, 0 deletions
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):