X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/ba3300649023e250c9279f7833a5dd08a19c58a5..158c370e8443878b1fd4a6cea63613c45045346b:/utils.py 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')