SYNOPSISvarchar headerDecode(varchar header)
Parameters:
header
- A raw varchar
header value
Returns:
varchar
header value
DESCRIPTION
The headerDecode
function returns the given header
value, unfolded (newlines removed) and with RFC 2047 encoded-words
decoded. Note that regardless of charset in any encoded-words, the
returned charset is always UTF-8.
EXAMPLE<$subjectHdr = "A =?ISO-8859-1?Q?fj=F8rd?= in Norway">
<$ret = (headerDecode($subjectHdr))>
CAVEATS
The headerDecode
function is for parsing standalone headers.
When parsing a mail message, generally the access function
mimeEntityGetHeaderValues
(here) is used instead.
SEE ALSOheaderGetItems