MIME Decoding of a string
| From: | Jeroen Geusebroek | Date: | Mon, 14 May 2001 17:44:04 +0000 |
| Subject: | MIME Decoding of a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52719@lists.php.net to get a copy of this message | ||
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