projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba33006
)
encodeQuopriEmail et encodeMailHeader en sécu public.
author
Benoît Pin
<benoit.pin@gmail.com>
Fri, 4 Apr 2014 12:00:56 +0000
(14:00 +0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Fri, 4 Apr 2014 12:00:56 +0000
(14:00 +0200)
utils.py
patch
|
blob
|
history
diff --git
a/utils.py
b/utils.py
index
6261982
..
024c975
100755
(executable)
--- a/
utils.py
+++ b/
utils.py
@@
-261,10
+261,12
@@
def getAdapterByInterface(ob, dotted_name, default=_marker) :
else :
return default
else :
return default
+security.declarePublic('encodeQuopriEmail')
def encodeQuopriEmail(name, email) :
qpName = encodestring(name).replace('=\n', '')
return '''"=?utf-8?q?%s?=" <%s>''' % (qpName, email)
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')
def encodeMailHeader(content) :
s = encodestring(content).replace('=\n', '')
s = s.replace('_', '=5F')