> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Email filter

> CRMScript event model - Email filter

When you create an email filter you can add a script that should be executed.

The script will be executed with the following variables set (accessible with `getVariable`):

* messageId
* ticketId
* customerId
* customerEmail
* mailBackup
* isNewCustomer (from version 8.1 - R13)

You can also add your own variables using the **Find Regular Expressions** tab in the filter.
