mikel/mail — pull request #447 by ledermann (2012-11-04 08:53:11+00:00)
Title: Fixed handling content_type with superfluous spaces

Handling mails containing a content-type with superflous whitespaces around the equal sign doesn't work, the charset is not being recognized. Example:

Mail.new('content-type: text/plain; charset = "iso-8859-1"').charset
=> nil

If there are no whitespaces, it works fine:

Mail.new('content-type: text/plain; charset="iso-8859-1"').charset
=> "iso-8859-1"

I have fixed this issue and added a spec. It would be nice to merge this in.