[PHP] MIME Decoding of a string
Hi Guys, I've been struggeling with this for a while but can't seem to find any code that will decode a string MIME encoded. I found one class but it also didn't do what i want. Coding this myself is probably WAY above my head ;P ie. i have this string: --=_NextPart_000_002D_01C0DBE5.49F28C40 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable yadayadayada = yadayadayada This is the body of the message --=_NextPart_000_002D_01C0DBE5.49F28C40-- The string is the body of an email message thats taken out of a database. If it's also necassary to include the headers of the message, that's no problem since i also store that in the database. The reason i need this, is because i am creating a message archive similair to Geocrawler and MARC and it's quite irratating to not be able to decode messages when they are mime encoded. Thanks for the advice, Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MIME Decoding of a string
"Jeroen Geusebroek" <[EMAIL PROTECTED]> wrote: > The reason i need this, is because i am creating a message archive similair > to Geocrawler and MARC and it's quite irratating to not be able to decode > messages > when they are mime encoded. Take a look at my project: http://www.webgadgets.com/phpost It's a webmail app but it includes code to fully parse MIME messages, including quoted printable encoding, etc. It uses no third party libraries or classes, only functions that are native to PHP. I am about to release 1.06 (tonight likely) which greatly improves the MIME handling (seems to handle MIME better than Eudora or Outlook now, especially nested multipart sections). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MIME Decoding of a string
Mark Wrote: >Take a look at my project: http://www.webgadgets.com/phpost >It's a webmail app but it includes code to fully parse MIME messages, >including quoted printable encoding, etc. It uses no third party >libraries or classes, only functions that are native to PHP. >I am about to release 1.06 (tonight likely) which greatly improves the >MIME handling (seems to handle MIME better than Eudora or Outlook now, >especially nested multipart sections). Sounds good ;) I saw you release your version 2 days ago on freshmeat and when i tried it, it didn't handle mime that great yet. Hopefully the new version will be better! Thanks for contributing to the open source community. (My project will also be open source, but first it has to be stable ;) Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]