mimetools.Message.getrawheader

Message.getrawheader(name)[source]

A higher-level interface to getfirstmatchingheader().

Return a string containing the literal text of the header but with the keyword stripped. All leading, trailing and embedded whitespace is kept in the string, however. Return None if the header does not occur.