Contains and constructs the headers for a MIME document
Located in /Swift/Message/Headers.php (line 19)
Attributes appended to headers
Cached, pre-built headers
The charset used in the headers
Headers which may contain email addresses, and therefore should take notice when encoding
The encoding format used for the body of the document
If QP or Base64 encoding should be forced
A collection of headers
The language used in the headers (doesn't really matter much)
The line ending used in the headers
A container of references to the headers
Compile the list of headers which have been set and return an ascii string The return value should always be 7-bit ascii and will have been cleaned for header injection If this looks complicated it's probably because it is!! Keeping everything compliant is not easy.
This is RFC 2822 compliant
Build the list of attributes for appending to the given header This is RFC 2231 & 2047 compliant.
A HUGE thanks to Joaquim Homrighausen for heaps of help, advice and testing to get this working rock solid.
Turn on or off forced header encoding
Get the value at a given header
Get the value for a given attribute on a given header
Get the current charset used
Get the header in it's compliant, encoded form
Get the encoding format used in this document
Get the language used in the headers to $lang (e.g. en-us, en-gb, sv etc)
Get the line ending sequence
Just fetch the array containing the headers
Check if a header has been set or not
Check if a header has a given attribute applied to it
Get a list of all the attributes in the given header.
Remove a header from the list
Remove an attribute from a header
Add a header or change an existing header value
Set an attribute in a major header
For example $headers->setAttribute("Content-Type", "format", "flowed")
Set the charset used in the headers
Specify the encoding to use for the headers if characters outside the 7-bit-printable ascii range are found This encoding will never be used if only 7-bit-printable characters are found in the headers.
Possible values are:
Set the language used in the headers to $lang (e.g. en-us, en-gb, sv etc)
Set the line ending character to use
Reset the cache state in these headers
Documentation generated on Wed, 26 Mar 2008 20:33:07 +1100 by phpDocumentor 1.3.1