'Read the metadata values from a file object.'

def read_file(self, fileob):

    msg = message_from_file(fileob)
    self._fields[u'Metadata-Version'] = msg[u'metadata-version']
    for field in _ALL_FIELDS:
        if (field not in msg):
            continue
        if (field in _LISTFIELDS):
            values = msg.get_all(field)
            if ((field in _LISTTUPLEFIELDS) and (values is not None)):
                values = [tuple(value.split(u',')) for value in values]
            self.set(field, values)
        else:
            value = msg[field]
            if ((value is not None) and (value != u'UNKNOWN')):
                self.set(field, value)
    self.set_metadata_version()
