Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

EmailParser.Release

Frees the email parser.

Component Version macOS Windows Linux Server iOS SDK
EmailParser 5.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "EmailParser.Release"; EmailID )   More

(old name: EmailParser.Free)

Parameters

Parameter Description Example
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.Release"; $email)]

See also

Release notes

Blog Entries

This function checks for a license.

Created 24th September 2015, last changed 23th May 2024


EmailParser.ReceiveDate - EmailParser.ReleaseAll