## Description:

This Processor consumes email messages via IMAP protocol and sends the content of an email message as content of the Flow File. Content of the incoming email message is written as raw bytes to the content of the outgoing Flow File.

Different email providers may require additional Java Mail properties which could be provided as dynamic properties. For example, below is a sample configuration for GMail:

Processor's static properties:

- Host Name - imap.gmail.com
- Port - 993
- User Name - [your user name]
- Password - [your password]
- Folder - INBOX

Processor's dynamic properties:

- mail.imap.socketFactory.class - javax.net.ssl.SSLSocketFactory
- mail.imap.socketFactory.fallback - false
- mail.store.protocol - imaps

Another useful property is mail.debug which allows Java Mail API to print protocol messages to the console helping you to both understand what's going on as well as debug issues.

For the full list of available Java Mail properties please refer to here