X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/543e3e73e8c99ad643adca3522146ae36a7a24a8..d85cf9e640d2823901d8c98132e08967e52c41b6:/utils.py?ds=sidebyside 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')