From 43e632911c7d1192afc6bee8329fe3be1d5c84b1 Mon Sep 17 00:00:00 2001 From: bernat Date: Sat, 9 Jun 2007 10:17:15 +0200 Subject: [PATCH] Correction de l'envoi de mot de passe par mail darcs-hash:20070609081715-d1718-51e2660bc7c8c1d2c23a5edde77ff5fc7b623d79.gz --- wiki/mail.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wiki/mail.py b/wiki/mail.py index a6472418..77489bce 100644 --- a/wiki/mail.py +++ b/wiki/mail.py @@ -76,6 +76,13 @@ def sendmail(request, to, subject, text, **kw): charset.body_encoding = QP msg.set_charset(charset) + #### HACK BACKPORT + # work around a bug in python 2.4.3 and above: + msg.set_payload('=') + if msg.as_string().endswith('='): + text = charset.body_encode(text) + #### FIN DU HACK + msg.set_payload(text) # Create message headers