Fix detection of MIME type in message_parse()
authorJean-Baptiste Quenot <jbq@cmlid.fr>
Wed, 28 May 2014 13:45:29 +0000 (15:45 +0200)
committerJean-Baptiste Quenot <jbq@cmlid.fr>
Mon, 2 Jun 2014 09:48:30 +0000 (11:48 +0200)
commit310ecb0d60123094bdc1da6d7915e71749a1e480
tree13794569f86d2477f539efeaa289a131dd499b36
parent41c5ceb8ebb95c1b4e98d8dd1f12b8e547a24b1d
Fix detection of MIME type in message_parse()

Be careful, content-type may contain tricky content like in the
following example so test the MIME type with startswith()

Content-Type: multipart/related;
  boundary="_004_3f1e4da175f349248b8d43cdeb9866f1AMSPR06MB343eurprd06pro_";
  type="text/html"
addons/mail/mail_thread.py