title: Obtaining charset of IMAP message body (PHP-IMAP extension)
body: <p>Neither <code>imap_headerinfo</code> nor <code>imap_fetchstructure</code> include the blatantly apparent <code>Content-type</code> header in the results [obviously, I'd expect this to be found under <code>imap_headerinfo</code>]. What function can I utilize to get the raw headers so I can parse that header and convert the message body to UTF-8 accordingly?</p>