rjbs / Email-MIME-ContentType

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

Fails to parse attributes with space after attribute name #4

Closed pmakholm closed 7 years ago

pmakholm commented 7 years ago

I have a mail with the following Content-Type header:

Content-Type: multipart/mixed; boundary = "--=_Next_Part_24_Nov_2016_08.09.21"

(note the space after boundary)

This is parsed as an attribute named boundary (including a space at the end) where my code expects an attribute named boundary.

It is not obvious to me whether RFC 1512 allows a space char between the attribute name af the =, but unfortunately I've seen it happen in the wild.