Function
email.Header.make_header

Signature

make_header(decoded_seq, maxlinelen=None, header_name=None, continuation_ws=' ')

Documentation String

Create a Header from a sequence of pairs as returned by decode_header()

decode_header() takes a header value string and returns a sequence of pairs of the format (decoded_string, charset) where charset is the string name of the character set.

This function takes one of those sequence of pairs and returns a Header instance. Optional maxlinelen, header_name, and continuation_ws are as in the Header constructor.