rjbs / Email-MIME-ContentType

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

Fix WSP folding before attribute values #3

Closed Schuk closed 9 years ago

Schuk commented 10 years ago

Some mailservers do a line folding within the Content-Type parameters (see below or the tests).

For example:

boundary= "=_0c5bb6a1"

RFC2822 mentions that a folding after higher-level syntactic breaks is allowed. The "=" within attributes seems to be interpreted as such as well.

The fix removes optional whitespaces after the equal sign.

rjbs commented 9 years ago

Thanks, merged!