Zend\Mime\Decode::splitMessage
split a message in header and body part, if no header or an invalid header is found $headers is empty
The charset of the returned headers depend on your iconv settings.
Signature
public function splitMessage(string|Headers
$message,
[Headers&
$headers = Mime::LINEEND,
[string&
$body = Mime::LINEEND,
[string
$EOL = Mime::LINEEND,
[bool
$strict = false]]]] )
Parameters
$message
— object- raw message with header and optional content
$headers
— object- output param, headers container
$body
— string- output param, content of message
$EOL
— string- EOL string; defaults to {@link Zend\Mime\Mime::LINEEND}
$strict
— object- enable strict mode for parsing message
Returns
- null
Line | Task |
---|---|
111 | we're ignoring \r for now - is this function fast enough and is it safe to assume noone needs \r? |