Skip to content

ParseEML

Parses an EML (RFC 822) file and returns a message instance.

$Messages.ParseEML(message: ( string | FileInfo )):Message (FileInfo, Message)

Parameters

( string | FileInfo ) message
    The EML source: a Base64 string, a repository file ID (GUID), or a FileInfo instance.

Returns

A Message instance representing the parsed EML file.

Remarks

A string that parses as a GUID is treated as a repository file ID; every other string is decoded as Base64. Pass FileInfo when the source is already a repository file.

Example

1
2
var emlFile = $Messages.CreateEML(message);
var parsedMessage = $Messages.ParseEML(emlFile);

See Also