'Encode each sub-message and added the additional I{multipart} fields.'

def encode(self, extended):

    result = [_getMessageStructure(p).encode(extended) for p in self._getParts()]
    result.append(self.subtype)
    if extended:
        result.extend(self._extended())
    return result
