I recently got several (malspam) messages with broken Content-Type headers like
Content-Type: text/Here comes some crap
GMime reports the content type as text/Here, but does not report the header as being invalid. Using the attached patch detect-broken-content-type.patch, the warning is emitted as expected (I guess there is a plethora of other, yet undetected, cases, though…).