rjbs / Email-MIME-ContentType

perl library for parsing content-type headers
5 stars 3 forks source link

Add new functions build_content_type() and build_content_disposition() #11

Closed pali closed 4 years ago

pali commented 7 years ago

These functions compose Content-Type and Content-Disposition headers.

Non-ASCII attributes are encoded to UTF-8 and too long (> 78 bytes) attributes are split, both according to RFC 2231.

For compatibility reasons, ASCII version of too long or non-ASCII attribute is also present, but is truncated and encoded to ASCII via Text::Unidecode module.

Fixes #2

dxdc commented 6 years ago

@rjbs ... any chance these could be reviewed and/or merged into a new release? :) let me know if I can help.

pali commented 6 years ago

@rjbs ping, can you review these changes?

pali commented 4 years ago

@rjbs: Are there any issues in this PR? If not could it be merged? Because more people are waiting for this new functionality.

rjbs commented 4 years ago

Thanks, applied. I will add a commit to normalize the indenting to match existing code.