Class Horde_Mime_Headers
This class contains functions related to handling the headers of MIME data.
Copyright 2002-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
- Horde_Mime_Headers implements Serializable
Category: Horde
License: LGPL 2.1
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Mime/Headers.php
public
array
|
|
public
string
|
|
public
|
#
addReceivedHeader( array $options = array() )
Generate the 'Received' header for the Web browser->Horde hop (attempts to conform to guidelines in RFC 5321 [4.4]). |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
#
replaceHeader( string $header, string $value, array $options = array() )
Replace a value of a header. |
public
boolean
|
|
public
string
|
|
public
mixed
|
#
getValue( string $header, integer $type =
Attempt to return the value for a given header. The following header fields can only have 1 entry, so if duplicate entries exist, the first value will be used: * To, From, Cc, Bcc, Date, Sender, Reply-to, Message-ID, In-Reply-To, References, Subject (RFC 2822 [3.6]) * All List Headers (RFC 2369 [3]) The values are not MIME encoded. |
public static
array
|
|
public
array
|
#
singleFields( boolean $list = true )
Returns the list of RFC defined header fields that can only contain a single value. |
public static
array
|
#
mimeParamFields( )
Returns the list of RFC defined MIME header fields that may contain parameter info. |
public static
array
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
array
|
|
public static
|
#
parseHeaders( string $text )
Builds a Horde_Mime_Headers object from header text. This function can be called statically: $headers = Horde_Mime_Headers::parseHeaders(). |
public static
string
|
#
sanityCheck( string $header, string $data, array $opts = array() )
Perform sanity checking on a raw header (e.g. handle 8-bit characters). This function can be called statically: $headers = Horde_Mime_Headers::sanityCheck(). |
public
string
|
|
public
|
integer |
VERSION
|
#
1
|
integer |
VALUE_STRING
|
#
1
|
integer |
VALUE_BASE
|
#
2
|
integer |
VALUE_PARAMS
|
#
3
|
public static
string
|
$defaultCharset
The default charset to use when parsing text parts with no charset information. |
#
'us-ascii'
|