\Horde_Mime

Provide methods for dealing with MIME encoding (RFC 2045-2049);

Summary

Methods
Properties
Constants
is8bit()
encode()
decode()
generateMessageId()
uudecode()
encodeParam()
decodeParam()
mimeIdArithmetic()
isChild()
quotedPrintableEncode()
$decodeWindows1252
$brokenRFC2231
EOL
MIME_PARAM_QUOTED
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

EOL

EOL

The RFC defined EOL string.

MIME_PARAM_QUOTED

MIME_PARAM_QUOTED

Properties

$decodeWindows1252

$decodeWindows1252 : boolean

Use windows-1252 charset when decoding ISO-8859-1 data? HTML 5 requires this behavior, so it is the default.

Type

boolean

$brokenRFC2231

$brokenRFC2231 : 

Type

Methods

is8bit()

is8bit(string  $string, string  $charset = null) : boolean

Determines if a string contains 8-bit (non US-ASCII) characters.

Parameters

string $string

The string to check.

string $charset

The charset of the string. Defaults to US-ASCII. (@deprecated)

Returns

boolean —

True if string contains non 7-bit characters.

encode()

encode(string  $text, string  $charset = 'UTF-8') : string

MIME encodes a string (RFC 2047).

Parameters

string $text

The text to encode (UTF-8).

string $charset

The character set to encode to.

Returns

string —

The MIME encoded string (US-ASCII).

decode()

decode(string  $string) : string

Decodes a MIME encoded (RFC 2047) string.

Parameters

string $string

The MIME encoded text.

Returns

string —

The decoded text.

generateMessageId()

generateMessageId() 

uudecode()

uudecode(  $input) 

Parameters

$input

encodeParam()

encodeParam(  $name,   $val, array  $opts = array()) 

Parameters

$name
$val
array $opts

decodeParam()

decodeParam(  $type,   $data) 

Parameters

$type
$data

mimeIdArithmetic()

mimeIdArithmetic(  $id,   $action,   $options = array()) 

Parameters

$id
$action
$options

isChild()

isChild(  $base,   $id) 

Parameters

$base
$id

quotedPrintableEncode()

quotedPrintableEncode(  $text,   $eol = self::EOL,   $wrap = 76) 

Parameters

$text
$eol
$wrap