headerMailboxGetAddress

SYNOPSIS

varchar headerMailboxGetAddress(varchar mailbox)

Parameters:

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

Returns:

  • The decoded varchar email address


DESCRIPTION
The headerMailboxGetAddress function returns the email address from a mailbox, with RFC 2047 encoded words decoded.


EXAMPLE

<$mailbox = '"=?ISO-8859-1?Q?Troms=F8,?= Norway" <city@norway.org>'>
  <$ret = (headerMailboxGetAddress($mailbox))>
  Address: $ret

The output would be:

Address: city@norway.org


CAVEATS
When parsing a potentially multiple-mailbox header such as To, the value should be split into items first with headerGetItems (here).


SEE ALSO
headerMailboxGetDisplayName


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