headerMailboxGetDisplayName

SYNOPSIS

varchar headerMailboxGetDisplayName(varchar mailbox)

Parameters:

  • mailbox - A varchar mailbox (with address and/or display name)

Returns:

  • The decoded 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 ALSO
headerMailboxGetAddress


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