'Return a list of values for the given header.
Arguments:
- contents: message itself
- name: name of the header to be searched
Returns: list of header values or empty list if no such header was found.'

def getmessageheaderlist(self, content, name):

    self.ui.debug('', ('getmessageheaderlist:    called    to    get    %s' % name))
    eoh = self.__find_eoh(content)
    self.ui.debug('', ('getmessageheaderlist:    eoh    =    %d' % eoh))
    headers = content[0:eoh]
    self.ui.debug('', ('getmessageheaderlist:    headers    =    %s' % repr(headers)))
    return re.findall(('^%s:(.*)$' % name), headers, flags=(re.MULTILINE | re.IGNORECASE))
