mimeReaderOpenString

SYNOPSIS

mimeReader mimeReaderOpenString(varchar string[, int64 maxDepth])

Parameters:

  • string - A varchar string with the MIME message

  • maxDepth An optional integer maximum depth to parse to

Returns:

  • mimeReader object for parsing the message


DESCRIPTION
The mimeReaderOpenString function returns a new mimeReader object for parsing the MIME message in string.

The optional maxDepth parameter indicates how deep into the message tree to parse; the default of -1 indicates no limit, i.e. the tree is parsed to its leaf node entities. Entities at a depth greater than maxDepth would be embedded as part of an entity tree returned at the max depth.


EXAMPLE

<read "/tmp/mimeMessage.eml">
  <$reader = (mimeReaderOpenString($ret))>
  <if "" eq $reader>
    Cannot open MIME string
  </if>


CAVEATS

SEE ALSO
mimeReaderOpenFile


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.