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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem