User:RokerHRO/MIME-Type

decision matrix for mime types:


 * Input:
 * (nullable) strings for: text_plain and text_html
 * several "attachments", some might be "inline", some "real" attachments.
 * attachment_type = has_inline + 2*has_non_inline.
 * d = text_plain + 2*text_html + 4*attachment_type.
 * so d = 0…15.


 * m/rel :=
 * m/mix :=
 * m/a :=
 * inline := "attachments" with Content-Disposion:inline or with name starting with
 * att := all other "attachments"