Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_mimeDecode::_decodeBody ( input,
encoding = '7bit',
charset = '' 
)

Given a body string and an encoding type, this function will decode and return it.

Parameters:
stringInput body to decode
stringEncoding type to use.
Returns:
string Decoded body private

Definition at line 613 of file mimeDecode.php.

References _fromCharset(), and _quotedPrintableDecode().

Referenced by _decode().

    {
        switch (strtolower($encoding)) {
            case '7bit':
                return $this->_fromCharset($charset, $input);;
                break;

            case '8bit':
                return $this->_fromCharset($charset, $input);
                break;

            case 'quoted-printable':
                return $this->_fromCharset($charset, $this->_quotedPrintableDecode($input));
                break;

            case 'base64':
                return $this->_fromCharset($charset, base64_decode($input));
                break;

            default:
                return $input;
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index