From 158c370e8443878b1fd4a6cea63613c45045346b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Fri, 4 Apr 2014 14:00:56 +0200 Subject: [PATCH] =?utf8?q?encodeQuopriEmail=20et=20encodeMailHeader=20en?= =?utf8?q?=20s=C3=A9cu=20public.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.py b/utils.py index 6261982..024c975 100755 --- a/utils.py +++ b/utils.py @@ -261,10 +261,12 @@ def getAdapterByInterface(ob, dotted_name, default=_marker) : else : return default +security.declarePublic('encodeQuopriEmail') def encodeQuopriEmail(name, email) : qpName = encodestring(name).replace('=\n', '') return '''"=?utf-8?q?%s?=" <%s>''' % (qpName, email) +security.declarePublic('encodeMailHeader') def encodeMailHeader(content) : s = encodestring(content).replace('=\n', '') s = s.replace('_', '=5F') -- 2.20.1