Why am I getting a parsing exception when the content type is something like "Content-Type: text/html;"?

John Zukowski

Having a trailing semicolon violates the MIME specification. The JavaMail libraries do not compensate for this violation. It is supposed to look like the following:

  content := "Content-Type" ":" type "/" subtype
             *(";" parameter)
  parameter := attribute "=" value