sugarcrm/sugarcrm_dev — pull request #75 by Cosmologist (2012-01-24 09:25:56+00:00)
Title: Bug when extracting charset from the http-headers

I had some problems while viewing incoming letters in module Emails - instead of the letter text I could see only the inscription "This message has no content".

The bug was that the charset in the mail header was put in double quotes:
Content-Type: text/html; charset="utf-8"
instead
Content-Type: text/html; charset=utf-8

Sugarcrm didn't understand that charset "utf-8" is indeed utf-8 and tried to convert the letter with the iconv.
Iconv didn’t know about charset "utf-8" either and returned empty line.

This patch lets function InboundEmail::decodeHeader consider the fact that charset can be put in double quotes.