mimetools.Message.__setitem__

Message.__setitem__(name, value)[source]

Set the value of a header.

Note: This is not a perfect inversion of __getitem__, because any changed headers get stuck at the end of the raw-headers list rather than where the altered header was.