headerDecode

SYNOPSIS

varchar headerDecode(varchar header)

Parameters:

  • header - A raw varchar header value

Returns:

  • The unfolded and decoded 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 ALSO
headerGetItems


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.