'Construct and return a list of the basic and extended fields for a
single-part message.  The list suitable to be encoded into a BODY or
BODYSTRUCTURE response.'

def encode(self, extended):

    result = self._basicFields()
    if extended:
        result.extend(self._extended())
    return result
