Class Swift_Mime_Headers_MailboxHeader
A Mailbox Address MIME Header for something like From or Sender.
- Swift_Mime_Headers_AbstractHeader implements Swift_Mime_Header
-
Swift_Mime_Headers_MailboxHeader
Package: Swift\Mime
Author: Chris Corbyn
Located at wa-system/vendors/swift/classes/Swift/Mime/Headers/MailboxHeader.php
Author: Chris Corbyn
Located at wa-system/vendors/swift/classes/Swift/Mime/Headers/MailboxHeader.php
public
|
#
__construct( string $name,
Creates a new MailboxHeader with $name. |
public
integer
|
|
public
|
|
public
array
|
|
public
|
#
setNameAddresses( string|string[] $mailboxes )
Set a list of mailboxes to be shown in this Header. |
public
string[]
|
#
getNameAddressStrings( )
Get the full mailbox list of this Header as an array of valid RFC 2822 strings. |
public
string[]
|
|
public
|
#
setAddresses( string[] $addresses )
Makes this Header represent a list of plain email addresses with no names. |
public
string[]
|
|
public
|
|
public
string
|
|
protected
string[]
|
#
normalizeMailboxes( array $mailboxes )
Normalizes a user-input list of mailboxes into consistent key=>value pairs. |
protected
string
|
#
createDisplayNameString( string $displayName, boolean $shorten = false )
Produces a compliant, formatted display-name based on the string given. |
protected
string
|
#
createMailboxListString( array $mailboxes )
Creates a string form of all the mailboxes in the passed array. |
protected
boolean
|
|
private
string[]
|
#
_createNameAddressStrings( array $mailboxes )
Return an array of strings conforming the the name-addr spec of RFC 2822. |
private
|
#
_assertValidAddress( string $address )
Throws an Exception if the address passed does not comply with RFC 2822. |
TYPE_DATE,
TYPE_ID,
TYPE_MAILBOX,
TYPE_PARAMETERIZED,
TYPE_PATH,
TYPE_TEXT
|
private
string[]
|
$_mailboxes | array() |
#
The mailboxes used in this Header. |