MailMimeParser 2.0

HeaderParser
in package

Reads headers from an input stream, adding them to a PartHeaderContainer.

Tags
author

Zaahid Bateson

Table of Contents

parse()  : mixed
Reads header lines up to an empty line, adding them to the passed PartHeaderContainer.
addRawHeaderToPart()  : mixed
Ensures the header isn't empty and contains a colon separator character, then splits it and adds it to the passed PartHeaderContainer.

Methods

parse()

Reads header lines up to an empty line, adding them to the passed PartHeaderContainer.

public parse(resource $handle, PartHeaderContainer $container) : mixed
Parameters
$handle : resource

The resource handle to read from.

$container : PartHeaderContainer

the container to add headers to.

Return values
mixed

addRawHeaderToPart()

Ensures the header isn't empty and contains a colon separator character, then splits it and adds it to the passed PartHeaderContainer.

private addRawHeaderToPart(string $header, PartHeaderContainer $headerContainer) : mixed
Parameters
$header : string

the header line

$headerContainer : PartHeaderContainer

the container

Return values
mixed

Search results