def getBodyStructure(msg, extended=False):
 return _getMessageStructure(msg).encode(extended)

def getBodyStructure ( msg , extended = False ) : return _getMessageStructure ( msg ) . encode ( extended )
rfc 3501 .