SYNOPSISvarchar headerMailboxGetDisplayName(varchar mailbox)
Parameters:
mailbox
- A varchar
mailbox (with address and/or
display name)
Returns:
varchar
display name
DESCRIPTION
The headerMailboxGetDisplayName
function returns the display
name from a mailbox, with RFC 2047 encoded words decoded.
EXAMPLE<$mailbox = '"=?ISO-8859-1?Q?Troms=F8,?= Norway" <city@norway.org>'>
<$ret = (headerMailboxGetDisplayName($mailbox))>
Display name: $ret
The output would be:
Display name: Tromsø, Norway
CAVEATS
When parsing a potentially multiple-mailbox header such as To
,
the value should be split into items first with headerGetItems
(here).
SEE ALSOheaderMailboxGetAddress