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

EmailParser.HeaderValue

Queries header value by header name.

Component Version macOS Windows Linux Server iOS SDK
EmailParser 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "EmailParser.HeaderValue"; EmailID; HeaderName )   More

Parameters

Parameter Description Example
EmailID The ID fo the email parser. $Email
HeaderName The name of the header to look for. "X-Priority"

Result

Returns value or error.

Description

Queries header value by header name.
Returns empty value if header is not found.
Queries of course only first value in case the header is there multiple times!

Examples

Query priority:

Set Variable [ $HeaderValue ; Value: MBS("EmailParser.HeaderValue"; $email; "X-Priority") ]
Show Custom Dialog [ "Subject" ; $HeaderValue ]

Queries In-Reply-To header:

Set Variable [ $InReplyTo ; Value: MBS( "EmailParser.HeaderValue"; $EmailID; "In-Reply-To" ) ]
Show Custom Dialog [ "In-Reply-To" ; $InReplyTo ]

See also

Release notes

Blog Entries

This function is free to use.

Created 22nd August 2017, last changed 23th March 2021


EmailParser.HeaderCount - EmailParser.Inline