> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://docs.groupalarm.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# IMAP Trigger

# Configure flow: IMAP Trigger

With the IMAP Trigger, you trigger a flow when an e-mail is received in the configured mailbox. 
The following information is available for the following functions in the flow:

* Internal ID
* ID of the e-mail message
* Timestamp of processing
* Subject
* Sender
* Recipient
* Time stamp of the e-mail
* Body (text)
* Body (HTML)
* Configured attachments

In order to use attachments in subsequent functions, you must explicitly provide them with a variable. To do this, filter for the desired file within a received e-mail with a _Query_. The configuration of the _Query_ is done by means of RegEx: If, for example, you use `Application Details` as the name and `.*\.xml` as the query, the **first** attachment with the file extension `.xml` is saved under the variable `Application Details` and can be used in the subsequent functions, e.g. the XML parser. Currently, attachments with a size of up to 10 MB are processed.

Note

Only the **first** attachment found is saved in a variable in each case, should the configured query be applicable to several attachments.

When using an attachment in a subsequent function, you have two entities to choose from. In the above example, the variable has been configured with the name 'Application Details'. 
In a subsequent function you can now select _Attachment: Deployment Details_ and _Attachment: Deployment Details (Use File Content)_. To process only the URL to the attachment, use the first item. To use the content of the file, including the coded deployment details in XML format, use the second point with _Use file content_.
