EmailParser.HasHeader
---------------------

Checks if header exists.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EmailParser](component_EmailParser.md) | [7.4](newinversion74.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "EmailParser.HasHeader"; EmailID; HeaderName ) 

**MBS**( **"EmailParser.HasHeader";** /\* Checks if header exists. \*/  
**$EmailID**; /\* The ID fo the email parser.e.g. $Email \*/   
**$HeaderName**) /\* The name of the header to look for.e.g. "X-Priority" \*/ 

### 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 1, 0 or error.

### Description

Checks if header exists.  
### See also

- [EmailParser.Header](EmailParserHeader.md)

### Release notes

- **Version 7.4**
    - Added [EmailParser.HasHeader](http://www.mbsplugins.eu/EmailParserHasHeader.shtml) and [EmailParser.HeaderValue](http://www.mbsplugins.eu/EmailParserHeaderValue.shtml) functions to make header queries easier.

### Blog Entries

- [MBS FileMaker Plugin, version 7.4pr4](https://www.mbsplugins.de/archive/2017-08-31/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 22nd August 2017 , last changed 22nd August 2017

  
[EmailParser.HTMLToPlainText](EmailParserHTMLToPlainText.md) - [EmailParser.Hash](EmailParserHash.md)

[HTML Version](EmailParserHasHeader.shtml)