package mrmime
Module Mrmime.HeaderSource
Type of the header.
Pretty-printer of pp.
assoc field_name header returns all values associated to field_name (several can exist into a header). It returns order, value and location if it comes from a source.
remove_assoc field_name t removes all values associated to field_name.
concat t0 t1 concats t0 with t1 - any field-name existing in both are not deleted/replaced.
exists field_name t is true if field_name exists in t.
add field_name (w, v) t adds a new field-name with value v. add does not replace field_name if it already exists into t.
add_unless_exists field_name (w, v) t is a collection of header fields that is the same as t if t already includes field_name, and otherwise is equivalent to add field_name (w, v) t.
replace field_name (w, v) t replaces existing field-name field_name in t by the new value v. If field_name does not exist, it adds it.
of_list l returns a header from the list l (without location).
content_type header returns Content_type.t of the given header. If it does not exist, it returns Content_type.default.
content_encoding header returns Content_encoding.t of the given header. If it does not exist, it returns Content_encoding.default.
message_id header returns a MessageID.t if it exists. Otherwise it returns None.