Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

EmailParser.Free

Frees the email parser.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
EmailParser 5.3 Yes Yes Yes Yes Yes

MBS( "EmailParser.Free"; EmailID )

Parameters

Parameter Description Example value
EmailID The ID fo the email parser. $Email

Result

Returns OK or error.

Description

Frees the email parser.
Please call this function always with the reference numbers you got from CURL.GetResultAsEmail or EmailParser.Parse.

Examples

Parse Subject, PlainText and HTMLText from email:

Set Variable [$email; Value:MBS("EmailParser.Parse"; Email Parser::Input)]
If [MBS("IsError") = 1]
    Show Custom Dialog ["Failed to parse email."; Middle($email; 7; Length($email))]
    Exit Script []
End If
#Show text:
Set Field [Email Parser::Subject; MBS("EmailParser.Subject"; $email)]
Set Field [Email Parser::PlainText; MBS("EmailParser.PlainText"; $email)]
Set Field [Email Parser::HTMLText; MBS("EmailParser.HTMLText"; $email)]
#cleanup
Set Variable [$r; Value:MBS("EmailParser.Free"; $email)]

See also

Example Databases

Created 24th September 2015, last changed 16th October 2015


EmailParser.AttachmentCount   -   EmailParser.HTMLText

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins