/** * Method used to decode the body of a MIME encoded message. * * @access public * @param string $input The full body of the message * @param string $encoding The encoding used in the message * @return string The decoded message body */ function decodeBody($input, $encoding = '7bit') { switch ($encoding) { case '7bit': return $input; break; case 'quoted-printable': return Mime_Helper::_quotedPrintableDecode($input); break; case 'base64': return base64_decode($input); break; default: return $input; } }