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

EmailParser.PlainText

Queries plain text of email.

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

Parameters

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

Result

Returns text or error.

Description

Queries plain text of email.
For HTML only email, the plugin will extract text. This text may be okay for full text search, but not necessarily good to display to user.

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

Blog Entries

This function is free to use.

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


EmailParser.ParseFile - EmailParser.ProcessImageReferences