Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
EmailParser.ParseContainer
Parses an email stored in container.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| EmailParser | 6.3 | Yes | Yes | Yes | Yes | Yes |
MBS( "EmailParser.ParseContainer"; EmailSource ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| EmailSource | The container field that holds the EML file to be parsed. The container value, which embeds the email text as FILE data. e.g. you imported the eml file into the container with our plugin or Filemaker's import script step. |
MyTable::myContainer |
Result
Returns OK or error.
Description
Parses an email stored in container.Parses an email file stored in container and returns a reference that can be used by other EmailParser functions to extract specific data elements (e.g. EmailParser.Subject to extract the email subject).
This function applies only to EML files. For EMLX files, please use the Text.ReadEMLXFile function to extract the source of the email file and then use the EmailParser.Parse function to get a reference for further parsing).
Be sure to use EmailParser.Free to release the reference once you have finished processing the email file. This frees up memory that is holding the parsed email.
If no error occurs, the parser will separate subject, html and plain text, attachments and inline graphics, all addresses and header entries. You can then use other EmailParser functions to query values.
For Windows, please install iconv.dll and load it via Plugin.LoadIconvLibrary function to get all text encodings converted properly.
See also
Blog Entries
Created 4th June 2016, last changed 12nd November 2020
EmailParser.Parse - EmailParser.ParseFile
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins