from types import StringType
from random import randrange
from Acquisition import aq_base
+from quopri import encodestring
from AccessControl.PermissionRole import rolesForPermissionOn
from AccessControl import ModuleSecurityInfo
from AccessControl import getSecurityManager
else :
return default
+def encodeQuopriEmail(name, email) :
+ qpName = encodestring(name).replace('=\n', '')
+ return '''"=?utf-8?q?%s?=" <%s>''' % (qpName, email)
+
+
def _sudo(func, userid=None) :
"""
execute func or any callable object