Holds extra information about a parsed Received header part, for FROM and BY
parts, namely: ehlo name, hostname, and address.
The parsed parts would be mapped as follows:
FROM ehlo name (hostname [address]), for example: FROM computer (domain.com
[1.2.3.4]) would contain "computer" for getEhloName(), domain.com for
getHostname and 1.2.3.4 for getAddress().
This doesn't change if the ehlo name is an address, it is still returned in
getEhloName(), and not in getAddress(). Additionally square brackets are not
stripped from getEhloName() if its an address. For example: "FROM [1.2.3.4]"
would return "[1.2.3.4]" in a call to getEhloName().
For further information on how the header's parsed, check the documentation
for {@see \ZBateson\MailMimeParser\Header\Consumer\Received\DomainConsumer}.
- author Zaahid Bateson
Constants |
Methods |
public __construct(ZBateson
|
public getAddress() : ?string Returns the address of the server, or whatever string that looks like an |
public getEhloName() Returns the name used to identify the server in the first part of the Note that this is not necessarily the name used in the EHLO line to an
|
public getHostname() Returns the hostname of the server, or whatever string in the hostname
|
Properties |
protected $address = NULL
|
protected $ehloName = NULL
|
protected $hostname = NULL
|
Methods |